Opened 9 years ago
Closed 9 years ago
#48213 closed defect (fixed)
tcpxtract @1.0.1_0: doesn't link with system lex on newer systems
Reported by: | Ionic (Mihai Moldovan) | Owned by: | jul_bsd@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | mountainlion mavericks yosemite | Cc: | |
Port: | tcpxtract |
Description
tcpxtract is currently failing to build, likely due to bison 3
.
A quick search didn't turn up any patch for tcpxtract specifically.
The buildlog is from the current failed nsm-console
build on the 10.8 buildslave.
Attachments (2)
Change History (3)
Changed 9 years ago by Ionic (Mihai Moldovan)
Changed 9 years ago by larryv (Lawrence Velázquez)
Attachment: | main.2.log added |
---|
comment:1 Changed 9 years ago by larryv (Lawrence Velázquez)
Keywords: | mountainlion mavericks yosemite added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Summary: | tcpxtract 1.0.1: build failure with bison 3 → tcpxtract @1.0.1_0: doesn't link with system lex on newer systems |
This doesn’t have anything to do with Bison 3.
The configure phase detects the system’s libl.a, but for some reason it doesn’t tell the build to link with -ll
.
:info:build ccache /usr/bin/clang -D_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pipe -Os -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o tcpxtract tcpxtract.o sessionlist.o util.o confy.o confl.o conf.o search.o extract.o -lpcap :info:build Undefined symbols for architecture x86_64: :info:build "_yywrap", referenced from: :info:build _yylex in confl.o :info:build ld: symbol(s) not found for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don’t know why this worked on the Snow Leopard and Lion buildslaves, but we shouldn’t allow the build to use the system libl.a anyway. Oddly, it adds -lfl
correctly when it detects our flex.
:info:build ccache /usr/bin/clang -D_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pipe -Os -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o tcpxtract tcpxtract.o sessionlist.o util.o confy.o confl.o conf.o search.o extract.o -lpcap -lfl
Note: See
TracTickets for help on using
tickets.
log from trace-mode build