inet_aton and inet_ntoa under Solaris7/8

inet_aton and inet_ntoa under Solaris7/8

Post by bcw.. » Wed, 27 Sep 2000 04:00:00



Has anybody been able to implement a macro or a C routine for porting
source code that contains either inet_aton or inet_ntoa functions.  I'm
trying to port the Apache mod_auth_tacacs.so and it always fails with
the message /usr/local/apache/libexec/mod_auth_tacacs.so: symbol
inet_aton: referenced symbol not found.

I grepped all the /usr/include files and could not locate any reference
to this call however a 2.5.1 system did have it in arpa/inet.h.

Any help would be greatly appreciated.
Bob C

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

inet_aton and inet_ntoa under Solaris7/8

Post by Volker Borcher » Thu, 05 Oct 2000 04:00:00



> trying to port the Apache mod_auth_tacacs.so and it always fails with
> the message /usr/local/apache/libexec/mod_auth_tacacs.so: symbol
> inet_aton: referenced symbol not found.

On a 2.6 system:

X/Open Networking Services Library Functions       inet_addr(3XN)

NAME
     inet_addr,    inet_network,    inet_makeaddr,    inet_lnaof,
     inet_netof, inet_ntoa - Internet address manipulation

SYNOPSIS
     cc [ flag ... ] file ...  -lxnet [ library ... ]

                               ^^^^^^

--




 
 
 

1. What is happening w/ inet_ntoa & inet_aton

Hello!

I am trying to write a program which uses the function calls inet_ntoa and
inet_aton. They appear to be in libc. At least, with

   nm -s /lib/libc.so | grep inet_ntoa

I get

   000668e0 T inet_ntoa

Doesn't this means inet_ntoa in in libc.so?

But when I try to compile a program which uses this function, I get

   /tmp/cca014281.o(.text+0x10): undefined reference to `__inet_aton'

Any ideas?

Thank you!

Regards,
Carlos Antunes.

--
o------------------------------o-------------------------------------o
| Carlos M. S. Antunes         | "The important thing is not to stop |
| Global One Portugal NetAdmin |  questioning." -- Albert Einstein   |
o------------------------------o-------------------------------------o
|     Personal Homepage at http://einstein.global-one.pt/~cmsa/      |
o--------------------------------------------------------------------o

2. Solaris 2.6 Intel installation problem

3. Matrox Mystique ands X.

4. More help!!

5. inet_aton

6. Quota problems

7. inet_aton() function problems Any help appreciated!

8. Solaris 2.5 features

9. inet_aton

10. inet_aton() !?

11. help with inet_aton IP conversion...

12. inet_addr and inet_aton not working on linux

13. Cant find inet_aton?