[q-lang-users] Compiling Q on Mac OS X
Brought to you by:
agraef
From: Ryan S. <q-l...@ry...> - 2007-12-15 11:25:19
|
Hi there. I come to you from the MacPorts project [1]. MacPorts is one of the two package managers available for Mac OS X. (Fink is the other.) We have a port for Q in MacPorts, but it's for version 6.0, and it's been pointed out [2] that this is ancient and moreover does not compile for some (or possibly all) our users. Who knows whether this is because of Macs using Intel processors now, or because of updates in the OS or the compiler. I attempted to update the port to Q 7.9 but that doesn't compile either; I get "/usr/bin/ld: Undefined symbols: _coerce_float" (full error output copied below). I tried 7.8 and the error is the same. I also tried 7.7 and the error is different: "curl.c:467: error: 'CURLOPT_PASSWDFUNCTION' undeclared here (not in a function)". Any idea how I can get Q 7.9 to compile here? I'm using Mac OS X 10.4.11 with Xcode 2.4.1 on a MacBookPro3,1. The versions of the dependencies are: curl 7.17.1 with ssl support gmp 4.2.2 ncurses 5.6 ncursesw 5.6 openssl 0.9.8g readline 5.2.007 zlib 1.2.3 The configure line I used for Q 7.9 is: ./configure --prefix=/opt/local --mandir=/opt/local/share/man -- infodir=/opt/local/share/info --with-gmp --with-rl --with-pthread -- with-curl --without-gdbm --without-x --without-ggi --without-ft2 -- without-magick --without-odbc --without-tk --without-xml --without- dxl --without-dmalloc This is the same configure line that our Q 6.0 port used. Maybe some options have changed since then? Here's the full error output from trying to build Q 7.9; thanks for any help you can provide: $ sudo port build ---> Fetching q ---> Verifying checksum(s) for q ---> Extracting q ---> Configuring q ---> Building q with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/_Users_rschmidt_macports_dports_lang_q/work/ q-7.9" && make all " returned error 2 Command output: clib.c: In function 'icfromwcs': clib.c:586: warning: passing argument 2 of 'libiconv' from incompatible pointer type /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../libq -I/opt/ local/include -O2 -MT clib.lo -MD -MP -MF .deps/clib.Tpo -c clib.c -o clib.o >/dev/null 2>&1 mv -f .deps/clib.Tpo .deps/clib.Plo /bin/sh ../../libtool --tag=CC --mode=link /usr/bin/gcc-4.0 -O2 - no-undefined -module -avoid-version -L/opt/local/lib -o clib.la - rpath /opt/local/lib/q clib.lo ../../libq/libq.la -L/opt/local/lib - lintl -L/opt/local/lib -liconv -lc -R/opt/local/lib -Wl,-framework - Wl,CoreFoundation -L/opt/local/lib -liconv -R/opt/local/lib -lgmp - lpthread -L/opt/local/lib -lintl -L/opt/local/lib -liconv -lc -R/opt/ local/lib -Wl,-framework -Wl,CoreFoundation -L/opt/local/lib -liconv - R/opt/local/lib -lm /usr/bin/gcc-4.0 -o .libs/clib.so -bundle .libs/clib.o -L/opt/ local/lib ../../libq/.libs/libq.dylib /opt/local/lib/libgmp.dylib - lpthread /opt/local/lib/libintl.dylib -lc /opt/local/lib/ libiconv.dylib -lm -Wl,-framework -Wl,CoreFoundation -Wl,-framework - Wl,CoreFoundation ar cru .libs/clib.a clib.o ranlib .libs/clib.a creating clib.la (cd .libs && rm -f clib.la && ln -s ../clib.la clib.la) /bin/sh ../../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 - DHAVE_CONFIG_H -I. -I../.. -I../../libq -I/opt/local/include -O2 - MT system.lo -MD -MP -MF .deps/system.Tpo -c -o system.lo system.c /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../libq -I/opt/ local/include -O2 -MT system.lo -MD -MP -MF .deps/system.Tpo -c system.c -fno-common -DPIC -o .libs/system.o system.c: In function 'ictowcs': system.c:766: warning: passing argument 2 of 'libiconv' from incompatible pointer type system.c: In function 'icfromwcs': system.c:787: warning: passing argument 2 of 'libiconv' from incompatible pointer type system.c: In function '__F__system_iconv': system.c:6198: warning: passing argument 2 of 'libiconv' from incompatible pointer type /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../libq -I/opt/ local/include -O2 -MT system.lo -MD -MP -MF .deps/system.Tpo -c system.c -o system.o >/dev/null 2>&1 mv -f .deps/system.Tpo .deps/system.Plo /bin/sh ../../libtool --tag=CC --mode=link /usr/bin/gcc-4.0 -O2 - no-undefined -module -avoid-version -L/opt/local/lib -o system.la - rpath /opt/local/lib/q system.lo ../../libq/libq.la -L/opt/local/lib - lintl -L/opt/local/lib -liconv -lc -R/opt/local/lib -Wl,-framework - Wl,CoreFoundation -L/opt/local/lib -liconv -R/opt/local/lib -lgmp - lpthread -lreadline -L/opt/local/lib -lintl -L/opt/local/lib -liconv -lc -R/opt/local/lib -Wl,-framework -Wl,CoreFoundation -L/opt/local/ lib -liconv -R/opt/local/lib -lm /usr/bin/gcc-4.0 -o .libs/system.so -bundle .libs/system.o -L/opt/ local/lib ../../libq/.libs/libq.dylib /opt/local/lib/libgmp.dylib - lpthread -lreadline /opt/local/lib/libintl.dylib -lc /opt/local/lib/ libiconv.dylib -lm -Wl,-framework -Wl,CoreFoundation -Wl,-framework - Wl,CoreFoundation /usr/bin/ld: Undefined symbols: _coerce_float collect2: ld returned 1 exit status make[4]: *** [system.la] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing. $ [1] http://www.macports.org/ [2] http://trac.macports.org/projects/macports/ticket/12268 |