Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-10

synapse + ssl on linux ,how to use libc

5 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dennis Poon

I need to use synapse + ssl on linux and it requires libc but I cannot locate this unit.
Can anyone help?

Also, has anyone used it before? Is it stable?
I have been using lnet + ssl but it was unstable , so wanted to try synapse.

Any comments are appreciated.

Dennis

Tony Whyman
to Dennis Poon

Dennis,

If you are looking for the FPC unit called "libc", on my system it is (source code)

/usr/share/fpcsrc/2.6.2/packages/libc/src/libc.pp

and comes with the warning

unit libc deprecated 'Unportable Kylix legacy unit that only exists on
Linux/x86. see http://wiki.freepascal.org/libc_unit ';

If you are looking for the underlying C library of that name, on my Ubuntu 12.04 X64 system, its in

/lib/x86_64-linux-gnu/libc.so.6

Regards

Tony Whyman
MWA Software

P.S. Personally, I prefer the Indy components for Internet access.

Dennis Poon wrote 17 lines
I need to use synapse + ssl on linux and it requires libc but I cannot locate this unit. Can anyone help? Also, has anyone used it before? Is it stable? I have been using lnet + ssl but it was unstable , so wanted to try synapse. Any comments are appreciated. Dennis _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Sven Barth
to Dennis Poon: I need to use synapse + ssl on linux and it requires libc but I cannot locate this unit.…
Dennis Poon wrote 10 lines
I need to use synapse + ssl on linux and it requires libc but I cannot locate this unit. Can anyone help? Also, has anyone used it before? Is it stable? I have been using lnet + ssl but it was unstable , so wanted to try synapse. Any comments are appreciated.

It's very unlikely that you'll need the *unit* libc. That is deprecated, exists only for Kylix compatibility and only on i386-linux. What will be the case however is that it will the libc *library*. You can link to that by e.g. specifying {$linklib c}.

Regards,
Sven

Marco van de Voort
to Sven Barth

In our previous episode, Sven Barth said:

Show quoted text 5 lines
> Any comments are appreciated. It's very unlikely that you'll need the *unit* libc. That is deprecated, exists only for Kylix compatibility and only on i386-linux. What will be the case however is that it will the libc *library*. You can link to that by e.g. specifying {$linklib c}.

some additions:

1. better use an unit that uses libc, like initc, that abstracts the exact name of libc, making it easier to fix for BeOS/Haiku and embedded targets

2. The wikipedia article in the wiki has some pointers what to replace libc with. Directly declaring prototypes for libc is the least desirable solution (after using unit libc).

http://wiki.freepascal.org/libc_unit

3. I thought recent synapses fixed this?