Hello All!
As you can remember, I also got the same problem some weeks ago. I stopped investigations due to other priorities...
I restarted again from scratch the installs today (cygwin + gpc) taking the new gpc contribution from the Chief and the latest cygwin which contains gcc 3.3.1. The problem is the same.
Searching for _ftruncate64 and _lseek64 I found them using "nm -A" in the C libraries (/usr/lib/libc.a and /usr/lib/libcygwin.a) but they are defined as __ftruncate64 and __lseek64 with doubled underscore at beginning. Could this be the mismatch?
Best Regards, Pascal Pottier.
Prof A Olowofoyeku (The African Chief) wrote:
On 15 Nov 2003 at 7:50, Dr Christian Hicks wrote:
I have gone back to basics and tried simple.p [ program test(input,output); begin writeln("hello world"); end. ]
I am getting the same error messages: /usr/lib/gcc-lib/i686-pc-cygwin/3.2.3/libgpc.a(rts.o)(.text+0x18ef):rts. c: undefined reference to `_ftruncate64' /usr/lib/gcc-lib/i686-pc-cygwin/3.2.3/libgpc.a(rts.o)(.text+0x18b4):rts. c: undefined reference to `_lseek64' collect2: ld returned 1 exit status
This is the same error message that I got from my Pascal calls C program. There is clearly something not right with my binary distribution. I will try and do a reinstallation and then run the test suite.
Perhaps an updated binary might help. I have updated the gpc-20030830 binaries here: http://www.gnu-pascal.de/contrib/chief/win32/cygwin/
This is an exact copy of my working version, and so should work.
Best regards, The Chief
Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/