[fpc-pascal]uclibc in freepascal

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Mon Jan 19 23:04:02 CET 2004

On Mon, 19 Jan 2004, Marco van de Voort wrote:

> > > However why would you want another one? Either stay clear of libc (keep it static),
> > > or use the vendor supplied one.
> > 
> > My program uses a {$LINKLIB c} (or to be more precise... the inet unit),
> > but I want to use uclibc as the program shuld run on an linux network
> > router (--> www.fli4l.de ) and it uses uclibc as standart libc. 
> As said there are two possibilities:
> - not use libc, and patch inet to use syscalls.

That is not possible. inet uses gethostent() etc, which is not a kernel

To remove the dependency on Libc, use the netdb unit. It has the same
functionality as inet, but you don't depend on the C library at all: It is
written in pascal. 

Unless you use libc somewhere else in your code as well, this should solve
your problem.


More information about the fpc-pascal mailing list