Han-Wen Nienhuys <[EMAIL PROTECTED]> writes:
>> ... boom
>
> what kind of boom are we talking about now?
There is problem with the linker path, that creates a mix between
libraries in local and linux-x86.
linux-x86's config.log says:
configure:8612: i686-linux-gcc
-I/home/janneke/bzr/gub/target/linux-x86/build/lilypond-origin -o conftest
-O2 -finline-functions -g -pipe
-I/home/janneke/bzr/gub/target/linux-x86/system/usr/include
-L/home/janneke/bzr/gub/target/linux-x86/system/usr/lib
-L/home/janneke/bzr/gub/target/linux-x86/system/usr/bin
-L/home/janneke/bzr/gub/target/linux-x86/system/usr/lib/w32api -Wl,--as-needed
-Wl,--rpath,'$${ORIGIN}/../lib/' conftest.c -lguile
-L/home/janneke/bzr/gub/target/linux-x86/system/usr/lib -lguile -lgmp -ldl >&5
conftest.c:8:1: warning: "PACKAGE_NAME" redefined
conftest.c:2:1: warning: this is the location of the previous definition
/home/janneke/bzr/gub/target/local/system/usr//lib/libgmp.so.3: undefined
reference to [EMAIL PROTECTED]'
ie, while linking to guile (-lguile), which *should* be
target/linux-x86/system/usr/lib/libguile.la (.so)
we get an error about gmp in *local*. Of course libgmp (and libguile)
in local is linked against /usr/lib/libc; while gmp, guile in linux-x86
are linked against linux-86/syste/usr/lib/libc.
If you do not see it, chances are that your libc versions are
compatible, but you'll still linking the wrong libraries.
One step further: if I try the link command manually, it works:
$ target/linux-x86/system/usr/cross/bin/i686-linux-gcc
-I/home/janneke/bzr/gub/target/linux-x86/build/lilypond-origin -O2
-finline-functions -g -pipe
-I/home/janneke/bzr/gub/target/linux-x86/system/usr/include
-L/home/janneke/bzr/gub/target/linux-x86/system/usr/lib
-L/home/janneke/bzr/gub/target/linux-x86/system/usr/bin
-L/home/janneke/bzr/gub/target/linux-x86/system/usr/lib/w32api -Wl,--as-needed
-Wl,--rpath,'$${ORIGIN}/../lib/' ugh.c -lguile
-L/home/janneke/bzr/gub/target/linux-x86/system/usr/lib -lguile -lgmp -ldl
so configure is called with an environment setting (LDFLAGS?) that
makes gcc look in local.
--
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel