Hi, I'm trying to compile LPTK 0.9.0 on FreeBSD 4 using a working fpc 2.0.4. I use this compiler for a long time now and never had the symptoms as following:
At first the compiler does not find librt and libdl. I know these exist only on Linux and don't know, why they are tried to be pulled in. When I delete the -ldl an -lrt from the link.res and start ppas.sh, the compiler struggles on finding unit libc. If I add an extra -Fu... to the path where it is found, some functions are missing. Some of those are 64bit file system functions like stat64, so I assumed they where newer and tried the libc.pp from fpc 2.0.2, but the same thing happens (see below). Using "man" there where no such functions found, although the man pages on freebsd are generally very good and complete. This never happened to me, I have written some programs using plain gtk1 or functions from foreign libraries (including libc IIRC), but I never had any problem. So I'm stuck. What going on here? How can I repair it? TIA, Marc $ out/ppas.sh Linking out/app_vfd /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used $ out/ppas.sh Linking out/app_vfd /usr/lib/libc.so: WARNING! setkey(3) not present in the system! /usr/lib/libc.so: warning: this program uses gets(), which is unsafe. /usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: WARNING! des_setkey(3) not present in the system! /usr/lib/libc.so: WARNING! encrypt(3) not present in the system! /usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libc.so: warning: this program uses f_prealloc(), which is not recommended. /usr/lib/libc.so: WARNING! des_cipher(3) not present in the system! /usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp() out/libc.o: In function `ERRNO': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/cerrno.inc:9: undefined reference to `__errno_location' out/libc.o: In function `SETERRNO': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/cerrno.inc:15: undefined reference to `__errno_location' out/libc.o: In function `CLK_TCK': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/time.inc:4: undefined reference to `__sysconf' out/libc.o: In function `FSTAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:50: undefined reference to `__fxstat' out/libc.o: In function `LSTAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:56: undefined reference to `__lxstat' out/libc.o: In function `STAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:62: undefined reference to `__xstat' out/libc.o: In function `FSTAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:68: undefined reference to `__fxstat64' out/libc.o: In function `LSTAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:74: undefined reference to `__lxstat64' out/libc.o: In function `STAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:80: undefined reference to `__xstat64' out/libc.o: In function `STAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:86: undefined reference to `__xstat' out/libc.o: In function `FSTAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:92: undefined reference to `__fxstat' out/libc.o: In function `STAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:98: undefined reference to `__xstat64' out/libc.o: In function `FSTAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:104: undefined reference to `__fxstat64' out/libc.o: In function `LSTAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:110: undefined reference to `__lxstat' out/libc.o: In function `LSTAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:116: undefined reference to `__lxstat64' out/libc.o: In function `_IO_GETC_UNLOCKED': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/libio.inc:11: undefined reference to `__uflow' out/libc.o: In function `_IO_PEEKC_UNLOCKED': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/libio.inc:20: undefined reference to `__underflow' out/libc.o: In function `_IO_PUTC_UNLOCKED': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/libio.inc:32: undefined reference to `__overflow' out/libc.o: In function `_IO_GETWC_UNLOCKED': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/libio.inc:46: undefined reference to `__wuflow' out/libc.o: In function `SA_LEN': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/bsocket.inc:6: undefined reference to `__libc_sa_len' out/libc.o: In function `CMSG_NXTHDR': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/bsocket.inc:20: undefined reference to `__cmsg_nxthdr' An error occurred while linking out/app_vfd unsafely; consider using mkstemp() out/libc.o: In function `ERRNO': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/cerrno.inc:9: undefined reference to `__errno_location' out/libc.o: In function `SETERRNO': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/cerrno.inc:15: undefined reference to `__errno_location' out/libc.o: In function `CLK_TCK': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/time.inc:4: undefined reference to `__sysconf' out/libc.o: In function `FSTAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:50: undefined reference to `__fxstat' out/libc.o: In function `LSTAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:56: undefined reference to `__lxstat' out/libc.o: In function `STAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:62: undefined reference to `__xstat' out/libc.o: In function `FSTAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:68: undefined reference to `__fxstat64' out/libc.o: In function `LSTAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:74: undefined reference to `__lxstat64' out/libc.o: In function `STAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:80: undefined reference to `__xstat64' out/libc.o: In function `STAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:86: undefined reference to `__xstat' out/libc.o: In function `FSTAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:92: undefined reference to `__fxstat' out/libc.o: In function `STAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:98: undefined reference to `__xstat64' out/libc.o: In function `FSTAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:104: undefined reference to `__fxstat64' out/libc.o: In function `LSTAT': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:110: undefined reference to `__lxstat' out/libc.o: In function `LSTAT64': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/sstat.inc:116: undefined reference to `__lxstat64' out/libc.o: In function `_IO_GETC_UNLOCKED': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/libio.inc:11: undefined reference to `__uflow' out/libc.o: In function `_IO_PEEKC_UNLOCKED': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/libio.inc:20: undefined reference to `__underflow' out/libc.o: In function `_IO_PUTC_UNLOCKED': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/libio.inc:32: undefined reference to `__overflow' out/libc.o: In function `_IO_GETWC_UNLOCKED': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/libio.inc:46: undefined reference to `__wuflow' out/libc.o: In function `SA_LEN': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/bsocket.inc:6: undefined reference to `__libc_sa_len' out/libc.o: In function `CMSG_NXTHDR': /usr/home/marc/program/fpc-svn/fpc/packages/base/libc/bsocket.inc:20: undefined reference to `__cmsg_nxthdr' An error occurred while linking out/app_vfd _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal