Gentoo Archives: gentoo-dev

From: Pat Double <double@×××××××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Why would ld work outside an ebuild and not inside?
Date: Tue, 03 Dec 2002 12:52:56
Message-Id: 200212030642.29303.double@inebraska.com
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Is there a general reason why the linker would fail when compiling inside an
5 ebuild but the same package when configured and compiled outside an ebuild
6 works fine? In the snippet below you can see the undefined reference errors.
7 Outside the ebuild, I do not have this problem. This particular package
8 (app-text/bibletime) is in portage and works and I'm trying to get the latest
9 beta in an ebuild.
10
11 Thanks in advance.
12
13 /bin/sh ../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++
14 - -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith
15 - -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
16 - -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O3 -pipe -march=pentium4
17 - -mmmx -msse2 -mfpmath=sse -fexpensive-optimizations -fschedule-insns2
18 - -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt
19 - -falign-functions=4 -fno-exceptions -fno-check-new -o bibletime
20 - -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/cvs/lib -L/usr/lib -R
21 /usr/kde/cvs/lib -R /usr/qt/3/lib -R /usr/X11R6/lib bibletime_init.o
22 bibletime_slots.o bibletime.o main.o bibletime.moc.o
23 ./printing/libprinting.a ./frontend/displaywindow/libdisplaywindow.a
24 ./frontend/display/libdisplay.a ./frontend/keychooser/libkeychooser.a
25 ./frontend/mainindex/libmainindex.a ./frontend/searchdialog/libsearchdialog.a
26 ./frontend/libfrontend.a ./backend/libbackend.a ./util/libutil.a -lXext
27 - -lqt-mt -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lkdecore -lkdeui
28 - -lkdeprint -lkio -lkhtml -lX11 -lsword
29 ./frontend/searchdialog/libsearchdialog.a(csearchdialog.o)(.text+0x272c): In
30 function `CModuleChooser::initTree()':
31 : undefined reference to `CLanguageMgr::Language::name() const'
32 ./frontend/libfrontend.a(cbtconfig.o)(.text+0x16b7): In function
33 `CBTConfig::getKey(CLanguageMgr::Language const&)':
34 : undefined reference to `CLanguageMgr::Language::name() const'
35 collect2: ld returned 1 exit status
36
37
38 - --
39 Pat Double, double@×××××××××.com
40 "In the beginning God created the heaven and the earth."
41 -----BEGIN PGP SIGNATURE-----
42 Version: GnuPG v1.2.1 (GNU/Linux)
43
44 iD8DBQE97Ka1dOmLNuoWoKgRAjF/AKCaB/zlvKfFrCMJ95uuGDdriRwz9wCfQm3p
45 gxrgKJMADFJBazTH9mujawM=
46 =qKQQ
47 -----END PGP SIGNATURE-----
48
49
50 --
51 gentoo-dev@g.o mailing list