lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Further GUB problems


From: Jan Nieuwenhuizen
Subject: Re: Further GUB problems
Date: Mon, 06 Nov 2006 15:30:44 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

Han-Wen Nienhuys <address@hidden> 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 address@hidden'

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 <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]