[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tcpdump-patches
Subject:    libpcap lex problem for scanner.l with Solaris 2.6
From:       Tom Heinrichs <tah () gi ! alaska ! edu>
Date:       2000-08-22 2:02:58
[Download RAW message or body]

Hello,

If I'm interpreting the error correctly, my Solaris 2.6 version of lex
(lex -V says: lex: Software Generation Utilities (SGU) Solaris/ELF (3.0))
is choking on scanner.l.

I "fixed" my problem by installing flex and bison (as suggested by the
docs), and all went great from then on for both libpdump and tcpdump
compiles. 

Sorry I can't offer up a patch...I'm lex-ignorant.

But I thought you might want to know.

Regards,
Tom


inisns01# ./configure
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.6
checking target system type... sparc-sun-solaris2.6
checking build system type... sparc-sun-solaris2.6
checking for gcc... /opt/SUNWspro/bin/cc
checking whether the C compiler (/opt/SUNWspro/bin/cc  ) works... yes
checking whether the C compiler (/opt/SUNWspro/bin/cc  ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether /opt/SUNWspro/bin/cc accepts -g... yes
checking that /opt/SUNWspro/bin/cc handles ansi prototypes... yes
checking how to run the C preprocessor... /opt/SUNWspro/bin/cc -E
checking for malloc.h... yes
checking for sys/ioccom.h... yes
checking for sys/sockio.h... yes
checking for ether_hostton... no
checking for strerror... yes
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... no
checking for bison... no
checking for ranlib... ranlib
checking if sockaddr struct has sa_len 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
inisns01# make
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./pcap-dlpi.c
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./pcap.c
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./inet.c
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./gencode.c
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./optimize.c
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./nametoaddr.c
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./etherent.c
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./savefile.c
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
                -DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./bpf/net/bpf_filter.c -o \
                bpf_filter.o
/opt/SUNWspro/bin/cc -O -I.  -I/usr/local/include -DHAVE_MALLOC_H=1 \
-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRERROR=1 -DHAVE_SYS_BUFMOD_H=1 \
-DHAVE_SOLARIS=1 -DLBL_ALIGN=1 -c ./bpf_image.c lex -t scanner.l > $$.scanner.c; mv \
$$.scanner.c scanner.c "scanner.l":line 169: Error: Definitions too long
0/6000 nodes(%e), 0/19000 positions(%p), 1/500 (%n), 0 transitions,
0/4000 packed char classes(%k),  0/15000 packed transitions(%a),  0/17000 output \
                slots(%o)
*** Error code 1
make: Fatal error: Command failed for target `scanner.c'


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic