During an update-all, I encountered a build failiure for scientificpython-py23 on Tiger. It happens equally for the py22 and py24 versions. The same compilations work on Panther.

Here is the failed compilation on Tiger:
<SNIP>
running build_ext
building 'Scientific_netcdf' extension
creating build/temp.darwin-8.1.0-PowerMacintosh-2.3
creating build/temp.darwin-8.1.0-PowerMacintosh-2.3/Src
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/sw/include -IInclude -I/sw/lib/dods/include -I/sw/include/python2.3 -c Src/Scientific_netcdf.c -o build/temp.darwin-8.1.0-PowerMacintosh-2.3/Src/Scientific_netcdf.o
Src/Scientific_netcdf.c: In function 'set_attribute':
Src/Scientific_netcdf.c:477: warning: passing argument 1 of '*(PyArray_API + 28u)' from incompatible pointer type
Src/Scientific_netcdf.c: In function 'PyNetCDFVariable_WriteArray':
Src/Scientific_netcdf.c:1599: warning: 'lastloop' may be used uninitialized in this function
creating build/lib.darwin-8.1.0-PowerMacintosh-2.3/Scientific/darwin
gcc -L/sw/lib -bundle -undefined dynamic_lookup -L/sw/lib -I/sw/include build/temp.darwin-8.1.0-PowerMacintosh-2.3/Src/Scientific_netcdf.o -L/sw/lib/dods/lib -lnc-dods -ldap++ -lstdc++ -lcurl -lz -lpthread -lxml2 -lz -lrx -o build/lib.darwin-8.1.0-PowerMacintosh-2.3/Scientific/darwin/ Scientific_netcdf.so
/usr/bin/ld: can't locate file for: -lnc-dods
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
### execution of /var/tmp/tmp.1.dOjssK failed, exit code 1
Removing build lock...
dpkg -r fink-buildlock-scientificpython-py23-2.4.9-2
(Reading database ... 130450 files and directories currently installed.)
Removing fink-buildlock-scientificpython-py23-2.4.9-2 ...
Failed: phase compiling: scientificpython-py23-2.4.9-2 failed

Indeed, the directory /sw/lib/dods/lib does not contain the required libnc-dods.a on my Tiger machines (checked two of them).

But that library does exist on my Panther system.
FOR COMPARISON, here is the successful compilation under Panther:
<SNIP>
running build_ext
building 'Scientific_netcdf' extension
creating build/temp.darwin-7.9.0-PowerMacintosh-2.3
creating build/temp.darwin-7.9.0-PowerMacintosh-2.3/Src
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/sw/include -IInclude -I/sw/lib/dods/include -I/sw/include/python2.3 -c Src/Scientific_netcdf.c -o build/temp.darwin-7.9.0-PowerMacintosh-2.3/Src/Scientific_netcdf.o
Src/Scientific_netcdf.c: In function `set_attribute':
Src/Scientific_netcdf.c:477: warning: passing arg 1 of pointer to function from incompatible pointer type
Src/Scientific_netcdf.c: In function `PyNetCDFVariable_WriteArray':
Src/Scientific_netcdf.c:1599: warning: `lastloop' might be used uninitialized in this function
creating build/lib.darwin-7.9.0-PowerMacintosh-2.3/Scientific/darwin
gcc -L/sw/lib -bundle -undefined dynamic_lookup -L/sw/lib -I/sw/include build/temp.darwin-7.9.0-PowerMacintosh-2.3/Src/Scientific_netcdf.o -L/sw/lib/dods/lib -lnc-dods -ldap++ -lstdc++ -lcurl -lz -lpthread -lxml2 -lz -lrx -o build/lib.darwin-7.9.0-PowerMacintosh-2.3/Scientific/darwin/ Scientific_netcdf.so
ld: warning -prebind has no effect with -bundle
running build_scripts

<SNIP>

Setting up scientificpython-py23 (2.4.9-2) ...

That worked fine.

Jens



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to