On Nov 13, 2005, at 1:56 PM, Martin Costabel wrote:

Andrea Riciputi wrote:
[]
[]
g++ -g -O2 -mpowerpc -no-cpp-precomp -mcpu=7450 -o .libs/t-locale t-locale.o -L/sw/lib ../../tests/.libs/libtests.a ../../.libs/ libgmpxx.dylib /sw/src/fink.bui ld/gmp-4.1.4-13/gmp-4.1.4/.libs/libgmp.dylib -L/usr/lib/gcc/ darwin/3.3 -L/usr/lib/gcc/darwin -L/usr/libexec/gcc/darwin/ppc/ 3.3/../../.. -lstdc++ -lgcc -lSystem
../../.libs/libgmp.dylib
ld: warning multiple definitions of symbol _localeconv
t-locale.o definition of _localeconv in section (__TEXT,__text)
/usr/lib/libSystem.dylib(localeconv.So) definition of _localeconv
creating t-locale

[snip]

make  check-TESTS
PASS: t-cast
PASS: t-headers
PASS: t-ostream
operator>> input error
  point  ,
  str    ,5
FAIL: t-locale

What happens is that the t-locale test tries to redefine the localeconv() function. It even has a test for checking whether this redefinition was successful. Only this test in the test is lying:

It tests whether it can replace the use of localeconv() in libgmp.dylib, which is a flat_namespace image. This works. But then it tries to use the modified localeconv() with things from libgmpxx.dylib, which is a twolevel_namespace image. This fails, because the library remembers that localeconv comes from libSystem.

If you replace in the above compiler line the dynamic libgmpxx.dylib by the static libgmpxx.a, it will work.

So it is the code of the test that is to blame, not the compiler.
OTOH I don't know why one of the dylibs is flat and the other one twolevel...

--
Martin

I've been aware of this, and some other problems with gmp, for about six weeks, and I've been working on a solution. Unfortunately, to implement the solution I need to modify every fink package which (Build)Depends on gmp, and testing all of the above takes time. But I hope to commit a fix soon.

In my modified version of gmp, I have simply patched out the relevant test since I, like Martin, concluded that it was the test that is at fault.

  -- Dave



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to