Opened 16 years ago
Closed 14 years ago
#1365 closed defect (fixed)
psMetadata print formats for 64-bit
| Reported by: | Michael Wood-Vasey | Owned by: | heather |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | PSLib | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I'm having trouble when compiling psLib with my compiler not knowing to map the PS1 64-bit types to "%jd".
libtool: compile: gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../src -I../../src -I../../src/sys -I../../src/astro -I../../src/db -I../../src/fft -I../../src/fits -I../../src/imageops -I../../src/jpeg -I../../src/math -I../../src/mathtypes -I../../src/types -D_THREAD_SAFE -I/Volumes/data/PS1/code/ipp-2.9/mwv.darwin_x86/include/mysql -DHAVE_PSDB -I/Volumes/data/PS1/code/ipp-2.9/mwv.darwin_x86/include -I/Volumes/data/PS1/code/ipp-2.9/mwv.darwin_x86/include -I/Volumes/data/PS1/code/ipp-2.9/mwv.darwin_x86/include -I/Volumes/data/PS1/code/ipp-2.9/mwv.darwin_x86/include -pipe -O0 -g -Wall -Werror -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L -MT libpslibtypes_la-psMetadata.lo -MD -MP -MF .deps/libpslibtypes_la-psMetadata.Tpo -c psMetadata.c -fno-common -DPIC -o .libs/libpslibtypes_la-psMetadata.o
cc1: warnings being treated as errors
psMetadata.c: In function 'psMetadataPrint':
psMetadata.c:1372: warning: format '%jd' expects type 'intmax_t', but argument 3 has type 'psS64'
psMetadata.c:1384: warning: format '%ju' expects type 'uintmax_t', but argument 3 has type 'psU64'
psMetadata.c:1459: warning: format '%ju' expects type 'uintmax_t', but argument 3 has type 'psU64'
psMetadata.c:1487: warning: format '%jd' expects type 'intmax_t', but argument 3 has type 'psS64'
{standard input}:unknown:Undefined local symbol LC44
{standard input}:unknown:Undefined local symbol LC45
Change History (2)
comment:1 by , 15 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
I didn't have this problem when I compiled ipp on my mac a week ago - I assume it's fixed now (but not by me)

i also had this problem...