Opened 4 years ago

Closed 4 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)

main.log (6.6 MB) - added by Ionic (Mihai Moldovan) 4 years ago.
main.2.log (35.1 KB) - added by larryv (Lawrence Velázquez) 4 years ago.
log from trace-mode build

Change History (3)

Changed 4 years ago by Ionic (Mihai Moldovan)

Attachment: main.log added

Changed 4 years ago by larryv (Lawrence Velázquez)

Attachment: main.2.log added

log from trace-mode build

comment:1 in reply to:  description Changed 4 years ago by larryv (Lawrence Velázquez)

Keywords: mountainlion mavericks yosemite added
Resolution: fixed
Status: newclosed
Summary: tcpxtract 1.0.1: build failure with bison 3tcpxtract @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 

r138169

Note: See TracTickets for help on using tickets.