Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on GCC 4.1.1 [CORE1644] #824

Closed
firebird-automations opened this issue Dec 11, 2007 · 12 comments
Closed

Compilation error on GCC 4.1.1 [CORE1644] #824

firebird-automations opened this issue Dec 11, 2007 · 12 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Igor Lobov (ivl)

Attachments:
config.log

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

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.

@firebird-automations
Copy link
Collaborator Author

Commented by: Igor Lobov (ivl)

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

@firebird-automations
Copy link
Collaborator Author

Modified by: Igor Lobov (ivl)

Attachment: config.log [ 10690 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Igor Lobov (ivl)

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

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Igor, did you receive private mail from me?

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

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.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.1 RC1 [ 10201 ]

Fix Version: 2.0.4 [ 10211 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13630 ] => Firebird [ 14036 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Cannot be tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment