Unable to build physfs

Jeff Adams jeffadams78 at yahoo.com
Wed May 9 08:56:44 PDT 2007


Well my reinstall to get rid of readline problems
seems not to have worked.  I get the following error
when trying to "port install physfs":

--->  Fetching physfs
--->  Attempting to fetch physfs-1.0.0.tar.gz from
http://icculus.org/physfs/downloads/
--->  Verifying checksum(s) for physfs
--->  Extracting physfs
--->  Configuring physfs
--->  Building physfs with target all
Error: Target com.apple.build returned: shell command
" cd
"/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_devel_physfs/work/physfs-1.0.0"
&& make all " returned error 2
Command output: gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/opt/local/include -O2 -O2 -D_REENTRANT
-D_THREAD_SAFE -c platform/posix.c -MT posix.lo -MD
-MP -MF.deps/posix.TPlo  -fno-common -DPIC -o
.libs/posix.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include
-O2 -O2 -D_REENTRANT -D_THREAD_SAFE -c
platform/posix.c -MT posix.lo -MD -MP -MF
.deps/posix.TPlo -o posix.o >/dev/null 2>&1
mv -f .libs/posix.lo posix.lo
/bin/sh ./libtool --mode=link gcc  -O2 -O2
-D_REENTRANT -D_THREAD_SAFE  -L/opt/local/lib 
-Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit
-no-undefined -o libphysfs.la -rpath /opt/local/lib
-release 1.0 -version-info 0:0:0 physfs.lo
physfs_byteorder.lo dir.lo grp.lo wad.lo hog.lo mvl.lo
zip.lo qpak.lo unix.lo posix.lo   -lz
rm -fr .libs/libphysfs.la .libs/libphysfs.*
.libs/libphysfs-1.0.*
gcc -r -keep_private_externs -nostdlib -o
.libs/libphysfs-1.0.0.0.0.dylib-master.o  physfs.lo
physfs_byteorder.lo dir.lo grp.lo wad.lo hog.lo mvl.lo
zip.lo qpak.lo unix.lo posix.lo && gcc -dynamiclib  -o
.libs/libphysfs-1.0.0.0.0.dylib
.libs/libphysfs-1.0.0.0.0.dylib-master.o 
-L/opt/local/lib -lz -lc -framework Carbon -framework
IOKit -install_name
/opt/local/lib/libphysfs-1.0.0.dylib
-compatibility_version 1 -current_version 1.0
ld: warning prebinding not disabled because (__TEXT
segment (address = 0x0 size = 0xe000) of
.libs/libphysfs-1.0.0.0.0.dylib overlaps with __TEXT
segment (address = 0x0 size = 0x10000) of
/opt/local/lib/libz.1.dylib
ld: warning prebinding not disabled because (__DATA
segment (address = 0xe000 size = 0x1000) of
.libs/libphysfs-1.0.0.0.0.dylib overlaps with __TEXT
segment (address = 0x0 size = 0x10000) of
/opt/local/lib/libz.1.dylib
ld: warning prebinding not disabled because
(__LINKEDIT segment (address = 0xf000 size = 0x5000)
of .libs/libphysfs-1.0.0.0.0.dylib overlaps with
__TEXT segment (address = 0x0 size = 0x10000) of
/opt/local/lib/libz.1.dylib
ld: warning prebinding not disabled because
(__LINKEDIT segment (address = 0xf000 size = 0x5000)
of .libs/libphysfs-1.0.0.0.0.dylib overlaps with
__DATA segment (address = 0x10000 size = 0x1000) of
/opt/local/lib/libz.1.dylib
ld: warning prebinding not disabled because
(__LINKEDIT segment (address = 0xf000 size = 0x5000)
of .libs/libphysfs-1.0.0.0.0.dylib overlaps with
__LINKEDIT segment (address = 0x11000 size = 0x2000)
of /opt/local/lib/libz.1.dylib
(cd .libs && rm -f libphysfs-1.0.0.dylib && ln -s
libphysfs-1.0.0.0.0.dylib libphysfs-1.0.0.dylib)
(cd .libs && rm -f libphysfs.dylib && ln -s
libphysfs-1.0.0.0.0.dylib libphysfs.dylib)
ar cru .libs/libphysfs.a  physfs.o physfs_byteorder.o
dir.o grp.o wad.o hog.o mvl.o zip.o qpak.o unix.o
posix.o
ranlib .libs/libphysfs.a
creating libphysfs.la
(cd .libs && rm -f libphysfs.la && ln -s
../libphysfs.la libphysfs.la)
source='test/test_physfs.c' object='test_physfs.o'
libtool=no \
depfile='.deps/test_physfs.Po'
tmpdepfile='.deps/test_physfs.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/opt/local/include
 -O2 -O2 -D_REENTRANT -D_THREAD_SAFE -c -o
test_physfs.o `test -f 'test/test_physfs.c' ||
echo'./'`test/test_physfs.c
/bin/sh ./libtool --mode=link gcc  -O2 -O2
-D_REENTRANT -D_THREAD_SAFE  -L/opt/local/lib 
-Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit
-no-undefined -o test_physfs  test_physfs.o
./libphysfs.la -lz
gcc -O2 -O2 -D_REENTRANT -D_THREAD_SAFE -Wl,-framework
-Wl,Carbon -Wl,-framework -Wl,IOKit -o
.libs/test_physfs test_physfs.o  -L/opt/local/lib
-L./.libs -lphysfs -lz
ld: warning prebinding disabled because of undefined
symbols
ld: Undefined symbols:
_add_history
_readline
make[2]: *** [test_physfs] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.



A few remarks I found online suggested this could be
due to another version of readline installed in
/usr/local, and I did have one there, so I removed it
and reinstalled everything, but I get the same error. 
Any thoughts?

Thanks,
Jeff


 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/



More information about the macports-users mailing list