On Jun 8, 2005, at 3:03 PM, Jens Nöckel wrote:


On Jun 8, 2005, at 2:06 PM, Jens Nöckel wrote:

Next issue: the g77 build. This may take a little longer (or not, if I get another error).

John, you are right, scientificpython-py24-2.4.9-2 installs with gcc 3.3.

For completeness, here is how far I got using gcc 4.0:

After re-installing the Apple BSD.pkg (c++filt was missing!!), g77 built and I was also able to rebuild and reinstall dods, which now has all the required libraries in it. But scientificpython-py24 still won't build (I tried on two Tiger machines, one where I originally had the botched BSD.pkg installation and one where this was not a problem).
Here is the output of the compilation which fails, using gcc-4.0:

creating build/lib.darwin-8.1.0-Power_Macintosh-2.4/Scientific/darwin
gcc -L/sw/lib -bundle -undefined dynamic_lookup -L/sw/lib -I/sw/include build/temp.darwin- 8.1.0-Power_Macintosh-2.4/Src/Scientific_netcdf.o -L/sw/lib/dods/lib -lnc-dods -ldap++ -ls tdc++ -lcurl -lz -lpthread -lxml2 -lz -lrx -o build/lib.darwin-8.1.0-Power_Macintosh-2.4/S
cientific/darwin/Scientific_netcdf.so
/usr/bin/ld: /sw/lib/dods/lib/libnc-dods.a(NCConnect.o) illegal reference for -dynamic cod e (section difference reference from section (__TEXT,__eh_frame) relocation entry (10) to symbol: std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operat or+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char _traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<cha r>, std::allocator<char> > const&)defined in dylib: /usr/lib/gcc/powerpc-apple-darwin8/4.0
.0/libstdc++.dylib)
/usr/bin/ld: /sw/lib/dods/lib/libdap++.a(DDS.o) illegal reference for -dynamic code (secti on difference reference from section (__TEXT,__eh_frame) relocation entry (12) to symbol: char* std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_construct <char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator _tag)defined in dylib: /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libstdc++.dylib) /usr/bin/ld: /sw/lib/dods/lib/libdap++.a(DDS.o) illegal reference for -dynamic code (secti on difference reference from section (__TEXT,__eh_frame) relocation entry (24) to symbol: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char const*>(char const*, char const*, std::allocator<char> const&)defined in dylib: /usr/lib/g
cc/powerpc-apple-darwin8/4.0.0/libstdc++.dylib)
/usr/bin/ld: /sw/lib/dods/lib/libdap++.a(DDS.o) illegal reference for -dynamic code (secti on difference reference from section (__TEXT,__eh_frame) relocation entry (74) to symbol: std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char , std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std: :char_traits<char>, std::allocator<char> > const&)defined in dylib: /usr/lib/gcc/powerpc-a
pple-darwin8/4.0.0/libstdc++.dylib)
/usr/bin/ld: /sw/lib/dods/lib/libdap++.a(BaseType.o) illegal reference for -dynamic code ( section difference reference from section (__TEXT,__eh_frame) relocation entry (8) to symb ol: char* std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_const ruct<char*>(char*, char*, std::allocator<char> const&, std::forward_iterator_tag)defined i
n dylib: /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libstdc++.dylib)
/usr/bin/ld: /sw/lib/dods/lib/libdap++.a(BaseType.o) illegal reference for -dynamic code ( section difference reference from section (__TEXT,__eh_frame) relocation entry (20) to sym bol: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string< char*>(char*, char*, std::allocator<char> const&)defined in dylib: /usr/lib/gcc/powerpc-ap
ple-darwin8/4.0.0/libstdc++.dylib)
/usr/bin/ld: /sw/lib/dods/lib/libdap++.a(HTTPCache.o) illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (0) to sym bol: std::_Rb_tree_rotate_right(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*&)define
d in dylib: /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libstdc++.dylib)
/usr/bin/ld: /sw/lib/dods/lib/libdap++.a(HTTPCache.o) illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (4) to sym bol: std::_Rb_tree_rotate_left(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*&)defined
 in dylib: /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libstdc++.dylib)
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
### execution of /var/tmp/tmp.1.tIO4vy failed, exit code 1
Removing build lock...
dpkg -r fink-buildlock-scientificpython-py24-2.4.9-2
(Reading database ... 130433 files and directories currently installed.)
Removing fink-buildlock-scientificpython-py24-2.4.9-2 ...
Failed: phase compiling: scientificpython-py24-2.4.9-2 failed


I did manage to rebuild numeric-py24 without problems.

I don't know if this helps, but here is the dynamic library that appears to create the conflict with dods: /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libstdc++.dylib@ -> ../../../libstdc++.6.dylib

Under gcc3.3, this seems to have been a static library,
/usr/lib/gcc/darwin/3.3/libstdc++.a



-------------------------------------------------------
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 _______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to