#52207 closed defect (fixed)
ngrep @1.45: build failure with libpcap @1.8.0: no yacc restart func found
Reported by: | herrbischoff (Marcel Bischoff) | Owned by: | grace@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), Schamschula (Marius Schamschula), kurthindenburg (Kurt Hindenburg) | |
Port: | ngrep |
Description
Please see attached build log.
Attachments (1)
Change History (9)
Changed 8 years ago by herrbischoff (Marcel Bischoff)
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Keywords: | sierra added |
Owner: | changed from macports-tickets@… to grace@… |
comment:2 follow-up: 4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Here's the log from the buildbot. Looks like the problem is:
checking for pcap_open_live in -lpcap... yes checking for pcap_restart in -lpcap... no checking for pcap_yyrestart in -lpcap... no checking for yyrestart in -lpcap... no no yacc restart func found perhaps libpcap wasn't compiled with bison/flex?
comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | mps@… added |
---|---|
Keywords: | sierra removed |
Summary: | ngrep @1.45 build fails on macOS Sierra → ngrep @1.45: build failure with libpcap @1.8.0: no yacc restart func found |
Issue is not specific to Sierra.
The update of libpcap to 1.8.0 seems to have caused this. Don't know if it's a bug in ngrep or a bug in libpcap.
comment:4 Changed 8 years ago by Schamschula (Marius Schamschula)
Replying to ryandesign@…:
Here's the log from the buildbot. Looks like the problem is:
checking for pcap_open_live in -lpcap... yes checking for pcap_restart in -lpcap... no checking for pcap_yyrestart in -lpcap... no checking for yyrestart in -lpcap... no no yacc restart func found perhaps libpcap wasn't compiled with bison/flex?
I can confirm that the symbol _yyrestart is not present in libpcap @1.8.0.
comment:5 Changed 8 years ago by miconda (Daniel-Constantin Mierla)
I was able to compile the ngrep on macos sierra by providing the option --disable-pcap-restart to the configure. All seems ok -- not sure for what the pcap yyrestart was used, but with some basic tests everything was ok.
I did (used verbosity flags to see where it fails and the commands it runs):
port -v clean ngrep port -v -ddd install ngrep cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_ngrep/ngrep/work/ngrep-1.45 ./configure --prefix=/opt/local --with-pcap-includes=/opt/local/include --mandir=/opt/local/share/man --disable-pcap-restart cd port -v -ddd install ngrep
Maybe adding the extra configure flag is just enough for a fix of the macport.
comment:6 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
Cc: | kurthindenburg added |
---|
comment:7 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
Resolution: | → fixed |
---|---|
Status: | new → closed |
That's not a clean log. Please clean and try again.