Summary: | sys-libs/slang-2.1.3-r1 fails to build on IRIX | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Stuart Shelton <srcshelton> |
Component: | Prefix Support | Assignee: | Gentoo non-Linux Team <alt> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | MIPS | ||
OS: | IRIX | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stuart Shelton
2008-02-14 16:26:59 UTC
Ah, actually this was my fault <embarrassed> My wrapper for the MIPSpro compilers was incorrectly munging the command-line and placing system include directories before those specified by the build itself - so it was finding an older slang.h rather than the slang.h for the code being built. (Oh, and src/slutty.c should #include unistd.h and fcntl.h) With this corrected I now get the following errors: ld32: ERROR 33 : Unresolved text symbol "tputs" -- 1st referenced by /opt/portage/usr/lib/libreadline.a(display.o). ld32: ERROR 33 : Unresolved text symbol "tgoto" -- 1st referenced by /opt/portage/usr/lib/libreadline.a(display.o). ld32: ERROR 33 : Unresolved text symbol "tgetnum" -- 1st referenced by /opt/portage/usr/lib/libreadline.a(terminal.o). ld32: ERROR 33 : Unresolved text symbol "tgetstr" -- 1st referenced by /opt/portage/usr/lib/libreadline.a(terminal.o). ld32: ERROR 33 : Unresolved text symbol "tgetent" -- 1st referenced by /opt/portage/usr/lib/libreadline.a(terminal.o). ld32: ERROR 33 : Unresolved text symbol "tgetflag" -- 1st referenced by /opt/portage/usr/lib/libreadline.a(terminal.o). ... so I'll investigate this next my first guess is that it isn't linked correctly to ncurses or something, e.g. missing rpath. I've just rebuilt readline, and the final-stage link error has changed to: ld32: ERROR 33 : Unresolved text symbol "SLang_get_error" -- 1st referenced by slsh.o. ld32: ERROR 33 : Unresolved text symbol "SLang_pop_int" -- 1st referenced by slsh.o. ld32: ERROR 33 : Unresolved text symbol "SLutf8_enable" -- 1st referenced by slsh.o. ld32: ERROR 33 : Unresolved text symbol "SLang_handle_interrupt" -- 1st referenced by readline.o. ld32: ERROR 33 : Unresolved text symbol "SLang_push_function" -- 1st referenced by readline.o. ld32: ERROR 33 : Unresolved text symbol "SLang_push_int" -- 1st referenced by readline.o. ld32: ERROR 33 : Unresolved text symbol "SLrline_open2" -- 1st referenced by readline.o. ld32: ERROR 33 : Unresolved text symbol "SLrline_close" -- 1st referenced by readline.o. ld32: ERROR 33 : Unresolved data symbol "SL_RunTime_Error" -- 1st referenced by readline.o. ... so I think that my readline was broken previously, and this could potentially be a DSO ordering issue (as these symbols are UNDEF according to nm in readline.o Argh - my fault again! I had a '-L' option set in $LDFLAGS (which I'd forgotten about), meaning that it was trying to link against the old slang-1.4.9-r2 library rather than the newly built library. On the plus side, the IRIX wrapper has greatly improved. Sorry for wasting your time... |