Bug 11352 - libpcap: do_configure failed when len(tmp) = 410
Summary: libpcap: do_configure failed when len(tmp) = 410
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4 M4
Assignee: dengke
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-04-13 09:48 UTC by Robert Yang
Modified: 2017-09-05 01:30 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2017-04-13 09:48:02 UTC
checking for capable yacc/bison... ../libpcap-1.8.1/configure: line 7194: 21598 Segmentation fault      $YACC -p pcap_ -o /dev/null $srcdir/grammar.y > /dev/null 2>&1
insufficient
configure: error: bison -y is insufficient to compile libpcap.
 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them.
WARNING: /buildarea/lyang1/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/tmp/work/i586-poky-linux/libpcap/1.8.1-r0/temp/run.do_configure.18003:1 exit 1 from 'exit 1'
ERROR: Function failed: do_configure (log file is located at /buildarea/lyang1/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/test_qlong/tmp/work/i586-poky-linux/libpcap/1.8.1-r0/temp/log.do_configure.18003)


The simple reproducer is:
$ bitbake libpcap -cdevshell
$ bison ./grammar.y

# bison ./grammar.y 
./grammar.y: warning: 38 shift/reduce conflicts [-Wconflicts-sr]
Segmentation fault

I found this error on Ubuntu 12.04, I'm not sure whether other hosts have this issue or not, I tried to use gdb, but doesn't figure out the reason.
Comment 1 dengke 2017-09-05 01:30:56 UTC
I have test this bug on latest oe-core master branch, len(tmp)=409 is ok.