Perl Socket.so and inet_aton.so

Upon building a module for perl I ran into a build issue with Socket.so in regards to an undefined symbol: inet_aton.so. When taking a closer look at the socket.so lib, it is apparent that the “proper” libraries should be there, however, in Solaris there are a few functions that do not exist in the same spots as other OS&squo;. So in order to properly build you need to add -lresolv or when you are invoking something that is prebuilt like cpan and using perl Socket.so you can simply use:

LD_PRELOAD=libresolv.so path_to_cpan

ttessier

About ttessier

Professional Developer and Operator of SwhistleSoft
This entry was posted in Perl Scripting. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *