Mailinglist Archive: opensuse-packaging (142 mails)

< Previous Next >
Re: [opensuse-packaging] split of ncurses library
Hi,

On Tue, 22 Nov 2011, Ilya Chernykh wrote:

-ltinfo needs to be added after -lncurses(w)

Still fails:

gcc -L/usr/lib/qt3/lib64 -L/opt/kde3/lib64 -L/usr/lib64 -lkdecore
-lkdeui -lkio -lqt-mt -lkparts -lDCOP -ldl -lstdc++ -lncurses -ltinfo
-L/usr/lib64 -Wl,-Bsymbolic-functions -L/usr/local/lib -o vim

All the libs above will not be used for linking (including your
-ltinfo) because they come before any .o files.

objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o
objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o
objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o
objects/fold.o objects/getchar.o objects/if_cscope.o
objects/if_xcmdsrv.o objects/main.o objects/mark.o objects/memfile.o
objects/memline.o objects/menu.o objects/message.o objects/misc1.o
objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o
objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o
objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o
objects/syntax.o objects/tag.o objects/term.o objects/ui.o
objects/undo.o objects/window.o objects/gui.o objects/pty.o
objects/gui_kde.o objects/gui_kde_x11.o objects/gui_kde_widget.o
objects/gui_kde_widget_moc.o objects/kvim_iface_skel.o
objects/netbeans.o objects/version.o -lSM -lICE -lXpm -lXt -lX11 -lXdmcp
-lSM -lICE -lnsl -lncurses -lacl -lattr -ldl

... these libs will be used, you -ltinfo needs to come after this
-lncurses.

That said, there seem to be other problems. From the object file names I
assume this is a KDE variant of vim ("objects/gui_kde.o"). That implies
that also the other libraries from above need to be moved here. You
either use the wrong make variable to setup your libraries or the makefile
itself uses them incorrectly in its link command. Libraries always need
to be linked last (as rule of thumb).


Ciao,
Michael.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups