make ncurses-5.4 error

Jeremy Utley jeremy at jutley.org
Sun Jul 11 09:03:26 PDT 2004


On Sun, 2004-07-11 at 04:24, Espasa Franck wrote:
> I use Fedore-core1 to make my LFS 5.1.1, when i make ncurses-5.4, I get
> following compile error:
> 
> make[1]: Entering directory `/mnt/lfs/sources/ncurses-5.4/c++'
> cp ./etip.h.in etip.h
> sh ./edit_cfg.sh ../include/ncurses_cfg.h etip.h
> substituting autoconf'd values from ../include/ncurses_cfg.h into etip.h
> ... CPP_HAS_PARAM_INIT 0
> ... ETIP_NEEDS_MATH_EXCEPTION 0
> ... ETIP_NEEDS_MATH_H 1
> ... HAVE_BUILTIN_H 0
> ... HAVE_GPP_BUILTIN_H 0
> ... HAVE_GXX_BUILTIN_H 0
> ... HAVE_STRSTREAM_H 0
> ... HAVE_TYPEINFO 1
> ... HAVE_VALUES_H 0
> ... USE_STRSTREAM_VSCAN 0
> ... USE_STRSTREAM_VSCAN_CAST 0
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/cursesf.cc
> -o ../obj_s/cursesf.o
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/cursesm.cc
> -o ../obj_s/cursesm.o
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/cursesw.cc
> -o ../obj_s/cursesw.o
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/cursespad.cc
> -o ../obj_s/cursespad.o
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/cursesp.cc
> -o ../obj_s/cursesp.o
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/cursslk.cc
> -o ../obj_s/cursslk.o
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/cursesapp.cc
> -o ../obj_s/cursesapp.o
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c
> ../c++/cursesmain.cc -o ../obj_s/cursesmain.o
> ar rv ../lib/libncurses++.a ../obj_s/cursesf.o ../obj_s/cursesm.o
> ../obj_s/cursesw.o ../obj_s/cursespad.o ../obj_s/cursesp.o
> ../obj_s/cursslk.o ../obj_s/cursesapp.o ../obj_s/cursesmain.o
> a - ../obj_s/cursesf.o
> a - ../obj_s/cursesm.o
> a - ../obj_s/cursesw.o
> a - ../obj_s/cursespad.o
> a - ../obj_s/cursesp.o
> a - ../obj_s/cursslk.o
> a - ../obj_s/cursesapp.o
> a - ../obj_s/cursesmain.o
> ranlib ../lib/libncurses++.a
> /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include 
> -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/demo.cc -o
> ../obj_s/demo.o
> /usr/bin/g++  -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib
> -lform -lmenu -lpanel -lncurses
> -Wl,-rpath,/mnt/lfs/sources/ncurses-5.4/lib  -I../c++ -I../include -I.
> -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -DNDEBUG
> -I/tools/include -O2 -fPIC
> /lib/libc.so.6: undefined reference to `_dl_tls_symaddr at GLIBC_PRIVATE'
> collect2: ld returned 1 exit status
> make[1]: *** [demo] Error 1
> make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.4/c++'
> make: *** [all] Error 2
> lfs:/mnt/lfs/sources/ncurses-5.4$

Note the /lib/libc.so.6 above.  Something went wrong when you did the
adjustment of the linker - CH5 ncurses shouldn't be touching the /lib
directory, only /tools/lib.

-J-
> 
> 
> Can anyone help me ????
> 
> thanks !




More information about the lfs-support mailing list