First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 68005
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: AMD64 Project <amd64@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: OKUMURA N. Shin-ya <oku.ns@dream.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
kon2-0.3.9b-lp64.patch app-i18n/kon2 LP64 patch patch OKUMURA N. Shin-ya 2004-12-07 06:47 0000 400 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 68005 depends on: Show dependency tree
Show dependency graph
Bug 68005 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-10-18 05:25 0000
'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.

------- Comment #1 From Simon Stelling (RETIRED) 2004-10-19 04:23:51 0000 -------
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?

------- Comment #2 From Karol Wojtaszek (RETIRED) 2004-11-17 07:41:54 0000 -------
It's gcc-3.4 related problem, i'll try to fix it today later

------- Comment #3 From Karol Wojtaszek (RETIRED) 2004-11-19 15:26:30 0000 -------
Fixed in CVS.

------- Comment #4 From OKUMURA N. Shin-ya 2004-12-07 06:47:21 0000 -------
Created an attachment (id=45433) [edit]
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.

------- Comment #5 From OKUMURA N. Shin-ya 2004-12-07 06:51:51 0000 -------
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.

------- Comment #6 From Simon Stelling (RETIRED) 2004-12-08 12:43:43 0000 -------
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"

------- Comment #7 From OKUMURA N. Shin-ya 2004-12-09 04:47:24 0000 -------
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.

------- Comment #8 From OKUMURA N. Shin-ya 2004-12-13 04:43:39 0000 -------
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)?

------- Comment #9 From Simon Stelling (RETIRED) 2005-02-26 04:06:38 0000 -------
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

------- Comment #10 From OKUMURA N. Shin-ya 2005-03-27 07:34:34 0000 -------
Sorry, it would be my misconception.

First Last Prev Next    No search results available      Search page      Enter new bug