Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz Gentoo Base System version 1.12.0_pre15 ccache version 2.4 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector -fvisibility-inlines-hidden -fvisibility=hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg candy ccache distlocks moo prelink sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://gentoo.umfiasi.ro/gentoo-portage/" USE="x86 3dnow 3dnowext X aalib acl alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdb cdr chm cpudetection crypt cups curl dba eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif gimp gimpprint glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imlib java jpeg junit lcms libbeagle libcaca libg++ libwww mad matroska mhash mikmod mmx mmxext mng mono motif mozilla mp3 mpeg mysql ncurses nls nvidia ogg oggvorbis opengl oss pam pcre pdf pdflib perl png python qt quicktime readline real recode samba scanner sdl skey slang sms snmp speex spell sqlite sse sse2 ssl svg svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis webservices win32codecs wmf wxgtk1 xine xml2 xmms xv xvid yahoo zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
(cd .libs && rm -f libcoyotl.so && ln -s libcoyotl-3.1.so.4.0.0 libcoyotl.so) i686-pc-linux-gnu-ar cru .libs/libcoyotl.a crccalc.o realutil.o command_line.o maze.o maze_recursive.o maze_renderer.o prng.o mtwister.o mwc1038.o kissrng.o mwc256.o cmwc4096.o i686-pc-linux-gnu-ranlib .libs/libcoyotl.a creating libcoyotl.la (cd .libs && rm -f libcoyotl.la && ln -s ../libcoyotl.la libcoyotl.la) make[1]: Leaving directory `/var/tmp/portage/libcoyotl-3.1.0/work/libcoyotl-3.1.0/libcoyotl' Making all in test make[1]: Entering directory `/var/tmp/portage/libcoyotl-3.1.0/work/libcoyotl-3.1.0/test' if i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIBPNG=1 -DHAVE_LIBRT=1 -I. -I. -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector -fvisibility-inlines-hidden -fvisibility=hidden -MT test_prng.o -MD -MP -MF ".deps/test_prng.Tpo" -c -o test_prng.o test_prng.cpp; \ then mv -f ".deps/test_prng.Tpo" ".deps/test_prng.Po"; else rm -f ".deps/test_prng.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_STDBOOL_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIBPNG=1 -DHAVE_LIBRT=1 -I. -I. -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector -fvisibility-inlines-hidden -fvisibility=hidden -MT test_maze.o -MD -MP -MF ".deps/test_maze.Tpo" -c -o test_maze.o test_maze.cpp; \ then mv -f ".deps/test_maze.Tpo" ".deps/test_maze.Po"; else rm -f ".deps/test_maze.Tpo"; exit 1; fi /bin/sh ../libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++ -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector -fvisibility-inlines-hidden -fvisibility=hidden -o test_prng test_prng.o -L../libcoyotl -lrt -lpng -lcoyotl /bin/sh ../libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++ -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector -fvisibility-inlines-hidden -fvisibility=hidden -o test_maze test_maze.o -L../libcoyotl -lrt -lpng -lcoyotl mkdir .libs i686-pc-linux-gnu-g++ -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector -fvisibility-inlines-hidden -fvisibility=hidden -o .libs/test_prng test_prng.o -L/var/tmp/portage/libcoyotl-3.1.0/work/libcoyotl-3.1.0/libcoyotl /var/tmp/portage/libcoyotl-3.1.0/work/libcoyotl-3.1.0/libcoyotl/.libs/libcoyotl.so -lrt -lpng /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.5 i686-pc-linux-gnu-g++ -O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector -fvisibility-inlines-hidden -fvisibility=hidden -o .libs/test_maze test_maze.o -L/var/tmp/portage/libcoyotl-3.1.0/work/libcoyotl-3.1.0/libcoyotl /var/tmp/portage/libcoyotl-3.1.0/work/libcoyotl-3.1.0/libcoyotl/.libs/libcoyotl.so -lrt -lpng /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.5 test_prng.o: In function `main': test_prng.cpp:(.text+0xdb): undefined reference to `libcoyotl::mtwister::mtwister()' test_prng.cpp:(.text+0x155): undefined reference to `libcoyotl::mwc1038::mwc1038()' test_prng.cpp:(.text+0x1cf): undefined reference to `libcoyotl::kissrng::kissrng()' test_prng.cpp:(.text+0x249): undefined reference to `libcoyotl::mwc256::mwc256()' test_prng.cpp:(.text+0x2c3): undefined reference to `libcoyotl::cmwc4096::cmwc4096()' collect2: ld returned 1 exit status make[1]: *** [test_prng] Error 1 make[1]: *** Waiting for unfinished jobs.... test_maze.o: In function `main': test_maze.cpp:(.text+0x51): undefined reference to `libcoyotl::mwc1038::mwc1038()' test_maze.cpp:(.text+0xc9): undefined reference to `vtable for libcoyotl::recursive_maze_architect' test_maze.cpp:(.text+0x18b): undefined reference to `libcoyotl::maze::generate(unsigned int, unsigned int, libcoyotl::maze::architect&)' test_maze.cpp:(.text+0x219): undefined reference to `libcoyotl::maze_renderer::render(libcoyotl::maze const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)' test_maze.cpp:(.text+0x341): undefined reference to `libcoyotl::maze::save(std::basic_ostream<char, std::char_traits<char> >&)' test_maze.cpp:(.text+0x48e): undefined reference to `libcoyotl::maze::load(std::basic_istream<char, std::char_traits<char> >&)' test_maze.cpp:(.text+0x500): undefined reference to `libcoyotl::maze_renderer::render(libcoyotl::maze const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)' test_maze.cpp:(.text+0x56a): undefined reference to `libcoyotl::maze::~maze()' test_maze.cpp:(.text+0x690): undefined reference to `libcoyotl::maze::~maze()' test_maze.cpp:(.text+0x951): undefined reference to `libcoyotl::maze::~maze()' test_maze.cpp:(.text+0xb4e): undefined reference to `libcoyotl::maze::~maze()' collect2: ld returned 1 exit status make[1]: *** [test_maze] Error 1 make[1]: Leaving directory `/var/tmp/portage/libcoyotl-3.1.0/work/libcoyotl-3.1.0/test' make: *** [all-recursive] Error 1
CXXFLAGS="-O3 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe -fstack-protector -fvisibility-inlines-hidden -fvisibility=hidden" And what happens if you use something sane, like: CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe" It is probably one of your -fvisibility things, but might as well take out the fstack-protector too.
work here as well. thanx!