pkgsrc-Bugs archive

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

pkg/41721: net/md-whois compilation errors (NetBSD 4.0)



>Number:         41721
>Category:       pkg
>Synopsis:       net/md-whois compilation errors (NetBSD 4.0)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 14 10:30:00 +0000 2009
>Originator:     Robert Elz
>Release:        NetBSD 4.0_STABLE
>Organization:
        Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE 
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 
kre%jade.coe.psu.ac.th@localhost:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
        net/md-whois fails to build correctly in a 4.0 environment.
        (it does manage to successfully compile/link the whois binary,
        it is something coming after that that fails).

>How-To-Repeat:
        I use pkg_comp with libkver and NetBSD4.0 sets to simulate a
        fairly pure 4.0 release environment.   (No x* sets, but that's
        irrelevant here).

        Building net/md-whois results in ...

cc -Wl,-R/usr/pkg/lib -o whois whois.o utils.o  
cc   -g -O2 -c mkpasswd.c
mkpasswd.c: In function 'main':
mkpasswd.c:132: error: 'optarg' undeclared (first use in this function)
mkpasswd.c:132: error: (Each undeclared identifier is reported only once
mkpasswd.c:132: error: for each function it appears in.)
mkpasswd.c:186: error: 'optind' undeclared (first use in this function)
mkpasswd.c:210: warning: incompatible implicit declaration of built-in function 
'snprintf'
mkpasswd.c:212: warning: incompatible implicit declaration of built-in function 
'snprintf'
mkpasswd.c:292: warning: assignment makes pointer from integer without a cast
mkpasswd.c:301: warning: assignment makes pointer from integer without a cast
gmake: *** [mkpasswd.o] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/net/md-whois
*** Error code 1

>Fix:
        Looks like a missing include file (or two)



Home | Main Index | Thread Index | Old Index