On 13 apr, 12:04, 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:
>
> > I've been trying to compile libcurl wrappers for the curl library. But
> > it doesn't work. I'm using FPC 2.0.2 en it keeps not finding a unit
> > named 'libc'. And neither can I, by the way. I've been googling around
> > and found sourcecode for a libc-unit, but that's not it, apparently.
> > 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(458,19) Error: Error in type definition
curl_h.pas(480,60) Error: Identifier not found "size_t"
curl_h.pas(480,75) Error: Identifier not found "size_t"
curl_h.pas(480,102) Error: Identifier not found "size_t"
curl_h.pas(481,59) Error: Identifier not found "size_t"
curl_h.pas(481,74) Error: Identifier not found "size_t"
curl_h.pas(481,100) Error: Identifier not found "size_t"
curl_h.pas(484,93) Error: Identifier not found "size_t"
curl_h.pas(544,54) 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"
curl_h.pas(574,88) Error: Identifier not found "pfdset"
curl_h.pas(574,107) Error: Identifier not found "pfdset"
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.


|