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
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.