Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53826 - syslinux-2.09 failes to compile with gcc 3.4.0
Summary: syslinux-2.09 failes to compile with gcc 3.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All All
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-13 12:30 UTC by Matthew Kennedy (RETIRED)
Modified: 2004-12-04 13:53 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
syslinux-2.09-gcc34.patch (syslinux-2.09-gcc34.patch,1.88 KB, patch)
2004-06-30 22:45 UTC, Patrick Dawson (RETIRED)
Details | Diff
syslinux-2.09.ebuild-gcc34.patch (syslinux-2.09.ebuild-gcc34.patch,402 bytes, patch)
2004-06-30 22:50 UTC, Patrick Dawson (RETIRED)
Details | Diff
syslinux-2.09.ebuild-gcc34.patch (alternative) (syslinux-2.09.ebuild-gcc34.patch,588 bytes, patch)
2004-06-30 23:25 UTC, Patrick Dawson (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kennedy (RETIRED) gentoo-dev 2004-06-13 12:30:42 UTC
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
Comment 1 Patrick Dawson (RETIRED) gentoo-dev 2004-06-30 22:45:08 UTC
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.
Comment 2 Patrick Dawson (RETIRED) gentoo-dev 2004-06-30 22:50:35 UTC
Created attachment 34557 [details, diff]
syslinux-2.09.ebuild-gcc34.patch

adds the above patch to the ebuild
Comment 3 Patrick Dawson (RETIRED) gentoo-dev 2004-06-30 23:25:45 UTC
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.
Comment 4 Rafal Dejewski 2004-09-08 06:30:59 UTC
Patrick, your patch worked also for 2.11.  Thanks!
Comment 5 B. Keroack 2004-11-12 17:47:38 UTC
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?
Comment 6 Robert Paskowitz (RETIRED) gentoo-dev 2004-11-12 21:03:24 UTC
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"
Comment 7 Brian Jackson (RETIRED) gentoo-dev 2004-12-04 13:53:24 UTC
new ~x86 version in portage should fix this