[Clfs-support] Error in texinfo-6.5

Daniel GSJ audobra at gmail.com
Wed Mar 14 14:52:28 PDT 2018


Hi again.

In this case I have also found an error during the make step (Chapter
6 of CLFS), but with texinfo-6.5. In the original version of CLFS
it was 5.2.

It seems that there is a problem with a small application called
"makedoc", which is not ready to be used during the compilation of funs.h.
This issue seems to appear only in cross-compiling.
(See below "First error output")

I've patched the Makefile.am adding the subdirectory "info":

# painful separate build for cross-compiling.
SUBDIRS =
if TOOLS_ONLY
  # Build native tools only.
  SUBDIRS += gnulib/lib install-info tp util info
                                                             ^^^^
And it fixed the error. But a new one appeared (See below "Second error
output")
Maybe it has something to do with ncurses...

Well... it getting hard to install texinfo!

Any help is welcomed. Thank you.

Daniel G.


3.0.0-SYSVINIT
Linux 4.13.0-36-generic 16.04.1-Ubuntu x86_64 GNU/Linux

CLFS_HOST="x86_64-cross-linux-gnu"
CLFS_TARGET="x86_64-unknown-linux-gnu"
CLFS_TARGET32="i686-pc-linux-gnu"

./configure \
--prefix=/tools \
--build=${CLFS_HOST} \
--host=${CLFS_TARGET}

#########  First error output   #####################################
make[2]: Entering directory '/mnt/clfs/sources/texinfo-6.5/info'
x86_64-unknown-linux-gnu-gcc -m64 -DHAVE_CONFIG_H -I. -I..  -I..
-I../gnulib/lib -I../gnulib/lib -DLOCALEDIR=\"/tools/share/locale\"
-DINFODIR=\"/tools/share/info\" -DINFODIR2=\"/tools/share/info\"
-g -O2 -MT makedoc.o -MD -MP -MF .deps/makedoc.Tpo -c -o makedoc.o makedoc.c

mv -f .deps/makedoc.Tpo .deps/makedoc.Po
x86_64-unknown-linux-gnu-gcc -m64  -g -O2   -o makedoc makedoc.o
../gnulib/lib/libgnu.a -lncurses

rm -f doc.c funs.h

../tools/info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c
./indices.c ./nodemenu.c ./footnotes.c ./variables.c

/bin/bash: ../tools/info/makedoc: No such file or directory

Makefile:2525: recipe for target 'funs.h' failed
make[2]: *** [funs.h] Error 127
make[2]: Leaving directory '/mnt/clfs/sources/texinfo-6.5/info'
Makefile:1199: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/clfs/sources/texinfo-6.5'
Makefile:1138: recipe for target 'all' failed
make: *** [all] Error 2



#########  Second error output   #####################################
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:749: undefined reference to
`tgetnum'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:759: undefined reference to
`tgetnum'
terminal.o: In function `terminal_goto_xy':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:294: undefined reference to
`tgoto'
terminal.o: In function `terminal_delete_lines':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:504: undefined reference to
`tgoto'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:504: undefined reference to
`tputs'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:508: undefined reference to
`tputs'
terminal.o: In function `terminal_insert_lines':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:528: undefined reference to
`tgoto'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:528: undefined reference to
`tputs'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:532: undefined reference to
`tputs'
terminal.o: In function `terminal_scroll_region':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:554: undefined reference to
`tgoto'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:554: undefined reference to
`tputs'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:560: undefined reference to
`tgoto'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:560: undefined reference to
`tputs'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:563: undefined reference to
`tgoto'
terminal.o: In function `terminal_default_colour':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:609: undefined reference to
`tputs'
terminal.o: In function `terminal_set_bgcolour':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:627: undefined reference to
`tgoto'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:627: undefined reference to
`tputs'
terminal.o: In function `terminal_set_colour':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:618: undefined reference to
`tgoto'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:618: undefined reference to
`tputs'
terminal.o: In function `terminal_initialize_terminal':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:934: undefined reference to
`tgetent'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:948: undefined reference to
`tgetstr'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:976: undefined reference to
`tgetstr'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:977: undefined reference to
`tgetstr'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:978: undefined reference to
`tgetstr'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:979: undefined reference to
`tgetstr'
terminal.o:/mnt/clfs/sources/texinfo-6.5/info/terminal.c:982: more
undefined references to `tgetstr' follow
terminal.o: In function `terminal_begin_using_terminal':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:189: undefined reference to
`tputs'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:198: undefined reference to
`tputs'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:184: undefined reference to
`tputs'
terminal.o: In function `terminal_end_using_terminal':
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:221: undefined reference to
`tputs'
/mnt/clfs/sources/texinfo-6.5/info/terminal.c:224: undefined reference to
`tputs'
terminal.o:/mnt/clfs/sources/texinfo-6.5/info/terminal.c:233: more
undefined references to `tputs' follow
collect2: error: ld returned 1 exit status
Makefile:1497: recipe for target 'ginfo' failed
make[5]: *** [ginfo] Error 1
make[5]: Leaving directory '/mnt/clfs/sources/texinfo-6.5/tools/info'
Makefile:1414: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/mnt/clfs/sources/texinfo-6.5/tools/info'
Makefile:1199: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/mnt/clfs/sources/texinfo-6.5/tools'
Makefile:1138: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/mnt/clfs/sources/texinfo-6.5/tools'
Makefile:1199: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/clfs/sources/texinfo-6.5'
Makefile:1138: recipe for target 'all' failed
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20180314/b8dbabf6/attachment-0002.html>


More information about the Clfs-support mailing list