'struct font_header' in ./font/minix.c of app-i18n/kon2 should be fixed to use on amd64 environment. I modified the last member, 'long sum;', to 'int sum;', and then, it works fine currently. Because this structure comes from old MINIX, 'int32_t' or 'char[4]' might be better for 16-bit compatibility but the former one need stdint.h or types.h. Kon2 does not use 'sum', so any 4-bytes-type will be good. I hope this fix will be added to kon2-*-gentoo.patch.
a patch would be great also, i get another error in another file: term.c:541: error: conflicting types for 'ChangeNewConsole' term.c:293: error: previous implicit declaration of 'ChangeNewConsole' was here term.c:541: warning: 'ChangeNewConsole' defined but not used make[1]: *** [term.o] Error 1 could you add your emerge info?
It's gcc-3.4 related problem, i'll try to fix it today later
Fixed in CVS.
Created attachment 45433 [details, diff] app-i18n/kon2 LP64 patch The last modification fixed gcc-3.4 problem, but not LP64 (long and pointer as 64bit) problem. For instance, before this attached patch is applied, $ kon $ printf '\243\260\n' is expected to show wide-width zero in euc-JP encoding, but it shows decayed font, because 'struct font_header' is 4 bytes larger than expected. I hope merge this attachment also.
The last fix resolved gcc-3.4 problem, but not LP64 (Long and Pointer are sized as 64 bit) problem. I attached a patch for the originally reported bug.
i tried out your patch, but there are some other issues: cc -g -N swkon.o /var/tmp/portage/kon2-0.3.9b-r1/work/kon2-0.3.9b/lib/libgon.a /var/tmp/portage/kon2-0.3.9b-r1/work/kon2-0.3.9b/lib/libgon.a -o swkon /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib/libc.a(libc-start.o): relocation R_X86_64_32 against `_dl_starting_up' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib/libc.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [swkon] Error 1 make[1]: Leaving directory `/var/tmp/portage/kon2-0.3.9b-r1/work/kon2-0.3.9b/tools' make: *** [subdirs] Error 2 !!! ERROR: app-i18n/kon2-0.3.9b-r1 failed. oh, and my emerge info: ;) Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.8-gentoo-r6 x86_64) ================================================================= System uname: 2.6.8-gentoo-r6 x86_64 AMD Opteron(tm) Processor 242 Gentoo Base System version 1.6.6 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Aug 28 2004, 19:51:48)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6 sys-devel/automake: 1.9.3, 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r7 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -march=k8" CHOST="x86_64-pc-linux-gnu" 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/init.d /etc/env.d" CXXFLAGS="-O3 -pipe -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distlocks sandbox userpriv" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/blubb/gentoo/gentoo-x86" SYNC="rsync://buggy/gentoo-portage" USE="amd64 X acpi alsa bitmap-fonts bonobo bzlib cdr chroot crypt cups divx4linux dvd encode esd f77 fam flac ftp gdbm gif gimp glx gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib java jp2 jpeg junit libwww lzw lzw-tiff mad mikmod mng mozdomi mozilla moznoirc moznomail moznoxft mozp3p mozsvg mpeg msn multilib mysql ncurses network nls nptl oggvorbis opengl pam perl png posix python readline samba sdl sematicfix slang sqlite ssl svg tcltk tcpd tetex threads tiff truetype usb userlocales utf8 xinerama xml xml2 xmms xpm xrandr xsl xv zlib"
Simon, my emerge environment is a little diffrent from yours, as follows; Gentoo Base System version 1.4.16 Portage 2.0.51-r3 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20041104-r0, 2.6.9-gentoo-r6 x86_64) ================================================================= System uname: 2.6.9-gentoo-r6 x86_64 15 distcc 2.17 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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 /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks" GENTOO_MIRRORS="http://mirror.gentoo.gr.jp" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 apm arts avi berkdb bitmap-fonts bmp bonobo bzlib canna cdr cjk crypt doc encode esd f77 foomaticdb fortran gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde ldap libg++ libwww mbox mikmod mime mng motif mozilla mpeg mule multilib ncurses nls nogcj oggvorbis opengl oss pam pdflib perl php png postgres python qt quicktime readline samba sdl slang spell ssl tcltk tcpd tiff truetype unicode wmf xml2 xmms xv zlib" I will try gcc-3.4.3, "-O3 -pipe -march=k8" and binutils-2.15.92.0.2 in these days to reproduce it.
I cannot reproduce the ld error in my environment, even with gcc-3.4.3, "-O3 -pipe -march=k8" and binutils-2.15.92.0.2. Does anyone have any idea(s)?
what is the state on this? we have the InCVS keyword and it seems to be fixed, so i'll close it. feel free to reopen
Sorry, it would be my misconception.