Wireshark-dev: Re: [Wireshark-dev] wirehark make faiulre on rhel4

From: Andrew Leung <anwleung@xxxxxxxxx>
Date: Thu, 09 Aug 2007 15:58:15 -0700
I have libpcap-0.8.3-10.RHEL4 installed. The entry does popup twice if that matters:

$ rpm -qa | grep pcap
libpcap-0.8.3-10.RHEL4
libpcap-0.8.3-10.RHEL4

Thanks again,
Andrew

Fabrizio Bertocci wrote:
This sounds like a problem with libpcap.
I was able to build successfully on my system (RHEL4).
I have libpcap version 0.8.3-10.RHEL4:
What is your output of:
# rpm -qa | grep pcap

?
Fabrizio



Andrew Leung wrote:
Thanks for the feedbak! I reran configure with --disable-warnings-as-errors and the 'make' continued much farther than before. However, it still failed (after ~20 minutes of compiling) with:

capture_loop.c: In function 'capture_loop_init_filter':
capture_loop.c:857: warning: passing argument 1 of 'pcap_freecode' from incompatible pointer type
capture_loop.c:857: error: too few arguments to function 'pcap_freecode'
capture_loop.c:862: warning: passing argument 1 of 'pcap_freecode' from incompatible pointer type
capture_loop.c:862: error: too few arguments to function 'pcap_freecode'
make[2]: *** [capture_loop.o] Error 1
make[2]: Leaving directory `/u/aleung/wireshark-0.99.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/u/aleung/wireshark-0.99.6'
make: *** [all] Error 2

Any ideas how to remedy this. Thanks again in advance.

Andrew

On 8/9/07, * Jeff Morriss* <jeff.morriss.ws@xxxxxxxxx <mailto:jeff.morriss.ws@xxxxxxxxx>> wrote:

    Andrew Leung wrote:
    > I'm trying to build wireshark on rhel4 and the build is failing
    with output:
    > cc1: warnings being treated as errors
    > file_access.c: In function 'wtap_dump_file_write':
    > file_access.c:952: warning: passing argument 2 of 'gzwrite'
    discards
    > qualifiers from pointer target type
    > make[3]: *** [libwiretap_la-file_access.lo] Error 1
    > make[3]: Leaving directory `/u/aleung/wireshark- 0.99.6/wiretap'
    > make[2]: *** [all] Error 2
    > make[2]: Leaving directory `/u/aleung/wireshark-0.99.6/wiretap'
    > make[1]: *** [all-recursive] Error 1
    > make[1]: Leaving directory `/u/aleung/wireshark- 0.99.6'
    > make: *** [all] Error 2

    Do:

    ./configure --disable-warnings-as-errors

    and redo the make.
    _______________________________________________
    Wireshark-dev mailing list
    Wireshark-dev@xxxxxxxxxxxxx <mailto:Wireshark-dev@xxxxxxxxxxxxx>
    http://www.wireshark.org/mailman/listinfo/wireshark-dev



------------------------------------------------------------------------

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev