Fwd: reduce update

Mark Brethen mark.brethen at gmail.com
Thu Jan 19 19:27:50 PST 2012



Begin forwarded message:

> From: Mark Brethen <mark.brethen at gmail.com>
> Subject: reduce update
> Date: January 19, 2012 8:30:13 PM CST
> To: MacPorts Development <macports-dev at lists.macosforge.org>
> 
> 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
> 
> 
> 
> 

dyndemo.c includes the following headers: config.h, dlfcn.h and stdio.h.

I searched my mac and found:

brethen-mbp:~ marbre$ find / -name dlfcn.h 2>/dev/null
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/dlfcn.h
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/dlfcn.h
/Developer/SDKs/MacOSX10.6.sdk/usr/include/dlfcn.h
/Developer/SDKs/MacOSX10.7.sdk/usr/include/dlfcn.h
/Developer/SDKs/MacOSX10.7.sdk/usr/include/postgresql/server/port/win32/dlfcn.h
/Developer-3.2.6/SDKs/MacOSX10.4u.sdk/usr/include/dlfcn.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/usr/include/dlfcn.h
/Developer-3.2.6/SDKs/MacOSX10.6.sdk/usr/include/dlfcn.h
/usr/include/dlfcn.h
/usr/include/postgresql/server/port/win32/dlfcn.h

brethen-mbp:~ marbre$ find / -name stdio.h 2>/dev/null
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/c++/4.2.1/tr1/stdio.h
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/stdio.h
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/c++/4.2.1/tr1/stdio.h
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/stdio.h
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/tr1/stdio.h
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h
/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/tr1/stdio.h
/Developer/SDKs/MacOSX10.7.sdk/usr/include/stdio.h
/Developer-3.2.6/SDKs/MacOSX10.4u.sdk/usr/include/stdio.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/usr/include/stdio.h
/Developer-3.2.6/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/tr1/stdio.h
/Developer-3.2.6/SDKs/MacOSX10.6.sdk/usr/include/stdio.h
/opt/local/include/gcc44/c++/tr1/stdio.h
/opt/local/lib/gcc44/gcc/x86_64-apple-darwin11/4.4.6/include/ssp/stdio.h
/usr/include/c++/4.2.1/tr1/stdio.h
/usr/include/stdio.h

brethen-mbp:~ marbre$ find / -name config.h 2>/dev/null
/Applications/Marathon.app/Contents/Frameworks/sndfile.framework/Versions/A/Resources/GSM610/config.h
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/config.h
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0/config.h
/Developer/SDKs/MacOSX10.6.sdk/usr/include/php/ext/mbstring/libmbfl/config.h
/Developer/SDKs/MacOSX10.6.sdk/usr/include/wx-2.8/wx/config.h
/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/config.h
/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0/config.h
/Developer/SDKs/MacOSX10.7.sdk/usr/include/php/ext/mbstring/libmbfl/config.h
/Developer-3.2.6/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/pccard/config.h
/Developer-3.2.6/SDKs/MacOSX10.4u.sdk/usr/include/php/ext/mbstring/libmbfl/config.h
/Developer-3.2.6/SDKs/MacOSX10.4u.sdk/usr/include/wx-2.5/wx/config.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/pccard/config.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include/numpy/config.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/config.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/config.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/usr/include/php/ext/mbstring/libmbfl/config.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/usr/include/php/ext/pcre/pcrelib/config.h
/Developer-3.2.6/SDKs/MacOSX10.5.sdk/usr/include/wx-2.8/wx/config.h
/Developer-3.2.6/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/config.h
/Developer-3.2.6/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0/config.h
/Developer-3.2.6/SDKs/MacOSX10.6.sdk/usr/include/php/ext/mbstring/libmbfl/config.h
/Developer-3.2.6/SDKs/MacOSX10.6.sdk/usr/include/wx-2.8/wx/config.h
/opt/local/include/kpathsea/config.h
/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE/config.h
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/csl/embedded/config.h
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/csl/new-embedded/minireduce-image/config.h
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/csl/new-embedded/procedural/config.h
/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-with-csl/work/trunk/csl/new-embedded/reduce-image/config.h
/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/csl/config.h
/opt/local/var/macports/sources/rsync.macports.org/release/base/src/config.h
/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers/config.h
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0/config.h
/System/Library/Perl/5.10/darwin-thread-multi-2level/CORE/config.h
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h
/Users/marbre/Downloads/reduce-algebra/trunk/csl/embedded/config.h
/Users/marbre/Downloads/reduce-algebra/trunk/csl/new-embedded/minireduce-image/config.h
/Users/marbre/Downloads/reduce-algebra/trunk/csl/new-embedded/procedural/config.h
/Users/marbre/Downloads/reduce-algebra/trunk/csl/new-embedded/reduce-image/config.h
/Users/marbre/Downloads/reduce-algebra-20101007/csl/embedded/config.h
/usr/include/php/ext/mbstring/libmbfl/config.h
/usr/lib/ruby/1.8/universal-darwin10.0/config.h

It looks to me that my macports installation does not support the dlfcn.h header. 

Mark






More information about the macports-dev mailing list