Re: problem building fnord in 64 bit on a sparc running Linux
Felix von Leitner <[email protected]> Thu, 25 Mar 2004 21:19:25 +0100
| Newsgroups | gmane.comp.web.fnord |
|---|---|
| Message-ID | <[email protected]> |
Thus spake The Eye ([email protected]): > We (#gentoo-sparc on freenode) are right now trying to compile fnord-1.8 > in a 64 bit version for this system, using the same make command. It > fails the following way: > diet -Os sparc64-linux-gcc -o httpd httpd.o libowfat.a -mcpu=ultrasparc > -O3 -pipe > httpd.o(.text+0x2238): In function `serve_read_write': > : undefined reference to `time' > httpd.o(.text+0x231c): In function `serve_read_write': > : undefined reference to `time' > httpd.o(.text+0x2438): In function `serve_mmap': > : undefined reference to `time' > httpd.o(.text+0x24d8): In function `serve_mmap': > : undefined reference to `time' > httpd.o(.text+0x279c): In function `main': > : undefined reference to `time' > httpd.o(.text+0x2804): more undefined references to `time' follow > collect2: ld returned 1 exit status > make: *** [httpd] Error 1 Verified and fixed in CVS. > 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 I cannot reproduce this because my cross compiling environment breaks for this case. However, my cross compiled bin-sparc/dietlibc.a does export the symbol "fstat64" and the others. I can only cross compile for sparc32 linux with -mcp settings below ultrasparc, and with -mcpu=supersparc I can successfully link fnord. > If access to a sparc64 computer running Gentoo is required for testing, > this can be arranged. Thanks for any help here ... That would be beneficial if I am to reproduce the problem. Felix