[physfs] Fix PhysicsFS 1.0.2 build error on Mac OS X

Yuji Yamano yyamano at kt.rim.or.jp
Wed Aug 19 04:35:20 EDT 2009


Hi!

PhysicsFS 1.0.2 fails to build on Mac OS X 10.4.11 with the following 
error message.

gcc -O2 -fvisibility=hidden -g -O2 -D_REENTRANT -D_THREAD_SAFE -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,IOKit -o .libs/test_physfs test_physfs.o  ./.libs/libphysfs.dylib -lz 
/usr/bin/ld: Undefined symbols:
_add_history
_readline
collect2: ld returned 1 exit status
make[2]: *** [test_physfs] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Here is the patch to fix it. Please apply it and regen configure script.

--- configure.in.orig	2009-03-22 22:43:05.000000000 -0700
+++ configure.in	2009-08-19 01:18:27.000000000 -0700
@@ -249,6 +249,7 @@
     if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then
       AC_DEFINE([PHYSFS_HAVE_READLINE], 1, [define if we have readline])
       have_readline="yes"
+      LIBS="-lreadline -lcurses $LIBS"
     fi
   fi
 fi


-- Yuji Yamano
Peace, unity, love and having fun!




More information about the physfs mailing list