gcc -m32 -x assembler -c -o conio.o conio.s ld -m elf_i386 -r -b binary -o memdisk.o memdisk.bin gcc -m32 -x assembler -c -o e820test.o e820test.s ld -m elf_i386 -Ttext 0 -o memdisk16.elf init.o16 init32.o gcc -m32 -g -o e820test e820func.o msetup.o e820test.o memdisk.o objcopy -O binary memdisk16.elf memdisk16.bin gcc -m32 -x assembler -c -o unzip.o unzip.s ld -m elf_i386 -Ttext 0x100000 -o memdisk32.elf start32.o setup.o msetup.o e820func.o conio.o memcpy.o memset.o unzip.o memdisk.o setup.o(.text+0x29c): In function `get_disk_image_geometry': /var/tmp/portage/syslinux-2.09/work/syslinux-2.09/memdisk/setup.c:393: undefined reference to `memcmp' make[1]: *** [memdisk32.elf] Error 1 rm init.s16
Created attachment 34556 [details, diff] syslinux-2.09-gcc34.patch A patch based on this post in the syslinux mailing list: http://www.zytor.com/pipermail/syslinux/2004-June/003643.html The problem was not fixed for 2.10, as far as I can tell.
Created attachment 34557 [details, diff] syslinux-2.09.ebuild-gcc34.patch adds the above patch to the ebuild
Created attachment 34558 [details, diff] syslinux-2.09.ebuild-gcc34.patch (alternative) It's a little ugly, but it's short and it works with 2.09 and 2.10.
Patrick, your patch worked also for 2.11. Thanks!
This bug also occurs with gcc 3.4.3 and the current stable syslinux (syslinux-2.0.9). Might we get the newer fixed ebuild marked stable?
Tried the patch, still dies. # emerge info Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.7 i686) ================================================================= System uname: 2.6.7 i686 Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.6.6 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs distlocks sandbox" GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca/ ftp://gentoo.agsn.ca/ http://gentoo.mirrored.ca/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="X acpi alsa apache apache1 avantgo avi berkdb bitmap-fonts cdr crypt cups dillo dvd encode esd ethereal evo f77 fbcon foomaticdb fortran freetype gd gdbm gif gimpprint gnome gnutls gpm gt gtk gtk2 hal imap imlib java jpeg kde libg++ libwww mad mbox mikmod mmx mono motif mozilla moznocompose moznoirc moznomail mpeg mysql ncurses network nls nntp nvidia ofx oggvorbis opengl oss pam pcmcia pda pdflib perl png pnp python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb userlocales wifi x86 xface xinerama xml2 xmms xv zlib video_cards_radeon"
new ~x86 version in portage should fix this