Opened 19 years ago

Closed 19 years ago

#8666 closed defect (fixed)

Plib not building on Mac OS X 10.4

Reported by: jasonawuku@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

I am trying to compile a game which depends on plib. I tried to build plib with the command:

sudo port -v install plib

Here is the output:

---> Fetching plib ---> Verifying checksum(s) for plib ---> Checksumming plib-1.8.3.tar.gz ---> Extracting plib ---> Extracting plib-1.8.3.tar.gz ---> Applying patches to plib ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/plib/files/patch-src_js_js.cxx patching file src/js/js.cxx ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/plib/files/patch-src_js_jsMacOSX.cxx patching file src/js/jsMacOSX.cxx ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/plib/files/patch-src_js_js.h patching file src/js/js.h ---> Configuring plib checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for mawk... no checking for gawk... no checking for nawk... no checking for awk... awk checking whether make sets ${MAKE}... yes includedir changed to ${prefix}/include/plib libdir is ${exec_prefix}/lib checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for a BSD compatible install... /usr/bin/install -c checking for ranlib... ranlib checking build system type... powerpc-apple-darwin8.6.0 checking host system type... powerpc-apple-darwin8.6.0 checking for ANSI C header files... yes checking for windows.h... no checking for OpenGL/gl.h... yes checking for pthread_exit in -lc_r... no checking for socklen_t... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/js/Makefile config.status: creating src/util/Makefile config.status: creating src/sg/Makefile config.status: creating src/sl/Makefile config.status: creating src/psl/Makefile config.status: creating src/ssg/Makefile config.status: creating src/ssgAux/Makefile config.status: creating src/fnt/Makefile config.status: creating src/pui/Makefile config.status: creating src/puAux/Makefile config.status: creating src/pw/Makefile config.status: creating src/net/Makefile PLIB configuration information:

Building FNT library: yes Building JS library: yes Building NET library: yes Building PUI library: yes Building puAux library: yes Building SG library: yes Building PSL library: yes Building SL library: yes Building SSG library: yes Building ssgAux library: yes Building PW library: yes Building UTIL library: yes

---> Building plib with target all Making all in src Making all in util source='ul.cxx' object='ul.o' libtool=no \ depfile='.deps/ul.Po' tmpdepfile='.deps/ul.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I/opt/local/include -g -O2 -Wall -c -o ul.o test -f ul.cxx || echo './'ul.cxx source='ulClock.cxx' object='ulClock.o' libtool=no \ depfile='.deps/ulClock.Po' tmpdepfile='.deps/ulClock.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I/opt/local/include -g -O2 -Wall -c -o ulClock.o test -f ulClock.cxx || echo './'ulClock.cxx source='ulError.cxx' object='ulError.o' libtool=no \ depfile='.deps/ulError.Po' tmpdepfile='.deps/ulError.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I/opt/local/include -g -O2 -Wall -c -o ulError.o test -f ulError.cxx || echo './'ulError.cxx source='ulLinkedList.cxx' object='ulLinkedList.o' libtool=no \ depfile='.deps/ulLinkedList.Po' tmpdepfile='.deps/ulLinkedList.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I/opt/local/include -g -O2 -Wall -c -o ulLinkedList.o test -f ulLinkedList.cxx || echo './'ulLinkedList.cxx source='ulList.cxx' object='ulList.o' libtool=no \ depfile='.deps/ulList.Po' tmpdepfile='.deps/ulList.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I/opt/local/include -g -O2 -Wall -c -o ulList.o test -f ulList.cxx || echo './'ulList.cxx source='ulRTTI.cxx' object='ulRTTI.o' libtool=no \ depfile='.deps/ulRTTI.Po' tmpdepfile='.deps/ulRTTI.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I/opt/local/include -g -O2 -Wall -c -o ulRTTI.o test -f ulRTTI.cxx || echo './'ulRTTI.cxx rm -f libplibul.a ar cru libplibul.a ul.o ulClock.o ulError.o ulLinkedList.o ulList.o ulRTTI.o ranlib libplibul.a Making all in js source='js.cxx' object='js.o' libtool=no \ depfile='.deps/js.Po' tmpdepfile='.deps/js.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I../../src/util -I/opt/local/include -g -O2 -Wall -c -o js.o test -f js.cxx || echo './'js.cxx source='jsLinux.cxx' object='jsLinux.o' libtool=no \ depfile='.deps/jsLinux.Po' tmpdepfile='.deps/jsLinux.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I../../src/util -I/opt/local/include -g -O2 -Wall -c -o jsLinux.o test -f jsLinux.cxx || echo './'jsLinux.cxx source='jsLinuxOld.cxx' object='jsLinuxOld.o' libtool=no \ depfile='.deps/jsLinuxOld.Po' tmpdepfile='.deps/jsLinuxOld.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I../../src/util -I/opt/local/include -g -O2 -Wall -c -o jsLinuxOld.o test -f jsLinuxOld.cxx || echo './'jsLinuxOld.cxx source='jsMacOS.cxx' object='jsMacOS.o' libtool=no \ depfile='.deps/jsMacOS.Po' tmpdepfile='.deps/jsMacOS.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I../../src/util -I/opt/local/include -g -O2 -Wall -c -o jsMacOS.o test -f jsMacOS.cxx || echo './'jsMacOS.cxx source='jsMacOSX.cxx' object='jsMacOSX.o' libtool=no \ depfile='.deps/jsMacOSX.Po' tmpdepfile='.deps/jsMacOSX.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DPACKAGE=\"plib\" -DVERSION=\"1.8.3\" -DSTDC_HEADERS=1 -I. -I. -I../../src/util -I/opt/local/include -g -O2 -Wall -c -o jsMacOSX.o test -f jsMacOSX.cxx || echo './'jsMacOSX.cxx jsMacOSX.cxx:278: error: cannot declare member function 'static void os_specific_s::elementEnumerator(const void*, void*)' to have static linkage make[2]: * [jsMacOSX.o] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive] Error 1 Warning: the following items did not execute (for plib): com.apple.activate com. apple.build com.apple.destroot com.apple.archive com.apple.install

Do you know what could have gone wrong here and if there are any work arounds?

Thank you

Change History (1)

comment:1 Changed 19 years ago by blb@…

Resolution: fixed
Status: newclosed

Updated the plib port to version 1.8.4 and fixed this and a couple of other compile issues; thanks for the report.

Note: See TracTickets for help on using tickets.