On 13 apr, 19:17, Marco van de Voort <mar...@[EMAIL PROTECTED]
> wrote:
> On 2008-04-13, P.A.C.Nunn...@[EMAIL PROTECTED]
<P.A.C.Nunn...@[EMAIL PROTECTED]
> wrote:
>
>
>
> >> > And funny thing is, I have compiled this before, but I haven't got
the
> >> > slightest idea how I did it, then.
> >> > Please help!
>
> >> The libc unit is deprecated. It is a Kylix legacy unit that is only
sup****t
> >> for FPC on linux/x86. Please do not use it.
>
> >> Remove the unit, post the errors that you get, for some functions
there are
> >> substitutes.
>
> > Hey thanks, man!
>
> > I removed the unit and this is what I got:
>
> > gmake -C src fpc
> > gmake[1]: Entering directory `/usr/home/u204056/curl/curlpas
> > rm -f *.ppu *.o *.ppw *.ow
> > ppc386 curl_h.pas
> > Free Pascal Compiler version 2.0.2 [2005/11/17] for i386
> > Copyright (c) 1993-2005 by Florian Klaempfl
> > Target OS: FreeBSD/ELF for i386
> > Compiling curl_h.pas
> > curl_h.pas(458,14) Error: Identifier not found "off_t"
> > curl_h.pas(480,60) Error: Identifier not found "size_t"
> > curl_h.pas(557,47) Error: Identifier not found "ptime_t"
> > curl_h.pas(557,55) Error: Identifier not found "time_t"
> > curl_h.pas(574,67) Error: Identifier not found "pfdset"
>
> Those are relatively benign. Try to include unit baseunix, and see how
far
> you come.
>
> > There are two more places in the include files where libc is
> > metioned, I think tehre will be a few more errors concerning
> > thread-functions.
>
> This will be harder, and you will probably be needed to fully understand
the
> code to fix this.
>
> Some pthreads functions are in unit pthreads.
I now included baseunix and am left with following errors:
gmake -C src
fpc
gmake[1]: Entering directory `/usr/home/u204056/curl/
curlpas-2005-11-05/src'
rm -f *.ppu *.o *.ppw
*.ow
ppc386
curl_h.pas
Free Pascal Compiler version 2.0.2 [2005/11/17] for
i386
Copyright (c) 1993-2005 by Florian
Klaempfl
Target OS: FreeBSD/ELF for
i386
Compiling
curl_h.pas
647 Lines compiled, 0.1
sec
ppc386
curlobj.pas
Free Pascal Compiler version 2.0.2 [2005/11/17] for
i386
Copyright (c) 1993-2005 by Florian
Klaempfl
Target OS: FreeBSD/ELF for
i386
Compiling
curlobj.pas
ocurlprv.inc(112,17) Error: Identifier not found
"pIOFile"
ocurlprv.inc(112,24) Error: Error in type
definition
ocurlprt.inc(160,44) Error: Identifier not found
"pIOFile"
ocurlpub.inc(80,33) Error: Identifier not found
"pIOFile"
curlobj.pas(74,3) Fatal: There were 4 errors compiling module,
stopping
curlobj.pas(74,3) Fatal: Compilation
aborted
gmake[1]: Leaving directory `/usr/home/u204056/curl/curlpas-2005-11-05/
src'


|