LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-17-2008, 09:36 PM   #1
SupremeOverlord
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Rep: Reputation: 0
Compiling Temporary System tools


I am trying to build a multilib x86_64 CLFS installation on my computer using Ubuntu 7.10 as the host system. Everything seemed to be working fine untill it came time to compile texinfo. I am having some issue with my ncurses installation I guess:
Quote:
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... no
checking for tgetent in -lterminfo... no
configure: WARNING: probably need a terminal library, one of: ncurses curses termlib termcap terminfo
But later on in the configure script:
Quote:
configure: Continuing with main configure (x86_64-unknown-linux-gnu).
checking for tgetent in -lncurses... yes
checking for library with termcap variables...
This then leads to the compiling errors:
Quote:
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:167: undefined reference to `tputs'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:176: undefined reference to `tputs'
terminal.o: In function `terminal_begin_using_terminal':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:136: undefined reference to `tputs'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:145: undefined reference to `tputs'
terminal.o: In function `terminal_get_screen_size':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:482: undefined reference to `tgetnum'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:494: undefined reference to `tgetnum'
terminal.o: In function `terminal_initialize_terminal':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:540: undefined reference to `tgetent'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:554: undefined reference to `tgetstr'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:580: undefined reference to `tgetstr'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:581: undefined reference to `tgetstr'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:582: undefined reference to `tgetstr'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:583: undefined reference to `tgetstr'
terminal.o:/mnt/clfs/sources/texinfo-4.8/info/terminal.c:586: more undefined references to `tgetstr' follow
terminal.o: In function `terminal_initialize_terminal':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:618: undefined reference to `tgetflag'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:618: undefined reference to `tgetflag'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:629: undefined reference to `tgetstr'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:630: undefined reference to `tgetstr'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:631: undefined reference to `tgetstr'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:632: undefined reference to `tgetstr'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:634: undefined reference to `tgetstr'
terminal.o:/mnt/clfs/sources/texinfo-4.8/info/terminal.c:635: more undefined references to `tgetstr' follow
terminal.o: In function `terminal_goto_xy':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:236: undefined reference to `tgoto'
terminal.o: In function `terminal_insert_lines':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:390: undefined reference to `tgoto'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:390: undefined reference to `tputs'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:394: undefined reference to `tputs'
terminal.o: In function `terminal_delete_lines':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:366: undefined reference to `tgoto'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:366: undefined reference to `tputs'
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:370: undefined reference to `tputs'
terminal.o: In function `terminal_ring_bell':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:349: undefined reference to `tputs'
terminal.o: In function `terminal_end_inverse':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:333: undefined reference to `tputs'
terminal.o: In function `terminal_begin_inverse':
/mnt/clfs/sources/texinfo-4.8/info/terminal.c:321: undefined reference to `tputs'
terminal.o:/mnt/clfs/sources/texinfo-4.8/info/terminal.c:309: more undefined references to `tputs' follow
collect2: ld returned 1 exit status
Does anyone know how I can fix this?
 
Old 03-18-2008, 03:35 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Did you verify "configure" can find the includes with exported C|LDFLAGS stuff?
 
Old 03-18-2008, 04:48 PM   #3
SupremeOverlord
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Original Poster
Rep: Reputation: 0
I tried configuring with:
Quote:
CC="${CC} ${BUILD64}" LDFLAGS="-L/tools/lib64" CPPFLAGS="-I/tools/include" ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET}
I then checked the config.log file to confirm the flags went through and LDFLAGS were both set to the right directory. I confirmed that ncurses are in those places:
Quote:
clfs@jake-ubuntu:/mnt/clfs/sources/texinfo-4.8$ ls /tools/lib64
32 libc.so libmenu.a libnss_dns.so.2 libresolv.a
Mcrt1.o libc.so.6 libmenu.so libnss_files-2.4.so libresolv.so
Scrt1.o libc_nonshared.a libmenu.so.5 libnss_files.so libresolv.so.2
crt1.o libcrypt-2.4.so libmenu.so.5.5 libnss_files.so.2 librt-2.4.so
crti.o libcrypt.a libmudflap.a libnss_hesiod-2.4.so librt.a
crtn.o libcrypt.so libmudflap.la libnss_hesiod.so librt.so
gcc libcrypt.so.1 libmudflap.so libnss_hesiod.so.2 librt.so.1
gconv libcurses.a libmudflap.so.0 libnss_nis-2.4.so libssp.a
gcrt1.o libcurses.so libmudflap.so.0.0.0 libnss_nis.so libssp.la
ld-2.4.so libdl-2.4.so libmudflapth.a libnss_nis.so.2 libssp.so
ld-linux-x86-64.so.2 libdl.a libmudflapth.la libnss_nisplus-2.4.so libssp.so.0
libBrokenLocale-2.4.so libdl.so libmudflapth.so libnss_nisplus.so libssp.so.0.0.0
libBrokenLocale.a libdl.so.2 libmudflapth.so.0 libnss_nisplus.so.2 libssp_nonshared.a
libBrokenLocale.so libform.a libmudflapth.so.0.0.0 libopcodes-2.17.so libssp_nonshared.la
libBrokenLocale.so.1 libform.so libncurses++.a libopcodes.a libstdc++.a
libSegFault.so libform.so.5 libncurses.a libopcodes.la libstdc++.la
libanl-2.4.so libform.so.5.5 libncurses.so libopcodes.so libstdc++.so
libanl.a libg.a libncurses.so.5 libpanel.a libstdc++.so.6
libanl.so libgcc_s.so libncurses.so.5.5 libpanel.so libstdc++.so.6.0.8
libanl.so.1 libgcc_s.so.1 libnsl-2.4.so libpanel.so.5 libsupc++.a
libbfd-2.17.so libiberty.a libnsl.a libpanel.so.5.5 libsupc++.la
libbfd.a libieee.a libnsl.so libpcprofile.so libthread_db-1.0.so
libbfd.la libm-2.4.so libnsl.so.1 libpthread-2.4.so libthread_db.so
libbfd.so libm.a libnss_compat-2.4.so libpthread.a libthread_db.so.1
libbsd-compat.a libm.so libnss_compat.so libpthread.so libutil-2.4.so
libbz2.a libm.so.6 libnss_compat.so.2 libpthread.so.0 libutil.a
libc-2.4.so libmcheck.a libnss_dns-2.4.so libpthread_nonshared.a libutil.so
libc.a libmemusage.so libnss_dns.so libresolv-2.4.so libutil.so.1
Quote:
clfs@jake-ubuntu:/mnt/clfs/sources/texinfo-4.8$ ls /tools/include/
_G_config.h byteswap.h endian.h gconv.h linux neteconet re_comp.h stdio_ext.h ttyent.h
a.out.h bzlib.h envz.h getopt.h locale.h netinet regex.h stdlib.h ucontext.h
aio.h c++ err.h glob.h malloc.h netipx regexp.h string.h ulimit.h
aliases.h complex.h errno.h gnu math.h netpacket resolv.h strings.h unctrl.h
alloca.h cpio.h error.h gnu-versions.h mcheck.h netrom rpc stropts.h unistd.h
ansidecl.h crypt.h eti.h grp.h memory.h netrose rpcsvc symcat.h ustat.h
ar.h ctype.h etip.h iconv.h menu.h nfs sched.h sys utime.h
argp.h curses.h execinfo.h ieee754.h mf-runtime.h nl_types.h scsi syscall.h utmp.h
argz.h cursesapp.h fcntl.h ifaddrs.h mntent.h nss.h search.h sysexits.h utmpx.h
arpa cursesf.h features.h inttypes.h monetary.h obstack.h semaphore.h syslog.h values.h
asm cursesm.h fenv.h langinfo.h mqueue.h panel.h setjmp.h tar.h wait.h
asm-generic cursesp.h fmtmsg.h lastlog.h ncurses.h paths.h sgtty.h term.h wchar.h
asm-i386 cursesw.h fnmatch.h libgen.h ncurses_dll.h poll.h shadow.h termcap.h wctype.h
asm-x86_64 cursslk.h form.h libiberty.h net printf.h signal.h termio.h wordexp.h
assert.h dirent.h fpu_control.h libintl.h netash protocols spawn.h termios.h xlocale.h
bfd.h dis-asm.h fstab.h libio.h netatalk pthread.h stab.h tgmath.h
bfdlink.h dlfcn.h fts.h limits.h netax25 pty.h stdint.h thread_db.h
bits elf.h ftw.h link.h netdb.h pwd.h stdio.h time.h
 
Old 03-19-2008, 06:56 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Are you sure you installed the complete ncurses and ncurses-dev(el) packages? Doesn't look to me like it is. Next time please refine the output by grepping or put items one per line in BB code tags. Not fun to read through.
 
1 members found this post helpful.
Old 03-19-2008, 07:53 PM   #5
SupremeOverlord
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Ah! It seems that I had only installed ncurses and not libncurses-dev. That sorted out my whole problem. Thank you very much and I am sorry for my sloppy output.
 
Old 03-19-2008, 08:12 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
NP, NP. Good to see its fixed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem compiling multipath-tools bipins1979 Linux - Software 1 02-24-2006 05:48 PM
Compiling Server Cluster Tools for RH wimnat Linux - Software 1 11-29-2005 09:29 AM
How do I install Compiling tools? SGFHK321 Linux - Newbie 7 07-10-2004 07:53 AM
Temporary System Freeze mingli Red Hat 2 05-09-2004 09:33 PM
Having Trouble compiling mii-tools LinuxRacr Linux - Software 1 06-07-2002 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration