Ben Hines writes:
 > 
 > Anyway, i tried adding --enable-cxx to the fink info file's configure. 
 > It outputs:
 > 
 > checking whether the g++ linker (/usr/bin/ld) supports shared 
 > libraries... no
 > ..
 > checking whether the g++ linker (/usr/bin/ld) supports shared 
 > libraries... no
 > checking whether -lc should be explicitly linked in... yes
 > 
 > 
 > It looks like half of GMP's configure script is from an old
 > version of libtool, and half is from the new. Or somethng like
 > that. The whole archive_cmds_CXX is missing for darwin.  It
 > has the (updated, with flat namespace) part for
 > flat_namespace, but no archive_cmds_CXX for darwin.  It looks
 > like it should work fine if i just copy the archive_cmds to
 > the archive_cmds_CXX. And indeed, it does:

[snip]

Ben, your latest fixes to GMP have broken it's build on my
machine. I did a fink update gmp (and by implication gmp-shlibs)
this morning, as prompted by a fink-selfupdate cycle, and both
refused to build. For some context, here's a bit of end of the
build output for gmp-4.1-2.

I've checked that both libstdc++.a and libgcc.a are actually
there, not emtpy, and 'file' reports their nature properly.

I seem to be using the Apple versions of all the library tools
(ar, ranlib, libtool).

I've posted this as a bug as well.


 > mkdir /sw/src/root-gmp-4.1-2/sw/lib
 >  /bin/sh ./libtool --mode=install /sw/bin/install -c  libgmp.la 
 >/sw/src/root-gmp-4.1-2/sw/lib/libgmp
 > /sw/bin/install -c .libs/libgmp.3.3.0.dylib 
 >/sw/src/root-gmp-4.1-2/sw/lib/libgmp.3.3.0.dylib
 > (cd /sw/src/root-gmp-4.1-2/sw/lib && rm -f libgmp.3.dylib && ln -s 
 >libgmp.3.3.0.dylib libgmp.3.dylib
 > (cd /sw/src/root-gmp-4.1-2/sw/lib && rm -f libgmp.dylib && ln -s libgmp.3.3.0.dylib 
 >libgmp.dylib)
 > /sw/bin/install -c .libs/libgmp.lai /sw/src/root-gmp-4.1-2/sw/lib/libgmp.la
 > /sw/bin/install -c .libs/libgmp.a /sw/src/root-gmp-4.1-2/sw/lib/libgmp.a
 > ranlib /sw/src/root-gmp-4.1-2/sw/lib/libgmp.a
 > chmod 644 /sw/src/root-gmp-4.1-2/sw/lib/libgmp.a
 > libtool: install: warning: remember to run `libtool --finish /sw/lib'
 >  /bin/sh ./libtool --mode=install /sw/bin/install -c  libgmpxx.la 
 >/sw/src/root-gmp-4.1-2/sw/lib/libg
 > libtool: install: warning: relinking `libgmpxx.la'
 > cd /sw/src/gmp-4.1-2/gmp-4.1; /bin/sh ./libtool --mode=relink g++ -g -O2 -mpowerpc 
 >-no-cpp-precomp -
 > 
 > *** Warning: linker path does not have real file for library -lstdc++.
 > *** I have the capability to make that library automatically link in when
 > *** you link to this library.  But I can only do this if you have a
 > *** shared version of the library, which you do not appear to have
 > *** because I did check the linker path looking for a file starting
 > *** with libstdc++ and none of the candidates passed a file format test
 > *** using a file magic. Last file checked: /usr/lib/gcc/darwin/default/libstdc++.a
 > 
 > *** Warning: linker path does not have real file for library -lgcc.
 > *** I have the capability to make that library automatically link in when
 > *** you link to this library.  But I can only do this if you have a
 > *** shared version of the library, which you do not appear to have
 > *** because I did check the linker path looking for a file starting
 > *** with libgcc and none of the candidates passed a file format test
 > *** using a file magic. Last file checked: /usr/lib/gcc/darwin/default/libgcc.a
 > *** The inter-library dependencies that have been dropped here will be
 > *** automatically added whenever a program is linked with this library
 > *** or is declared to -dlopen it.
 > g++ -dynamiclib  -o .libs/libgmpxx.3.0.2.dylib  .libs/dummy.o cxx/.libs/isfuns.o 
 >cxx/.libs/ismpf.o c
 > /usr/bin/libtool: can't locate file for: -lgmp
 > /usr/bin/libtool: file: -lgmp is not an object file (not allowed in a library)
 > libtool: install: error: relink `libgmpxx.la' with the above command before 
 >installing it
 > libtool: install: warning: remember to run `libtool --finish /sw/lib'
 > /bin/sh ./mkinstalldirs /sw/src/root-gmp-4.1-2/sw/include
 > mkdir /sw/src/root-gmp-4.1-2/sw/include
 >  /sw/bin/install -c -m 644 gmpxx.h /sw/src/root-gmp-4.1-2/sw/include/gmpxx.h
 > /bin/sh ./mkinstalldirs /sw/src/root-gmp-4.1-2/sw/share/info
 > mkdir /sw/src/root-gmp-4.1-2/sw/share
 > mkdir /sw/src/root-gmp-4.1-2/sw/share/info
 >  /sw/bin/install -c -m 644 ./gmp.info /sw/src/root-gmp-4.1-2/sw/share/info/gmp.info
 >  /sw/bin/install -c -m 644 ./gmp.info-1 
 >/sw/src/root-gmp-4.1-2/sw/share/info/gmp.info-1
 >  /sw/bin/install -c -m 644 ./gmp.info-2 
 >/sw/src/root-gmp-4.1-2/sw/share/info/gmp.info-2
 >  /sw/bin/install -c -m 644 ./gmp.info-3 
 >/sw/src/root-gmp-4.1-2/sw/share/info/gmp.info-3
 >  /sw/bin/install -c -m 644 ./gmp.info-4 
 >/sw/src/root-gmp-4.1-2/sw/share/info/gmp.info-4
 >  /sw/bin/install -c -m 644 ./gmp.info-5 
 >/sw/src/root-gmp-4.1-2/sw/share/info/gmp.info-5
 >  /sw/bin/install -c -m 644 ./gmp.info-6 
 >/sw/src/root-gmp-4.1-2/sw/share/info/gmp.info-6
 >  /sw/bin/install -c -m 644 ./gmp.info-7 
 >/sw/src/root-gmp-4.1-2/sw/share/info/gmp.info-7
 >  /sw/bin/install -c -m 644 ./gmp.info-8 
 >/sw/src/root-gmp-4.1-2/sw/share/info/gmp.info-8
 > /bin/sh ./mkinstalldirs /sw/src/root-gmp-4.1-2/sw/include
 >  /sw/bin/install -c -m 644 gmp.h /sw/src/root-gmp-4.1-2/sw/include/gmp.h
 >  ranlib /sw/src/root-gmp-4.1-2/sw/lib/libgmp.a
 >  ranlib /sw/src/root-gmp-4.1-2/sw/lib/libgmpxx.a
 > ranlib: can't open file: /sw/src/root-gmp-4.1-2/sw/lib/libgmpxx.a (No such file or 
 >directory)
 > ### execution of  failed, exit code 1
 > Failed: installing gmp-4.1-2 failed

-- 
Viktor Haag : Software & Information Design : Research In Motion
                              +--+
     "A writer? What do you have to write about? You're not
                   oppressed! You're not gay!"



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to