pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38585: Solaris vsftpd build fails, missing inet_aton in sysutil.o



>Number:         38585
>Category:       pkg
>Synopsis:       Solaris vsftpd build fails, missing inet_aton in sysutil.o
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 05 08:00:00 +0000 2008
>Originator:     Mehul Sanghvi
>Release:        Solaris 9
>Organization:
>Environment:
SunOS dev6 5.9 Generic_118558-24 sun4u sparc SUNW,UltraAX-i2
>Description:
While building net/vsftpd, the build fails during the linking stage because it 
can not find inet_aton() in the libraries that it is linking to.

On a Solaris system inet_aton() is stored in the resolv library, and hence 
-lresolv needs to be added to the link flags.

Here is what the link flag looks like currently:

   LIBS.SunOS= -lsocket -lnsl -lrt -lsendfile

and here is the modified version

   LIBS.SunOS= -lsocket -lnsl -lrt -lsendfile -lresolv


>How-To-Repeat:
# cd /usr/pkgsrc/net/vsftpd
# cvs update
# make install

>Fix:
Add "-lresolv" to the end of the LIBS.SunOS line in net/vsftpd/Makefile



Home | Main Index | Thread Index | Old Index