tech-toolchain archive

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

Re: mknative-gdb: curses detection failure ... TUI disabled



On Tue, Dec 21, 2010 at 08:10:03PM +0100, Joerg Sonnenberger wrote:
> On Tue, Dec 14, 2010 at 12:07:30AM +0100, Nicolas Joly wrote:
> > The problem comes from the gdb/configure script that now fails to detect
> > the curses library :
> > 
> > configure:8145: /local/src/NetBSD/tool/bin/x86_64--netbsd-gcc -isystem 
> > /local/src/NetBSD/dest/amd64/usr/include -L/local/src/NetBSD/dest/amd64/lib 
> > -L/local/src/NetBSD/dest/amd64/usr/lib 
> > -B/local/src/NetBSD/dest/amd64/usr/lib/ -o conftest    conftest.c -lcurses  
> > -lm  >&5
> > /local/src/NetBSD/tool/lib/gcc/x86_64--netbsd/4.1.3/../../../../x86_64--netbsd/bin/ld:
> >  warning: libterminfo.so.1, needed by 
> > /local/src/NetBSD/dest/amd64/usr/lib/libcurses.so, not found (try using 
> > -rpath or -rpath-link)
> 
> Isn't the problem exactly what it is saying, missing
> -Wl,-rpath-link,${DESTDIR}/usr/lib

Yes. But adding it to CCADDFLAGS show some bad side effects during
libiberty configuration preventing all headers detection :

configure:3691: checking for sys/param.h
configure:3704: /local/src/NetBSD/tool/bin/x86_64--netbsd-gcc -isystem 
/local/src/NetBSD/dest/amd64/usr/include -L/local/src/NetBSD/dest/amd64/lib 
-L/local/src/NetBSD/dest/amd64/usr/lib -B/local/src/NetBSD/dest/amd64/usr/lib/ 
-Wl,-rpath-link,/local/src/NetBSD/dest/amd64/usr/lib -E  conftest.c
x86_64--netbsd-gcc: -rpath-link: linker input file unused because linking not 
done
x86_64--netbsd-gcc: /local/src/NetBSD/dest/amd64/usr/lib: linker input file 
unused because link
ing not done
configure:3710: $? = 0
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <sys/param.h>
configure:3731: result: no

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index