pkgsrc-Bugs archive

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

pkg/35786: net/arping compilation errors (NetBSD 3.0)



>Number:         35786
>Category:       pkg
>Synopsis:       net/arping compilation errors (NetBSD 3.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 22 15:35:00 +0000 2007
>Originator:     Robert Elz
>Release:        NetBSD 3.99.15   (pkgsrc current within past 8 hours)
>Organization:
        Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 3.99.15 NetBSD 3.99.15 
(GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006 
kre%jade.coe.psu.ac.th@localhost:/usr/obj/current/kernels/JADE_ASUS i386
Architecture: i386
Machine: i386
>Description:
        Since the recent upgrade, arping no longer compiles
        (on NetBSD 3.0 anyway, using pkg_comp and libkver to get
        a fairly pure NetBSD 3.0 release environment)

>How-To-Repeat:
        attempt to compile net/arping

        Expect to see ...


===> Building for arping-2.05nb1

Will now try to compile arping 2.x. If you have Libnet 1.0.x
(as opposed to 1.1.x) then this will fail and you should try
compiling arping 1.x.

Note that arping 1.x has been tested *A LOT* more than 
arping 2.x, so if you have problems (especially compilation
problems), then try arping 1.x with libnet 1.0.x. Also, mail
me about it. thomas%habets.pp.se@localhost

For information on how to compile arping 1.x, type
'make arping1'

sleep 3
cc -g -o arping arping-2/arping.c -lnet -lpcap
arping-2/arping.c:48:20: libnet.h: No such file or directory

        which is the most likely real problem.   That's
        followed by lots of errors (hardly unexpected)


arping-2/arping.c:94: error: parse error before '*' token
arping-2/arping.c:94: warning: data definition has no type or storage class
arping-2/arping.c: In function `do_libnet_init': 
arping-2/arping.c:124: error: `LIBNET_ERRBUF_SIZE' undeclared (first use in this
 function)
arping-2/arping.c:124: error: (Each undeclared identifier is reported only once
arping-2/arping.c:124: error: for each function it appears in.)
arping-2/arping.c:138: error: `LIBNET_LINK' undeclared (first use in this functi
on)
arping-2/arping.c:140: warning: assignment makes pointer from integer without a
cast
arping-2/arping.c: In function `pingmac_send':
arping-2/arping.c:394: error: syntax error before "icmp"
arping-2/arping.c:397: error: `icmp' undeclared (first use in this function)
arping-2/arping.c:397: error: `ICMP_ECHO' undeclared (first use in this function
)
arping-2/arping.c:411: error: `ipv4' undeclared (first use in this function)
arping-2/arping.c:412: error: `LIBNET_IPV4_H' undeclared (first use in this func
tion)
arping-2/arping.c:412: error: `LIBNET_ICMPV4_ECHO_H' undeclared (first use in th
is function)
arping-2/arping.c:429: error: `eth' undeclared (first use in this function)
arping-2/arping.c:431: error: `ETHERTYPE_IP' undeclared (first use in this funct
ion)
arping-2/arping.c:450: error: `errno' undeclared (first use in this function)
arping-2/arping.c: In function `pingip_send':
arping-2/arping.c:462: error: syntax error before "arp"
arping-2/arping.c:463: error: `arp' undeclared (first use in this function)
arping-2/arping.c:463: error: `ARPHRD_ETHER' undeclared (first use in this funct
ion)
arping-2/arping.c:464: error: `ETHERTYPE_IP' undeclared (first use in this funct
ion)
arping-2/arping.c:467: error: `ARPOP_REQUEST' undeclared (first use in this func
tion)
arping-2/arping.c:480: error: `eth' undeclared (first use in this function)
arping-2/arping.c:482: error: `ETHERTYPE_ARP' undeclared (first use in this func
tion)
arping-2/arping.c:501: error: `errno' undeclared (first use in this function)
arping-2/arping.c: In function `pingip_send':
arping-2/arping.c:462: error: syntax error before "arp"
arping-2/arping.c:463: error: `arp' undeclared (first use in this function)
arping-2/arping.c:463: error: `ARPHRD_ETHER' undeclared (first use in this funct
ion)
arping-2/arping.c:464: error: `ETHERTYPE_IP' undeclared (first use in this funct
ion)
arping-2/arping.c:467: error: `ARPOP_REQUEST' undeclared (first use in this func
tion)
arping-2/arping.c:480: error: `eth' undeclared (first use in this function)
arping-2/arping.c:482: error: `ETHERTYPE_ARP' undeclared (first use in this func
tion)
arping-2/arping.c:501: error: `errno' undeclared (first use in this function)
arping-2/arping.c: In function `pingip_recv':
arping-2/arping.c:524: error: `errno' undeclared (first use in this function)
arping-2/arping.c:528: error: `LIBNET_ETH_H' undeclared (first use in this funct
ion)
arping-2/arping.c:530: error: dereferencing pointer to incomplete type
arping-2/arping.c:530: error: `ARPOP_REPLY' undeclared (first use in this functi
on)
arping-2/arping.c:531: error: dereferencing pointer to incomplete type
arping-2/arping.c:531: error: `ETHERTYPE_IP' undeclared (first use in this funct
ion)
arping-2/arping.c:532: error: dereferencing pointer to incomplete type
arping-2/arping.c:532: error: `ARPHRD_ETHER' undeclared (first use in this funct
ion)
arping-2/arping.c:534: error: dereferencing pointer to incomplete type
arping-2/arping.c:535: error: `LIBNET_ARP_H' undeclared (first use in this funct
ion)
arping-2/arping.c:537: error: invalid application of `sizeof' to an incomplete t
ype
arping-2/arping.c:547: error: dereferencing pointer to incomplete type
arping-2/arping.c:565: error: dereferencing pointer to incomplete type
arping-2/arping.c:575: error: dereferencing pointer to incomplete type
arping-2/arping.c: In function `pingmac_recv':
arping-2/arping.c:608: error: `errno' undeclared (first use in this function)
arping-2/arping.c:613: error: `LIBNET_ETH_H' undeclared (first use in this funct
ion)
arping-2/arping.c:614: error: `LIBNET_IPV4_H' undeclared (first use in this func
tion)
arping-2/arping.c:616: error: dereferencing pointer to incomplete type
arping-2/arping.c:616: error: `ICMP_ECHOREPLY' undeclared (first use in this fun
ction)
arping-2/arping.c:617: error: dereferencing pointer to incomplete type
arping-2/arping.c:619: error: dereferencing pointer to incomplete type 
arping-2/arping.c:623: error: dereferencing pointer to incomplete type
arping-2/arping.c:634: error: dereferencing pointer to incomplete type
arping-2/arping.c:636: error: dereferencing pointer to incomplete type 
arping-2/arping.c:640: error: dereferencing pointer to incomplete type
arping-2/arping.c:645: error: dereferencing pointer to incomplete type
arping-2/arping.c:649: error: dereferencing pointer to incomplete type
arping-2/arping.c:655: error: dereferencing pointer to incomplete type
arping-2/arping.c:659: error: dereferencing pointer to incomplete type
arping-2/arping.c: In function `ping_recv':
arping-2/arping.c:735: error: `errno' undeclared (first use in this function)
arping-2/arping.c:744: error: `EINTR' undeclared (first use in this function)
arping-2/arping.c: In function `main':
arping-2/arping.c:813: error: `LIBNET_ERRBUF_SIZE' undeclared (first use in this
 function)
arping-2/arping.c:912: error: `LIBNET_RESOLVE' undeclared (first use in this fun
ction)
arping-2/arping.c:983: warning: assignment makes pointer from integer without a 
cast
arping-2/arping.c:1023: warning: assignment makes pointer from integer without a
 cast
arping-2/arping.c:1146: error: `SIGINT' undeclared (first use in this function)

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/pkg_comp/obj/pkgsrc/net/arping/default/.gcc/bin/gcc -g -o arping arping-2/arpin
g.c -I/pkg_comp/obj/pkgsrc/net/arping/default/.buildlink/include -L/pkg_comp/obj
/pkgsrc/net/arping/default/.buildlink/lib  -lnet -lpcap
*** Error code 1

Stop.
make: stopped in /pkg_comp/obj/pkgsrc/net/arping/default/arping-2.05
*** Error code 1

>Fix:
        Since the recent change was a change of libnet package
        versions to depend upon, I'd tend to guess that there's
        something different between this one and the one that
        used to be used, that's resulting in the .h file not being
        located (that or the change wasn't done completely, and
        something else more than what was updated needs updating).




Home | Main Index | Thread Index | Old Index