Gentoo 2004.2 Platform x86 (P4) emerge fam fails and return 2. I've synced this morning, but problem continues here. Reproducible: Always Steps to Reproduce: 1. emerge sync 2. emerge fam (Not masked packages installed) Is a brand new instalation. Actual Results: emerge returns 2 Last lines on screen pasted here: g++ -march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -frepo -o famd Activity.o Client.o ClientConnection.o ClientInterest.o Cred.o DirEntry.o Direc tory.o DirectoryScanner.o Event.o File.o FileSystem.o FileSystemTable.o IMon.o I nterest.o InternalClient.o Listener.o LocalClient.o LocalFileSystem.o Log.o MxCl ient.o NFSFileSystem.o NetConnection.o Pollster.o RPC_TCP_Connector.o Scanner.o Scheduler.o ServerConnection.o ServerHost.o ServerHostRef.o TCP_Client.o main.o timeval.o IMonNone.o -lrpcsvc Listener.o(.text+0x689): In function `Listener::create_local_client(TCP_Client&, unsigned int)': : warning: the use of `tempnam' is dangerous, better use `mkstemp' FileSystem.o(.text+0x70): In function `FileSystem::FileSystem(mntent const&)': : undefined reference to `BTree<ClientInterest*, bool>::BTree()' FileSystem.o(.text+0x77): In function `FileSystem::FileSystem(mntent const&)': : undefined reference to `vtable for Set<ClientInterest*>' FileSystem.o(.text+0xf4): In function `FileSystem::FileSystem(mntent const&)': : undefined reference to `BTree<ClientInterest*, bool>::BTree()' FileSystem.o(.text+0xfb): In function `FileSystem::FileSystem(mntent const&)': : undefined reference to `vtable for Set<ClientInterest*>' FileSystem.o(.text+0x138): In function `FileSystem::~FileSystem()': : undefined reference to `vtable for Set<ClientInterest*>' FileSystem.o(.text+0x140): In function `FileSystem::~FileSystem()': : undefined reference to `BTree<ClientInterest*, bool>::~BTree()' FileSystem.o(.text+0x1b8): In function `FileSystem::~FileSystem()': : undefined reference to `vtable for Set<ClientInterest*>' FileSystem.o(.text+0x1c0): In function `FileSystem::~FileSystem()': : undefined reference to `BTree<ClientInterest*, bool>::~BTree()' FileSystem.o(.text+0x238): In function `FileSystem::~FileSystem()': : undefined reference to `vtable for Set<ClientInterest*>' FileSystem.o(.text+0x240): In function `FileSystem::~FileSystem()': : undefined reference to `BTree<ClientInterest*, bool>::~BTree()' FileSystem.o(.text+0x2fc): In function `FileSystem::relocate_interests()': : undefined reference to `BTree<ClientInterest*, bool>::first() const' FileSystem.o(.text+0x31c): In function `FileSystem::relocate_interests()': : undefined reference to `BTree<ClientInterest*, bool>::next(ClientInterest* con st&) const' FileSystem.o(.text+0x355): In function `FileSystem::monitor(ClientInterest*, Cli entInterest::Type)': : undefined reference to `BTree<ClientInterest*, bool>::insert(ClientInterest* c onst&, bool const&)' FileSystem.o(.text+0x3a4): In function `FileSystem::cancel(ClientInterest*, int) ': : undefined reference to `BTree<ClientInterest*, bool>::remove(ClientInterest* c onst&)' FileSystemTable.o(.text+0x15): In function `FileSystemTable::create_fs_by_name() ': : undefined reference to `vtable for StringTable<FileSystem*>' FileSystemTable.o(.text+0x34): In function `FileSystemTable::create_fs_by_name() ': : undefined reference to `vtable for StringTable<FileSystem*>' FileSystemTable.o(.text+0x5b): In function `FileSystemTable::create_fs_by_name() ': : undefined reference to `vtable for StringTable<FileSystem*>' FileSystemTable.o(.text+0x85): In function `FileSystemTable::create_fs_by_name() ': : undefined reference to `StringTable<FileSystem*>::operator=(StringTable<FileSy stem*> const&)' FileSystemTable.o(.text+0x171): In function `FileSystemTable::create_fs_by_name( )': : undefined reference to `StringTable<FileSystem*>::insert(char const*, FileSyst em* const&)' FileSystemTable.o(.text+0x1cd): In function `FileSystemTable::create_fs_by_name( )': : undefined reference to `StringTable<FileSystem*>::insert(char const*, FileSyst em* const&)' FileSystemTable.o(.text+0x2a8): In function `FileSystemTable::create_fs_by_name( )': : undefined reference to `StringTable<FileSystem*>::insert(char const*, FileSyst em* const&)' FileSystemTable.o(.text+0x2e9): In function `FileSystemTable::create_fs_by_name( )': : undefined reference to `StringTable<FileSystem*>::remove(char const*)' FileSystemTable.o(.text+0x3d6): In function `FileSystemTable::create_fs_by_name( )': : undefined reference to `StringTable<FileSystem*>::~StringTable()' FileSystemTable.o(.text+0x3e2): In function `FileSystemTable::create_fs_by_name( )': : undefined reference to `StringTable<FileSystem*>::~StringTable()' FileSystemTable.o(.text+0x45e): In function `FileSystemTable::create_fs_by_name( )': : undefined reference to `StringTable<FileSystem*>::~StringTable()' FileSystemTable.o(.text+0x46a): In function `FileSystemTable::create_fs_by_name( )': : undefined reference to `StringTable<FileSystem*>::~StringTable()' FileSystemTable.o(.text+0x4f1): In function `FileSystemTable::mtab_event_handler (Event const&, void*)': : undefined reference to `SmallTable<unsigned long, FileSystem*>::removeAll()' FileSystemTable.o(.text+0x6c4): In function `__static_initialization_and_destruc tion_0(int, int)': : undefined reference to `vtable for SmallTable<unsigned long, FileSystem*>' FileSystemTable.o(.text+0x70d): In function `__tcf_0': : undefined reference to `SmallTable<unsigned long, FileSystem*>::~SmallTable()' Listener.o(.text+0x840): In function `Listener::create_local_client(TCP_Client&, unsigned int)': : undefined reference to `BTree<int, NegotiatingClient*>::insert(int const&, Neg otiatingClient* const&)' Listener.o(.text+0x92d): In function `Listener::accept_localclient(int, void*)': : undefined reference to `BTree<int, NegotiatingClient*>::find(int const&) const ' Listener.o(.text+0xa1f): In function `Listener::accept_localclient(int, void*)': : undefined reference to `BTree<int, NegotiatingClient*>::remove(int const&)' Listener.o(.text+0xe9d): In function `cleanup_negotiation(void*)': : undefined reference to `BTree<int, NegotiatingClient*>::remove(int const&)' Listener.o(.text+0xf36): In function `__static_initialization_and_destruction_0( int, int)': : undefined reference to `BTree<int, NegotiatingClient*>::BTree()' Listener.o(.text+0xf61): In function `__tcf_0': : undefined reference to `BTree<int, NegotiatingClient*>::~BTree()' MxClient.o(.text+0x34): In function `MxClient::MxClient(in_addr)': : undefined reference to `BTree<int, ClientInterest*>::BTree()' MxClient.o(.text+0x8a): In function `MxClient::MxClient(in_addr)': : undefined reference to `BTree<int, ClientInterest*>::BTree()' MxClient.o(.text+0xd7): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::first() const' MxClient.o(.text+0x101): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::remove(int const&)' MxClient.o(.text+0x110): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' MxClient.o(.text+0x132): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' MxClient.o(.text+0x175): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::first() const' MxClient.o(.text+0x19f): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::remove(int const&)' MxClient.o(.text+0x1ae): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' MxClient.o(.text+0x1d0): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' MxClient.o(.text+0x213): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::first() const' MxClient.o(.text+0x23d): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::remove(int const&)' MxClient.o(.text+0x24c): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' MxClient.o(.text+0x276): In function `MxClient::~MxClient()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' MxClient.o(.text+0x2ac): In function `MxClient::interest(int)': : undefined reference to `BTree<int, ClientInterest*>::find(int const&) const' MxClient.o(.text+0x349): In function `MxClient::check_new(int, char const*)': : undefined reference to `BTree<int, ClientInterest*>::find(int const&) const' MxClient.o(.text+0x400): In function `MxClient::monitor_file(int, char const*, C red const&)': : undefined reference to `BTree<int, ClientInterest*>::insert(int const&, Client Interest* const&)' MxClient.o(.text+0x4a0): In function `MxClient::monitor_dir(int, char const*, Cr ed const&)': : undefined reference to `BTree<int, ClientInterest*>::insert(int const&, Client Interest* const&)' MxClient.o(.text+0x540): In function `MxClient::cancel(int)': : undefined reference to `BTree<int, ClientInterest*>::remove(int const&)' NFSFileSystem.o(.text+0x6d4): In function `NFSFileSystem::~NFSFileSystem()': : undefined reference to `BTree<ClientInterest*, bool>::first() const' NFSFileSystem.o(.text+0x754): In function `NFSFileSystem::~NFSFileSystem()': : undefined reference to `BTree<ClientInterest*, bool>::first() const' NFSFileSystem.o(.text+0x7d4): In function `NFSFileSystem::~NFSFileSystem()': : undefined reference to `BTree<ClientInterest*, bool>::first() const' Pollster.o(.text+0x20): In function `Pollster::watch(Interest*)': : undefined reference to `BTree<Interest*, bool>::insert(Interest* const&, bool const&)' Pollster.o(.text+0x55): In function `Pollster::forget(Interest*)': : undefined reference to `BTree<Interest*, bool>::remove(Interest* const&)' Pollster.o(.text+0xab): In function `Pollster::watch(ServerHost*)': : undefined reference to `BTree<ServerHost*, bool>::insert(ServerHost* const&, b ool const&)' Pollster.o(.text+0xdd): In function `Pollster::forget(ServerHost*)': : undefined reference to `BTree<ServerHost*, bool>::remove(ServerHost* const&)' Pollster.o(.text+0x281): In function `Pollster::polling_task(void*)': : undefined reference to `BTree<Interest*, bool>::first() const' Pollster.o(.text+0x2b2): In function `Pollster::polling_task(void*)': : undefined reference to `BTree<Interest*, bool>::next(Interest* const&) const' Pollster.o(.text+0x360): In function `Pollster::polling_task(void*)': : undefined reference to `BTree<ServerHost*, bool>::first() const' Pollster.o(.text+0x38c): In function `Pollster::polling_task(void*)': : undefined reference to `BTree<ServerHost*, bool>::next(ServerHost* const&) con st' Pollster.o(.text+0x3c8): In function `__static_initialization_and_destruction_0( int, int)': : undefined reference to `BTree<Interest*, bool>::BTree()' Pollster.o(.text+0x3d9): In function `__static_initialization_and_destruction_0( int, int)': : undefined reference to `vtable for Set<Interest*>' Pollster.o(.text+0x400): In function `__static_initialization_and_destruction_0( int, int)': : undefined reference to `BTree<ServerHost*, bool>::BTree()' Pollster.o(.text+0x411): In function `__static_initialization_and_destruction_0( int, int)': : undefined reference to `vtable for Set<ServerHost*>' Pollster.o(.text+0x435): In function `__tcf_0': : undefined reference to `vtable for Set<Interest*>' Pollster.o(.text+0x441): In function `__tcf_0': : undefined reference to `BTree<Interest*, bool>::~BTree()' Pollster.o(.text+0x453): In function `__tcf_1': : undefined reference to `vtable for Set<ServerHost*>' Pollster.o(.text+0x45f): In function `__tcf_1': : undefined reference to `BTree<ServerHost*, bool>::~BTree()' ServerHost.o(.text+0x60): In function `ServerHost::ServerHost(hostent const&)': : undefined reference to `BTree<int, ClientInterest*>::BTree()' ServerHost.o(.text+0xee): In function `ServerHost::ServerHost(hostent const&)': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' ServerHost.o(.text+0x166): In function `ServerHost::ServerHost(hostent const&)': : undefined reference to `BTree<int, ClientInterest*>::BTree()' ServerHost.o(.text+0x1f4): In function `ServerHost::ServerHost(hostent const&)': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' ServerHost.o(.text+0x281): In function `ServerHost::~ServerHost()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' ServerHost.o(.text+0x2de): In function `ServerHost::~ServerHost()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' ServerHost.o(.text+0x36f): In function `ServerHost::~ServerHost()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' ServerHost.o(.text+0x3cc): In function `ServerHost::~ServerHost()': : undefined reference to `BTree<int, ClientInterest*>::~BTree()' ServerHost.o(.text+0x617): In function `ServerHost::connect_handler(int, void*)' : : undefined reference to `BTree<int, ClientInterest*>::first() const' ServerHost.o(.text+0x633): In function `ServerHost::connect_handler(int, void*)' : : undefined reference to `BTree<int, ClientInterest*>::find(int const&) const' ServerHost.o(.text+0x6c6): In function `ServerHost::connect_handler(int, void*)' : : undefined reference to `BTree<int, ClientInterest*>::next(int const&) const' ServerHost.o(.text+0x88d): In function `ServerHost::event_handler(Event const*, int, char const*, void*)': : undefined reference to `BTree<int, ClientInterest*>::find(int const&) const' ServerHost.o(.text+0xaff): In function `ServerHost::deferred_scan_task(void*)': : undefined reference to `BTree<int, ClientInterest*>::find(int const&) const' ServerHost.o(.text+0xcae): In function `ServerHost::send_monitor(ClientInterest* , ClientInterest::Type, char const*)': : undefined reference to `BTree<int, ClientInterest*>::find(int const&) const' ServerHost.o(.text+0xcd1): In function `ServerHost::send_monitor(ClientInterest* , ClientInterest::Type, char const*)': : undefined reference to `BTree<int, ClientInterest*>::insert(int const&, Client Interest* const&)' ServerHost.o(.text+0xd8a): In function `ServerHost::send_cancel(int)': : undefined reference to `BTree<int, ClientInterest*>::find(int const&) const' ServerHost.o(.text+0xda1): In function `ServerHost::send_cancel(int)': : undefined reference to `BTree<int, ClientInterest*>::remove(int const&)' ServerHost.o(.text+0xed9): In function `ServerHost::poll()': : undefined reference to `BTree<int, ClientInterest*>::first() const' ServerHost.o(.text+0xef5): In function `ServerHost::poll()': : undefined reference to `BTree<int, ClientInterest*>::find(int const&) const' ServerHost.o(.text+0xf11): In function `ServerHost::poll()': : undefined reference to `BTree<int, ClientInterest*>::next(int const&) const' ServerHostRef.o(.text+0xab): In function `ServerHostRef::~ServerHostRef()': : undefined reference to `StringTable<ServerHost*>::remove(char const*)' ServerHostRef.o(.text+0x17d): In function `ServerHostRef::~ServerHostRef()': : undefined reference to `StringTable<ServerHost*>::remove(char const*)' ServerHostRef.o(.text+0x2ab): In function `ServerHostRef::find(char const*)': : undefined reference to `StringTable<ServerHost*>::insert(char const*, ServerHo st* const&)' ServerHostRef.o(.text+0x2c5): In function `ServerHostRef::find(char const*)': : undefined reference to `StringTable<ServerHost*>::insert(char const*, ServerHo st* const&)' ServerHostRef.o(.text+0x2e8): In function `ServerHostRef::find(char const*)': : undefined reference to `StringTable<ServerHost*>::insert(char const*, ServerHo st* const&)' ServerHostRef.o(.text+0x352): In function `ServerHostRef::find(char const*)': : undefined reference to `vtable for StringTable<ServerHost*>' TCP_Client.o(.text+0x46): In function `TCP_Client::TCP_Client(in_addr, int, Cred &)': : undefined reference to `BTree<Interest*, bool>::BTree()' TCP_Client.o(.text+0x4d): In function `TCP_Client::TCP_Client(in_addr, int, Cred &)': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x11d): In function `TCP_Client::TCP_Client(in_addr, int, Cre d&)': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x129): In function `TCP_Client::TCP_Client(in_addr, int, Cre d&)': : undefined reference to `BTree<Interest*, bool>::~BTree()' TCP_Client.o(.text+0x198): In function `TCP_Client::TCP_Client(in_addr, int, Cre d&)': : undefined reference to `BTree<Interest*, bool>::BTree()' TCP_Client.o(.text+0x19f): In function `TCP_Client::TCP_Client(in_addr, int, Cre d&)': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x26f): In function `TCP_Client::TCP_Client(in_addr, int, Cre d&)': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x27b): In function `TCP_Client::TCP_Client(in_addr, int, Cre d&)': : undefined reference to `BTree<Interest*, bool>::~BTree()' TCP_Client.o(.text+0x2df): In function `TCP_Client::~TCP_Client()': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x2e7): In function `TCP_Client::~TCP_Client()': : undefined reference to `BTree<Interest*, bool>::~BTree()' TCP_Client.o(.text+0x324): In function `TCP_Client::~TCP_Client()': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x32c): In function `TCP_Client::~TCP_Client()': : undefined reference to `BTree<Interest*, bool>::~BTree()' TCP_Client.o(.text+0x393): In function `TCP_Client::~TCP_Client()': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x39b): In function `TCP_Client::~TCP_Client()': : undefined reference to `BTree<Interest*, bool>::~BTree()' TCP_Client.o(.text+0x3d8): In function `TCP_Client::~TCP_Client()': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x3e0): In function `TCP_Client::~TCP_Client()': : undefined reference to `BTree<Interest*, bool>::~BTree()' TCP_Client.o(.text+0x447): In function `TCP_Client::~TCP_Client()': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x44f): In function `TCP_Client::~TCP_Client()': : undefined reference to `BTree<Interest*, bool>::~BTree()' TCP_Client.o(.text+0x494): In function `TCP_Client::~TCP_Client()': : undefined reference to `vtable for Set<Interest*>' TCP_Client.o(.text+0x49c): In function `TCP_Client::~TCP_Client()': : undefined reference to `BTree<Interest*, bool>::~BTree()' TCP_Client.o(.text+0xae3): In function `TCP_Client::unblock_handler(void*)': : undefined reference to `BTree<Interest*, bool>::first() const' TCP_Client.o(.text+0xaf7): In function `TCP_Client::unblock_handler(void*)': : undefined reference to `BTree<Interest*, bool>::remove(Interest* const&)' TCP_Client.o(.text+0xb82): In function `TCP_Client::enqueue_for_scan(Interest*)' : : undefined reference to `BTree<Interest*, bool>::insert(Interest* const&, bool const&)' TCP_Client.o(.text+0xbc2): In function `TCP_Client::dequeue_from_scan(Interest*) ': : undefined reference to `BTree<Interest*, bool>::remove(Interest* const&)' collect2: ld returned 1 exit status make[2]: *** [famd] Error 1 make[2]: Leaving directory `/var/tmp/portage/fam-2.7.0/work/fam-2.7.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/fam-2.7.0/work/fam-2.7.0' make: *** [all] Error 2 !!! ERROR: app-admin/fam-2.7.0 failed. !!! Function src_compile, Line 415, Exitcode 2 !!! emake failed Expected Results: emerge returns 0 and fam being emerged. emerge info says: Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3) ================================================================= System uname: 2.6.8-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -frepo" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cscope cups divx4linux dvd encode esd evo exif foomaticdb ftp gdbm gif gnome gpm gtk gtk2 gtkhtml imap imlib jabber jack java joystick jpeg kde lesstif libg++ libwww mad mikmod mime mmx motif mpeg msn mysql mysqli ncurses nls oggvorbis opengl oss pam pcre pda pdflib perl php png python qt quicktime radeon readline samba scanner sdl slang slp sockets spell ssl tcpd truetype usb vhosts videos vim vim-with-x wxwindows x86 xml2 xmms xosd xprint xv xvid zlib"
is this a stable system & has always been like that ? This behaviour afaik could happen trough a glibc/libstdc++ discrepancy ? toolchain got a thought maybe ?
Yes, always an stable system. I've started 3 or 4 days ago from stage 1.
"-frepo Enable automatic template instantiation at link time. This option also implies -fno-implicit-templates." Try taking -frepo out of your CXXFLAGS. When I added that, it would break for me in the same spot as yours.
Yes, removing frepo solves the problem. Thank you very much!!! P.S.: I'm not sure if I must close the bug or wait for you, so I'll keep it open.
CXXFLAGS strikes again