Issue Details (XML | Word | Printable)

Key: CORE-1644
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Igor Lobov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Compilation error on GCC 4.1.1

Created: 11/Dec/07 02:20 AM   Updated: 26/Dec/07 12:55 PM
Component/s: Build Issues / Porting
Affects Version/s: 2.0.3, 2.1 Beta 2
Fix Version/s: 2.1 RC1, 2.0.4

Time Tracking:
Not Specified

File Attachments: 1. Text File config.log (50 kB)



 Description  « Hide
Compilation error on GCC 4.1.1 (ALT Linux Server 4.0)

../gen/firebird/lib/libeditline.a(term.o): In function `term_deletechars':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:751: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:742: undefined reference to `tgoto'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:742: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:754: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:747: undefined reference to `tputs'
../gen/firebird/lib/libeditline.a(term.o): In function `term_beep':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:867: undefined reference to `tputs'
../gen/firebird/lib/libeditline.a(term.o): In function `term_clear_screen':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:847: undefined reference to `tputs'
../gen/firebird/lib/libeditline.a(term.o):/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:849: more undefined references to `tputs' follow
../gen/firebird/lib/libeditline.a(term.o): In function `term_insertwrite':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:783: undefined reference to `tgoto'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:783: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:798: undefined reference to `tputs'
../gen/firebird/lib/libeditline.a(term.o): In function `term_move_to_char':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:650: undefined reference to `tgoto'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:650: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:614: undefined reference to `tgoto'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:614: undefined reference to `tputs'
../gen/firebird/lib/libeditline.a(term.o): In function `term_move_to_line':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:561: undefined reference to `tgoto'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:561: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:579: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:574: undefined reference to `tgoto'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:574: undefined reference to `tputs'
../gen/firebird/lib/libeditline.a(term.o): In function `term_set':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:925: undefined reference to `tgetent'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:943: undefined reference to `tgetflag'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:944: undefined reference to `tgetflag'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:946: undefined reference to `tgetflag'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:947: undefined reference to `tgetflag'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:949: undefined reference to `tgetflag'
../gen/firebird/lib/libeditline.a(term.o):/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:950: more undefined references to `tgetflag' follow
../gen/firebird/lib/libeditline.a(term.o): In function `term_set':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:952: undefined reference to `tgetnum'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:953: undefined reference to `tgetnum'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:956: undefined reference to `tgetstr'
../gen/firebird/lib/libeditline.a(term.o): In function `term_echotc':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:1597: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:1545: undefined reference to `tgetstr'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:1681: undefined reference to `tgoto'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:1681: undefined reference to `tputs'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:1625: undefined reference to `tgoto'
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:1625: undefined reference to `tputs'
../gen/firebird/lib/libeditline.a(term.o): In function `term_insertwrite':
/usr/src/Firebird-2.1.0.16780-Beta2/extern/editline/src/term.c:800: undefined reference to `tputs'
collect2: ld returned 1 exit status
make[2]: *** [../gen/firebird/bin/isql_static] Error 1
make[1]: *** [isql_static] Error 2
make: *** [firebird] Error 2


 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 11/Dec/07 02:50 AM
It's termcap/curses library problem on your system. Please, provie config log and exact command line which caused an error - I need to know what library was chosen at alt linux.

Igor Lobov added a comment - 11/Dec/07 05:10 AM
A have such rpm`s:

libncursesw-5.6-alt2
libncurses-5.6-alt2
ncurses-5.6-alt2
libncurses-devel-5.6-alt2
libncursesw-devel-5.6-alt2

with files

/usr/bin/ncurses5-config
/usr/include/curses.h
/usr/include/eti.h
/usr/include/form.h
/usr/include/menu.h
/usr/include/ncurses
/usr/include/ncurses.h
/usr/include/ncurses/curses.h
/usr/include/ncurses/eti.h
/usr/include/ncurses/form.h
/usr/include/ncurses/menu.h
/usr/include/ncurses/ncurses.h
/usr/include/ncurses/panel.h
/usr/include/ncurses/unctrl.h
/usr/include/panel.h
/usr/include/unctrl.h
/usr/lib/libcurses.so
/usr/lib/libform.so
/usr/lib/libmenu.so
/usr/lib/libncurses.so
/usr/lib/libpanel.so

/usr/lib/libform.so.5
/usr/lib/libform.so.5.6
/usr/lib/libmenu.so.5
/usr/lib/libmenu.so.5.6
/usr/lib/libncurses.so.3
/usr/lib/libncurses.so.4
/usr/lib/libncurses.so.5
/usr/lib/libncurses.so.5.6
/usr/lib/libpanel.so.5
/usr/lib/libpanel.so.5.6

Igor Lobov added a comment - 11/Dec/07 10:18 AM
The command which was mistaken:

g++ -Wl,-rpath,/usr/local/firebird/lib -Wl,-rpath,/usr/local/firebird/intl ../temp/boot/isql/extract.o ../temp/boot/isql/isql.o ../temp/boot/isql/show.o ../temp/boot/isql/Extender.o ../temp/boot/common/classes/alloc.o ../temp/boot/common/classes/locks.o ../temp/boot/common/classes/fb_string.o ../temp/boot/common/classes/timestamp.o ../temp/boot/common/classes/TempFile.o ../temp/boot/common/classes/UserBlob.o ../temp/boot/common/classes/SafeArg.o ../temp/boot/common/classes/MsgPrint.o ../temp/boot/common/classes/BaseStream.o ../temp/boot/common/fb_exception.o ../temp/boot/common/classes/MetaName.o ../temp/boot/common/StatusHolder.o ../temp/boot/common/utils.o ../temp/boot/config/AdminException.o ../temp/boot/config/Args.o ../temp/boot/config/ArgsException.o ../temp/boot/config/ConfObj.o ../temp/boot/config/ConfObject.o ../temp/boot/config/ConfigFile.o ../temp/boot/config/Configuration.o ../temp/boot/config/DirectoryList.o ../temp/boot/config/Element.o ../temp/boot/config/FileName.o ../temp/boot/config/InputFile.o ../temp/boot/config/InputStream.o ../temp/boot/config/Lex.o ../temp/boot/config/ScanDir.o ../temp/boot/config/Stream.o ../temp/boot/config/StreamSegment.o ../temp/boot/vulcan/JString.o ../temp/boot/vulcan/PathName.o ../temp/boot/vulcan/RefObject.o -o ../gen/firebird/bin/isql_static -L../gen/firebird/lib -lfbstatic -lcurses -lm -lc -ldl -licuuc -licudata -licui18n ../gen/firebird/lib/libeditline.a

Alexander Peshkov added a comment - 12/Dec/07 04:50 AM
Igor, did you receive private mail from me?

Alexander Peshkov added a comment - 14/Dec/07 06:53 AM
Due to bug in AltLinux ld order of libraries in the command line happens to be important. I've changed it to make libeditline be the first. It does no harm in all other cases, but makes AltLinux happy.