Opened 14 years ago

Closed 13 years ago

#23649 closed defect (fixed)

libgeotiff couldn't build 64-bit

Reported by: wloczykijb@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: LP64 Cc:
Port: libgeotiff

Description (last modified by mf2k (Frank Schima))

When I try to install libgeotiff port I receive error message:

sudo port install -d libgeotiff
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libgeotiff/work/libgeotiff-1.2.5" && /usr/bin/make all " returned error 2
Command output: 	make
/usr/bin/gcc-4.2 -O2 -arch x86_64 -Wall makegeo.o -L/lib -L.. -lgeotiff -L/opt/local/lib -lproj -ltiff -m32 -lm  -L/opt/local/lib -lz -L/opt/local -ljpeg -o makegeo
ld: warning: in ../libgeotiff.dylib, file is not of required architecture
Undefined symbols:
  "_XTIFFClose", referenced from:
      _main in makegeo.o
  "_XTIFFOpen", referenced from:
      _main in makegeo.o
  "_GTIFFree", referenced from:
      _main in makegeo.o
  "_GTIFNew", referenced from:
      _main in makegeo.o
  "_GTIFKeySet", referenced from:
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
      _SetUpGeoKeys in makegeo.o
  "_GTIFWriteKeys", referenced from:
      _main in makegeo.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [makegeo] Error 1
make: *** [Progs] Error 2

Error: Status 1 encountered during processing.

Attachments (5)

libgeotiff32.txt (9.2 KB) - added by wloczykijb@… 14 years ago.
output of sudo port -d install libgeotiff (after editing Makefile)
libgeotiff-debug.txt (8.6 KB) - added by wloczykijb@… 14 years ago.
libgeotiff.txt (1.3 KB) - added by wloczykijb@… 14 years ago.
libgeotiff32-debug.txt (8.6 KB) - added by wloczykijb@… 14 years ago.
debug info
libgeotiff32.2.txt (1.3 KB) - added by wloczykijb@… 14 years ago.
new attempt of compiling for 32-bit

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: snowleopard added; libgeotiff snow leopard removed

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Keywords: LP64 added; snowleopard removed
Summary: libgeotiff couldn't build on Snow Leopard running on Macbook prolibgeotiff couldn't build 64-bit

Doesn't appear to be something that would happen on 32-bit Snow Leopard or not happen on 64-bit Leopard.

Changed 14 years ago by wloczykijb@…

Attachment: libgeotiff32.txt added

output of sudo port -d install libgeotiff (after editing Makefile)

comment:3 in reply to:  2 ; Changed 14 years ago by wloczykijb@…

Replying to jmr@…:

Doesn't appear to be something that would happen on 32-bit Snow Leopard or not happen on 64-bit Leopard.

There is problem in 32-bit also, it seems. I changed value of COPTS variable from: -O2 -arch x86_64 -Wall -fPIC -DCSV_DATA_DIR=\"$(datadir)\" to: -O2 -arch i386 -Wall -fPIC -DCSV_DATA_DIR=\"$(datadir)\"

comment:4 in reply to:  3 Changed 14 years ago by wloczykijb@…

Replying to wloczykijb@…:

Replying to jmr@…:

Doesn't appear to be something that would happen on 32-bit Snow Leopard or not happen on 64-bit Leopard.

There is problem in 32-bit also, it seems. I changed value of COPTS variable from:

After further investigation i discovered that change mentioned earlier seems to do not change arch option in command line

Changed 14 years ago by wloczykijb@…

Attachment: libgeotiff-debug.txt added

Changed 14 years ago by wloczykijb@…

Attachment: libgeotiff.txt added

Changed 14 years ago by wloczykijb@…

Attachment: libgeotiff32-debug.txt added

debug info

Changed 14 years ago by wloczykijb@…

Attachment: libgeotiff32.2.txt added

new attempt of compiling for 32-bit

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Current version seems fine.

Note: See TracTickets for help on using tickets.