pkgsrc-Bugs archive

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

pkg/38084: devel/flex 2.5.34 broken



>Number:         38084
>Category:       pkg
>Synopsis:       devel/flex 2.5.34 broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 22 20:05:00 +0000 2008
>Originator:     Yakovetsky Vladimir
>Release:        
>Environment:
System: Linux bres 2.6.21.5 #1 SMP Fri Jul 6 09:48:19 GMT 2007 i686 GNU/Linux

>Description:
        for example - broken net/libpcap build with flex 2.5.34

>How-To-Repeat:
        os without flex in base system:
        - build and install flex 2.5.34
        - (re)build and (re)install net/libpcap
        - try to build net/tcpdump for example


% uname -s
Linux

% cd /usr/pkgsrc/devel/flex && bmake update
...

% which flex; flex --version
/usr/pkg/bin/flex
flex 2.5.34

% cd /usr/pkgsrc/net/libpcap && bmake replace
...

% cd /usr/pkgsrc/net/tcpdump && bmake
...
checking for local pcap library... not found
checking for main in -lpcap... no
configure: error: see the INSTALL doc for more info
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/tcpdump


        lines from tcpdump config.log:
configure:9102: checking for main in -lpcap
configure:9126: gcc -o conftest -O2 -march=native -mfpmath=sse -msse 
-finline-functions -fomit-frame-pointer -ffast-math -I/usr/pkg/include 
-I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib conftest.c -lpcap   >&5
/usr/obj/net/tcpdump/work/.buildlink/lib/libpcap.so: undefined reference to 
`lex_init'
/usr/obj/net/tcpdump/work/.buildlink/lib/libpcap.so: undefined reference to 
`pcap_lex'
/usr/obj/net/tcpdump/work/.buildlink/lib/libpcap.so: undefined reference to 
`lex_cleanup'
collect2: ld returned 1 exit status
configure:9132: $? = 1


fyi:    lines from libpcap build.log:
--- scanner.c ---
flex -Ppcap_ -t ./scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
./scanner.l:84: bad character: %
./scanner.l:84: unknown error processing section 1
./scanner.l:84: unknown error processing section 1
./scanner.l:84: bad character: 1
./scanner.l:84: bad character: 8
./scanner.l:84: bad character: 4
./scanner.l:84: bad character: 0
./scanner.l:84: bad character: 0
./scanner.l:85: bad character: %
./scanner.l:85: unknown error processing section 1
./scanner.l:85: bad character: 2
./scanner.l:85: bad character: 1
./scanner.l:85: bad character: 5
./scanner.l:85: bad character: 0
./scanner.l:85: bad character: 0
./scanner.l:86: bad character: %
./scanner.l:86: unknown error processing section 1
./scanner.l:86: bad character: 7
./scanner.l:86: bad character: 6
./scanner.l:86: bad character: 0
./scanner.l:86: bad character: 0
./scanner.l:87: bad character: %
./scanner.l:87: unknown error processing section 1
./scanner.l:87: bad character: 4
./scanner.l:87: bad character: 5
./scanner.l:87: bad character: 5
./scanner.l:87: bad character: 0
./scanner.l:88: bad character: %
./scanner.l:88: unknown error processing section 1
./scanner.l:88: bad character: 2
./scanner.l:88: bad character: 7
./scanner.l:88: bad character: 6
./scanner.l:88: bad character: 0
./scanner.l:88: bad character: 0
./scanner.l:89: bad character: %
./scanner.l:89: unknown error processing section 1
./scanner.l:89: bad character: 2
./scanner.l:89: bad character: 0
./scanner.l:89: bad character: 0
./scanner.l:89: bad character: 0


>Fix:
        workaround: use previous devel/flex version (2.5.33 for ex.)



Home | Main Index | Thread Index | Old Index