Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Misc > Re: compiling c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 8 Topic 786 of 811
Post > Topic >>

Re: compiling curl wrappers

by P.A.C.Nunnink@[EMAIL PROTECTED] Apr 13, 2008 at 10:23 AM

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'
 




 8 Posts in Topic:
compiling curl wrappers
P.A.C.Nunnink@[EMAIL PROT  2008-04-12 17:51:25 
Re: compiling curl wrappers
Marco van de Voort <ma  2008-04-13 10:04:58 
Re: compiling curl wrappers
P.A.C.Nunnink@[EMAIL PROT  2008-04-13 10:00:37 
Re: compiling curl wrappers
Marco van de Voort <ma  2008-04-13 17:17:24 
Re: compiling curl wrappers
P.A.C.Nunnink@[EMAIL PROT  2008-04-13 10:23:34 
Re: compiling curl wrappers
Marco van de Voort <ma  2008-04-13 20:24:29 
Re: compiling curl wrappers
P.A.C.Nunnink@[EMAIL PROT  2008-04-14 05:18:57 
Re: compiling curl wrappers
Marco van de Voort <ma  2008-04-14 13:09:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 12:45:02 CDT 2008.