Attempting to emerge system during a stage2 install, and during emerge freetype, got this message: In function `_start': undefined reference to `main' It's causing a build failure. I can work around it (?) by using --inject. Reproducible: Always Steps to Reproduce: 1. emerge freetype (first detected during 'emerge system') 2. 3. Actual Results: zlib FreeType build system -- automatic system detection The following settings are used: platform ansi compiler gcc configuration directory ./builds/ansi configuration rules ./builds/ansi/ansi.mk If this does not correspond to your system or settings please remove the file `config.mk' from this directory then read the INSTALL file for help. Otherwise, simply type `make' again to build the library. cc -I./objs -I./builds/ansi -I./include -O2 -march=i686 -mcpu=athlon-xp -funroll-loops -pipe -O2 -march=i686 -mcpu=athlon-xp -funroll-loops -pipe -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -o objs/ftsystem.o src/base/ftsystem.c cc -I./objs -I./builds/ansi -I./include -O2 -march=i686 -mcpu=athlon-xp -funroll-loops -pipe -O2 -march=i686 -mcpu=athlon-xp -funroll-loops -pipe -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -o objs/ftdebug.o src/base/ftdebug.c /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [objs/ftdebug.o] Error 1 make: *** Waiting for unfinished jobs.... /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [objs/ftsystem.o] Error 1 !!! ERROR: media-libs/freetype-2.1.4 failed. !!! Function src_compile, Line 43, Exitcode 2 !!! (no error message) Expected Results: I might have expected a successful merge message. # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.18-1-686) ================================================================= System uname: 2.4.18-1-686 i686 AMD Athlon(TM) XP 1600+ Gentoo Base System version 1.4.3.8p1 Autoconf: sys-devel/autoconf-2.58 Automake: ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -mcpu=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=i686 -mcpu=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu 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 Xaw3d acpi alsa apache2 apm arts avi berkdb crypt cups dga encode flash foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jikes jpeg kde ldap libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tiff truetype wmf wxwindows x86 xface xml xml2 xmms xv zlib"
I just marked 2.1.5 x86 stable, i have a hunch that will fix this problem for you. Please rsync and try again.
I assume it did.
Yep, 2.5.1 builds fine. Do I mark this as closed or what?
yeah we sort of should.. we have a tendency to leave things just 'resolved'.