reduce update

Mark Brethen mark.brethen at gmail.com
Thu Jan 19 18:30:13 PST 2012


The developer of reduce has sent me the following update:

(a) used autoconf macros more carefully to create some test code to try to compile, since somehow MacPorts led to a stuble when "echo ... > conftest.c" was attempted. I do not understand why, but I guess I am aware that "echo" is not 100% portable, so what I have done is probably an improvement in general.

(b) forced "-lX11 -lXext" into LIBS even in the MacPort case.

(c) told the CSL Makefile not to try to build dyndemo on a Mac. dyndemo is NOT needed as part of an installed system, but part of it MUST be compiled in such a way that it can by dynamically loaded. The Makefiles I had for a Mac in the "ordinary" way managed that, but under Macports that would need some extra fuss - the easiest way out was to discard it in the Mac in general.

I've tested the latest build and it works with the default compiler. The test script dyndemo causes this error (from the log):

:info:build MACOSX_DEPLOYMENT_TARGET=10.6 /Developer/usr/bin/clang++  -pipe -O2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk  -I/opt/local/include/freetype2 -I/opt/local/include -fno-strict-aliasing -O2 -Wall    -L/opt/local/lib -arch x86_64 -framework Carbon -framework CoreServices -framework ApplicationServices  -o   showmathdemo showmathdemo-showmathdemo.o  -L "/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/cslbuild/x86_64-mac_10.7_lion-darwin11.2.0/lib" -lFOX-1.6 -lXrandr -lXcursor -lXrender -lcurses -lXext -lX11 -L/opt/local/lib -lfreetype -lz -lbz2 -lpthread -ldl -lXft -lfontconfig    
:info:build MACOSX_DEPLOYMENT_TARGET=10.6 /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/csl/cslbase  -Dfontsdir=reduce.fonts -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include   -DBINDIR=/opt/local/bin -DPKGDATADIR=/opt/local/share/reduce  -pipe -O2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk  -I/opt/local/include/freetype2 -I/opt/local/include -fno-strict-aliasing -O2 -Wall   -MT dyndemo.o -MD -MP -MF .deps/dyndemo.Tpo -c -o dyndemo.o /opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/csl/cslbase/dyndemo.c
:info:build mv -f .deps/dyndemo.Tpo .deps/dyndemo.Po
:info:build MACOSX_DEPLOYMENT_TARGET=10.6 /Developer/usr/bin/clang -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/csl/cslbase  -Dfontsdir=reduce.fonts -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include   -DBINDIR=/opt/local/bin -DPKGDATADIR=/opt/local/share/reduce  -fPIC -fno-strict-aliasing -O2  /opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/csl/cslbase/dynmodule.c  -o   dynmodule.so
:info:build Undefined symbols for architecture x86_64:
:info:build   "_main", referenced from:
:info:build       start in crt1.10.6.o
:info:build   "_variable_in_base", referenced from:
:info:build       _callme in cc-msGlG0.o
:info:build   "_function_in_base", referenced from:
:info:build       _callme in cc-msGlG0.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[3]: *** [dynmodule.so] Error 1
:info:build make[2]: *** [all] Error 2
:info:build make[1]: *** [all] Error 2
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk'
:info:build shell command " cd "/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk" && /usr/bin/make -w all " returned error 2

Am I missing a flag that should be included in the portfile or is this an incompatibility with clang?

Mark






More information about the macports-dev mailing list