Opened 15 years ago

Closed 15 years ago

#20531 closed defect (duplicate)

gdal build fails if pthsem is installed

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: seanasy@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: mail@…
Port: gdal

Description

Building gdal fails if pthsem is installed:

--->  Building gdal
DEBUG: Executing proc-pre-org.macports.build-build-0
DEBUG: Executing org.macports.build (gdal)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_science_gdal/work/gdal-1.6.0" && nice -n 10 make'
(cd port; make)
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_science_gdal/work/gdal-1.6.0/libtool --mode=compile --tag=CXX /usr/bin/g++-4.0 -O2  -Wall  -DOGR_ENABLED -I/mp/include -I/mp/include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_science_gdal/work/gdal-1.6.0/port -I/mp -I/mp/include -I/mp -I/mp/include -I/mp/include -I/mp/include -I/mp -I/mp/include     -I../frmts/zlib -DHAVE_LIBZ -c -o cpl_conv.o cpl_conv.cpp
libtool: compile:  /usr/bin/g++-4.0 -O2 -Wall -DOGR_ENABLED -I/mp/include -I/mp/include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_science_gdal/work/gdal-1.6.0/port -I/mp -I/mp/include -I/mp -I/mp/include -I/mp/include -I/mp/include -I/mp -I/mp/include -I../frmts/zlib -DHAVE_LIBZ -c cpl_conv.cpp  -fno-common -DPIC -o .libs/cpl_conv.o
/mp/include/pthread.h:286: error: conflicting declaration 'typedef struct pthread_attr_st* pthread_attr_t'
/usr/include/sys/signal.h:163: error: 'pthread_attr_t' has a previous declaration as 'typedef struct __darwin_pthread_attr_t pthread_attr_t'
make[1]: *** [cpl_conv.o] Error 1
make: *** [port-target] Error 2

It works if I uninstall pthsem, clean gdal and try again. Maybe gdal can insulate itself from this somehow.

Attachments (1)

Portfile.diff (528 bytes) - added by mail@… 15 years ago.
Changed Portfile for pthsem

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by mail@…

Attachment: Portfile.diff added

Changed Portfile for pthsem

comment:1 Changed 15 years ago by mail@…

Cc: mail@… added

Cc Me!

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

Resolution: duplicate
Status: newclosed

Superseded by #22705.

Note: See TracTickets for help on using tickets.