Hi everybody,I have a problem compiling pwlib. There is a duplicate typedef which is different in
/usr/include/sys/socket.h than in ./pwlib/include/ptlib/unix/ptlib/pmachdep.hof the package. The one in the package defines int as the type of the socketlen whereas this actually refers to an unsigned 32 Bit Integer. I guess this could make Problems on 64Bit Architectures thats why the definition was switched by apple to __uint32_t Unfortunately I have no idea how to fix that in the package itself and the maintainer seems out snowboarding. Are my assumptions correct and is anybody able to fix that?
Greetings, Andreas Anfang der weitergeleiteten E-Mail:
Von: Andreas Dittrich <[EMAIL PROTECTED]> Datum: 6. Mai 2005 18:28:38 MESZ An: [EMAIL PROTECTED] Betreff: pwlib-1.5.2-12 Hello,I have trouble compiling the above package. I did a fresh install of tiger and fink last week if this is of help for you. Please let me know if you need some more information about my setup.Thanks for your help and the time you devote to fink, Andreas Dittrich % sudo fink install pwlib Information about 4558 packages read in 2 seconds. The following package will be installed or updated: pwlib dpkg-deb -b /sw/src/root-fink-buildlock-pwlib-1.5.2-12 /sw/srcdpkg-deb: building package `fink-buildlock-pwlib-1.5.2-12' in `/sw/ src/fink-buildlock-pwlib-1.5.2-12_2005.05.06-18.25.51_darwin- powerpc.deb'.Setting build lock...dpkg -i /sw/src/fink-buildlock- pwlib-1.5.2-12_2005.05.06-18.25.51_darwin-powerpc.debSelecting previously deselected package fink-buildlock-pwlib-1.5.2-12.(Reading database ... 82079 files and directories currently installed.) Unpacking fink-buildlock-pwlib-1.5.2-12 (from .../fink-buildlock- pwlib-1.5.2-12_2005.05.06-18.25.51_darwin-powerpc.deb) ...Setting up fink-buildlock-pwlib-1.5.2-12 (2005.05.06-18.25.51) ...gzip -dc /sw/src/pwlib_1.5.2.tar.gz | /sw/bin/tar -xf - --no-same- owner --no-same-permissionspatch -p1 </sw/fink/dists/unstable/main/finkinfo/libs/pwlib.patch patching file src/ptclib/pdns.cxx ./configure --prefix=/sw/lib/pwlib PTLib version is 1.5.2 checking build system type... powerpc-apple-darwin8.0.0 checking host system type... powerpc-apple-darwin8.0.0 checking target system type... powerpc-apple-darwin8.0.0 OSTYPE set to Darwin OSRELEASE set to 800 MACHTYPE set to ppc 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 suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether byte ordering is bigendian... yes checking if linker accepts --gc-sections... no checking for pthread_create in -lpthread... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking libdc1394/dc1394_control.h usability... no checking libdc1394/dc1394_control.h presence... no checking for libdc1394/dc1394_control.h... no checking libavc1394/avc1394.h usability... no checking libavc1394/avc1394.h presence... no checking for libavc1394/avc1394.h... no checking libdv/dv.h usability... yes checking libdv/dv.h presence... yes checking for libdv/dv.h... yes checking for res_search... yes checking ldap.h usability... yes checking ldap.h presence... yes checking for ldap.h... yes checking for ldap_open in -lldap... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes checking for XML_ParserCreate in -lexpat... yes checking SDL/SDL.h usability... no checking SDL/SDL.h presence... no checking for SDL/SDL.h... no checking for IPv6 Support... yes checking linux/videodev.h usability... no checking linux/videodev.h presence... no checking for linux/videodev.h... no checking machine/ioctl_meteor.h usability... no checking machine/ioctl_meteor.h presence... no checking for machine/ioctl_meteor.h... no checking i386/ioctl_meteor.h usability... no checking i386/ioctl_meteor.h presence... no checking for i386/ioctl_meteor.h... no checking dev/ic/bt8xx.h usability... no checking dev/ic/bt8xx.h presence... no checking for dev/ic/bt8xx.h... no No Video Capture support checking for swab... yes configure: creating ./config.status config.status: creating make/ptbuildopts.mak config.status: creating make/ptlib-config config.status: creating Makefile config.status: creating include/ptbuildopts.hmake CPLUS=g++3 LDFLAGS="-L/sw/lib -lresolv -L../../lib" PWLIBDIR=/ sw/src/pwlib-1.5.2-12/pwlib opt LDSOOPTS="-dynamiclib - compatibility_version 1.5 -current_version 1.5.2 -install_name /sw/ lib/pwlib/lib/libpt_Darwin_ppc_r.1.5.dylib" libso_target="lib/ libpt_Darwin_ppc_r.1.5.2.dylib"set -e; make -C src/ptlib/unix opt; make -C tools/asnparser opt;g++3 -DP_MACOSX=800 -DNO_LONG_DOUBLE -D_REENTRANT -Wall - DPHAS_TEMPLATES -I/sw/src/pwlib-1.5.2-12/pwlib/include/ptlib/unix - I/usr/include/pwlib -I/sw/src/pwlib-1.5.2-12/pwlib/include -O2 - DNDEBUG -I/sw/include -fno-common -dynamic -fno-common -dynamic - DPTRACING=1 -x c++ -c ../../ptclib/asner.cxx -o /sw/src/ pwlib-1.5.2-12/pwlib/lib/obj_Darwin_ppc_r/asner.o In file included from /sw/src/pwlib-1.5.2-12/pwlib/include/ptlib/ unix/ptlib/contain.h:57, from /sw/src/pwlib-1.5.2-12/pwlib/include/ptlib.h: 139,from ../../ptclib/asner.cxx:290:/sw/src/pwlib-1.5.2-12/pwlib/include/ptlib/unix/ptlib/pmachdep.h: 448: conflictingtypes for `typedef int socklen_t' /usr/include/sys/socket.h:99: previous declaration as `typedef __darwin_socklen_t socklen_t'make[1]: *** [/sw/src/pwlib-1.5.2-12/pwlib/lib/obj_Darwin_ppc_r/ asner.o] Error 1make: *** [opt] Error 2 ### execution of make failed, exit code 2 Removing build lock... dpkg -r fink-buildlock-pwlib-1.5.2-12(Reading database ... 82080 files and directories currently installed.)Removing fink-buildlock-pwlib-1.5.2-12 ... Failed: phase compiling: pwlib-1.5.2-12 failed -- Package manager version: 0.24.5 Distribution version: 0.7.1.rsync Mac OS X version: 10.4 December 2001 Developer Tools (not quite... it's 10.4s Xcode) gcc version: 8 make version: 3.80 Feedback Courtesy of FinkCommander
PGP.sig
Description: Signierter Teil der Nachricht
