News:

HTTPS is back; rejoice if you love security theatre

Main Menu

Programmatically Controlling Programs

Started by tygre, Feb 01, 2026, 10:32 PM

Previous topic - Next topic

tygre

Hi there,

So, I continued my journey: I tried to make rumba work with my NAS, no luck. I also tried NSF as suggested by Rhetorica, and following their guide, no luck either ::)
But I'm learning and can still use yftpd! :)

Then, I decided to change focus: I installed GCC 2.95.3 and tried to compile two simple client/server programs.

GCC complains that the symbols _inet_pton (and _inet_aton when I used inet_aton() instead of inet_pton()) do not exist.
I read that NeXTStep is not fully POSIX-compliant (?). Could that be the reason? If so, what can I do? ???

Cheers!
Tygre
-----------------------------------------
     Scientific Progress Goes Boing!
       http://www.chingu.asia/wiki
-----------------------------------------

marvin

Hi @tygre ,

have you used the compiler like this: gcc -posix ... -lposix ?
DON'T PANIC

tygre

Hi @marvin !

I hadn't tried, but no luck with them.

First, I tried gcc -o client -posix -lposix client.c, but I got dozens of errors: "multiple definitions of symbol".
Then, I tried gcc -o client -posix -lposix -Xlinker -m client.c to change the errors into warnings, but I still got "undefined symbols... _inet_aton".

I grep'ed the libs on my system (like libiberty.a, libgcc.a...) and none contain anything "inet" anyway. I must be missing something ??? but where to find it? :(

Thanks in advance for any suggestions!
Tygre
-----------------------------------------
     Scientific Progress Goes Boing!
       http://www.chingu.asia/wiki
-----------------------------------------

tygre

Hi there,

I made some progress today! I managed to compile and run successfully the two simple client/server programs by replacing inet_aton() with inet_addr() and making a few other minor changes.

Let's see now if I can adapt the code of my FTP and HTTP clients... ::)

Cheers!
Tygre
-----------------------------------------
     Scientific Progress Goes Boing!
       http://www.chingu.asia/wiki
-----------------------------------------