Opened 5 years ago

Closed 5 years ago

#58939 closed defect (fixed)

xgawk fails to build when expat is installed

Reported by: wnishida Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: xgawk

Description

I encountered a build failure while installing xgawk @3.1.6a-20090408_2. Attached a log file. Thank you for your consideration.

Attachments (1)

main.log (143.3 KB) - added by wnishida 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by wnishida

Attachment: main.log added

comment:1 Changed 5 years ago by kencu (Ken)

We see these issues with libiconv all the time:

1237	:info:build Undefined symbols for architecture x86_64:
1238	:info:build Undefined symbols for architecture x86_64:
1239	:info:build   "_libiconv", referenced from:
1240	:info:build   "_libiconv", referenced from:
1241	:info:build       _XML_PullerIconv in libxml.a(xml_puller.o)
1242	:info:build       _XML_PullerIconv in libxml.a(xml_puller.o)
1243	:info:build   "_libiconv_close", referenced from:
1244	:info:build   "_libiconv_close", referenced from:
1245	:info:build       _XML_PullerCreate in libxml.a(xml_puller.o)
1246	:info:build       _XML_PullerCreate in libxml.a(xml_puller.o)
1247	:info:build       _XML_PullerFree in libxml.a(xml_puller.o)
1248	:info:build       _XML_PullerFree in libxml.a(xml_puller.o)
1249	:info:build   "_libiconv_open", referenced from:
1250	:info:build   "_libiconv_open", referenced from:

Whenever it's brought up 57821 and 43698 the issue always seems to be something not quite perfect with the way the port includes the headers and libraries.

It's certainly a PITA, though, as if you search for this error in MacPorts, you will find many many many examples of it.

Ryan and Josh seem to know the most about how to fix it.

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Keywords: xgawk removed
Port: xgawk added

Nothing too mysterious in this case, it's simply not linking with libiconv for some reason despite using its symbols.

comment:3 Changed 5 years ago by jmroot (Joshua Root)

Summary: xgawk build failure on MacPorts 2.5.4xgawk fails to build when expat is installed

comment:4 Changed 5 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 72f6d22c36330659d76a24202b6bebf9d241a974/macports-ports (master):

xgawk: prevent opportunistic use of libraries

Fixes: #58939

Note: See TracTickets for help on using tickets.