Bug 45716 - after dietlibc fix (see bug #45601) fnord refuses to compile on sparc64 ...
Bug#: 45716 Product:  Gentoo Linux Version: unspecified Platform: Sparc
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sparc@gentoo.org Reported By: mhellwig@gmx.at
Component: Ebuilds
URL: 
Summary: after dietlibc fix (see bug #45601) fnord refuses to compile on sparc64 ...
Keywords:  
Status Whiteboard: 
Opened: 2004-03-25 09:00 0000
Description:   Opened: 2004-03-25 09:00 0000
error is the following:

diet -Os gcc -o httpd httpd.o libowfat.a -mcpu=ultrasparc -O3 -pipe
httpd.o(.text+0x1774): In function `doit':
: undefined reference to `fstat64'
httpd.o(.text+0x1ca8): In function `handledirlist':
: undefined reference to `stat64'
httpd.o(.text+0x1e2c): In function `handledirlist':
: undefined reference to `lstat64'
httpd.o(.text+0x2084): In function `handleindexcgi':
: undefined reference to `stat64'
httpd.o(.text+0x247c): In function `serve_read_write':
: undefined reference to `lseek64'
httpd.o(.text+0x28b4): In function `serve_static_data':
: undefined reference to `lseek64'
collect2: ld returned 1 exit status
make: *** [httpd] Error 1

------- Comment #1 From Jason Wever (RETIRED) 2004-03-25 13:42:33 0000 -------
So after further investigation, both dietlibc and fnord need to be built with
an -mcpu value less than v9 or ultrasparc.  I'd added the replace-sparc64-flags
which will adjust any -mcpu=ultrasparc or -mcpu=v9 to -mcpu=v8 to the existing
dietlibc and fnord ebuilds.  You'll need to re-emerge dietlibc once it hits the
mirrors.