make fails for libpcap-0.6.2

make fails for libpcap-0.6.2

Post by Kie » Thu, 09 Aug 2001 20:44:59



Howdy folks,

I'm having trouble compiling libpcap - it configures ok, but when I
run make I
get:

# make
gcc -O2 -I.  -DHAVE_CONFIG_H -c ./pcap-dlpi.c
pcap-dlpi.c: In function `pcap_read':
pcap-dlpi.c:202: incompatible types in assignment
make: *** [pcap-dlpi.o] Error 1
#

Relevant info:

# uname -a
SunOS ariaprod01 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-60
#

# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparcv9-sun-solaris2.7/3.0/specs
Configured with: ../gcc-3.0/configure sparcv9-sun-solaris2.7
Thread model: posix
gcc version 3.0
#

Any clues for me?

make distclean ; ./configure produces:

# make distclean ; ./configure
rm -f pcap-dlpi.o pcap.o inet.o gencode.o optimize.o nametoaddr.o
etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o scanner.o
grammar.o version.o  libpcap.a scanner.c grammar.c version.c tokdefs.h
lex.yy.c Makefile config.cache config.log config.status \
    config.h gnuc.h os-proto.h net bpf_filter.c stamp-h stamp-h.in
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking build system type... sparc-sun-solaris2.7
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... no
checking for u_int16_t using gcc... no
checking for u_int32_t using gcc... no
checking how to run the C preprocessor... gcc -E
checking for sys/ioccom.h... yes
checking for sys/sockio.h... yes
checking for ifaddrs.h... no
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for ether_hostton... no
checking for strerror... yes
checking for freeifaddrs... no
checking for strlcpy... no
checking if --disable-protochain option is specified... enabled
checking packet capture type... dlpi
checking if --enable-ipv6 option is specified... no
checking for sys/bufmod.h... yes
checking for sys/dlpi_ext.h... no
checking for /dev/dlpi device... no
checking for /dev/dlpi directory... no
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... bison
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... no
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... yes
checking for a BSD compatible install... ./install-sh -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
#

 
 
 

make fails for libpcap-0.6.2

Post by Dave Uhrin » Fri, 10 Aug 2001 06:36:28



> Howdy folks,

> I'm having trouble compiling libpcap - it configures ok, but when I
> run make I
> get:

> # make
> gcc -O2 -I.  -DHAVE_CONFIG_H -c ./pcap-dlpi.c
> pcap-dlpi.c: In function `pcap_read':
> pcap-dlpi.c:202: incompatible types in assignment
> make: *** [pcap-dlpi.o] Error 1
> #

> Relevant info:

> # uname -a
> SunOS ariaprod01 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-60
> #

> # gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparcv9-sun-solaris2.7/3.0/specs
> Configured with: ../gcc-3.0/configure sparcv9-sun-solaris2.7
> Thread model: posix
> gcc version 3.0
> #

> Any clues for me?

> make distclean ; ./configure produces:

> # make distclean ; ./configure
> rm -f pcap-dlpi.o pcap.o inet.o gencode.o optimize.o nametoaddr.o
> etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o scanner.o
> grammar.o version.o  libpcap.a scanner.c grammar.c version.c tokdefs.h
> lex.yy.c Makefile config.cache config.log config.status \
>     config.h gnuc.h os-proto.h net bpf_filter.c stamp-h stamp-h.in[ snip ]

[ snip ]

Just put libpcap-0.6.2 into /usr/local/src ran

# ./configure
# make  (gmake)
# make install

No problems whatsoever.

[duhring]$ gcc --version
2.95.3
[duhring]$

gcc-2.95.3 package downloaded from www.sunfreeware.com

 
 
 

make fails for libpcap-0.6.2

Post by Kie » Fri, 10 Aug 2001 17:12:57




> > I'm having trouble compiling libpcap - it configures ok, but when I
> > run make I
> > get:
...
> > # gcc -v
> > Reading specs from /usr/local/lib/gcc-lib/sparcv9-sun-solaris2.7/3.0/specs
> > Configured with: ../gcc-3.0/configure sparcv9-sun-solaris2.7

> [ snip ]

> Just put libpcap-0.6.2 into /usr/local/src ran

> # ./configure
> # make  (gmake)
> # make install

> No problems whatsoever.

> [duhring]$ gcc --version
> 2.95.3

OK, I tried it using gcc 2.95.3 with the default (32 bit) configuration, no problem.
I'm not sure whether the issue was 2.95.3 vs 3.0 or 32 bit vs 64 bit, but it works.

Thanks for the clue!

Kief

 
 
 

1. tcpdump-3.0.2 and libpcap-0.0.6

I recently downloaded tcpdump-3.0.2 and after reading the README found that
I needed to compile libpcap-0.0.6 first.  I also read the Linux is not
supported in the souce file I down loaded but it has recently
been ported to linux.  I was wondering if anyone knows were I can
find these patch files to compile these programs.

Thanks,

Jeff

+---------------------------------------+-----------------------+
|Jeff Monks                             |University of Illinois |

|http://manip.crhc.uiuc.edu/~jmonks     |Office: 444 C&SRL      |
|                                       |        (217) 244-7176 |
+---------------------------------------+-----------------------+

--
--------
Jeffrey P. Monks (Jeff)

home page: http://www.cen.uiuc.edu/~jm8621/

2. recompiling kernel

3. libpcap-0.3

4. PatchPro

5. Having trouble making libpcap

6. ********

7. redhat 6.2 Apache 1.3.20 configure fails

8. sendmail alias problem, "openmailer: insufficient privileges to change gid"

9. Netscape 6.2 Fails the Test

10. RedHat 6.2 re-installation fails

11. RedHat 6.2 Install Reboot Failed

12. X Install Problem: "X startup failed, falling back to text mode" (Red Hat 6.2)

13. exportinng display fails on DELL pc - redhat 6.2