New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #28202 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

graphviz 2.26.3_4 build fails due to missing library png12

Reported by: ludwig@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: libpng Cc: ryandesign@…, miken32@…
Port: graphviz

Description

The upgrade of graphviz to 2.26.3_4 fails on my MacBook Pro (10.5.8) with the message "ld: library not found for -lpng12".

I have libpng@1.4.5_0 installed and active, but it provides libpng and libpng14 only.

I am going to attach the build logfile in case it helps tracking down the problem's cause.

Attachments

main.log (10.0 KB) - added by nick.lott@… 2 years ago.

Change History

comment:1 follow-up: ↓ 2 Changed 2 years ago by ludwig@…

After another "sudo port clean graphviz" the build went fine - I don't know what was the problem before. Anyway, this ticket can be closed.

Sorry for the noise.

Changed 2 years ago by nick.lott@…

comment:2 in reply to: ↑ 1 ; follow-up: ↓ 4 Changed 2 years ago by nick.lott@…

Replying to ludwig@…:

After another "sudo port clean graphviz" the build went fine - I don't know what was the problem before. Anyway, this ticket can be closed.

Sorry for the noise.

I can confirm that after an initial error followed by "sudo port clean graphviz" the build went fine

comment:3 Changed 2 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to worksforme

comment:4 in reply to: ↑ 2 Changed 2 years ago by miken32@…

Replying to nick.lott@…:

I can confirm that after an initial error followed by "sudo port clean graphviz" the build went fine

I am still experiencing this problem; multiple cleans and an uninstall have not helped, nor has re-installing libpng, nor has doing forced upgrades of dependentof:libpng.

The Portfile doesn't mention the library version which leads me to think the problem is elsewhere. Suggestions? I'd really like to be able to use the gimp2 and inkscape ports again, which can't upgrade due to dependencies on graphviz.

comment:5 follow-up: ↓ 6 Changed 2 years ago by ryandesign@…

  • Cc miken32@… added

Some port you've installed is still linked with libpng 1.2. You need to locate and rebuild that thing. You may need to do a brute-force search of /opt/local/lib and/or /opt/local/bin to identify what it is.

comment:6 in reply to: ↑ 5 Changed 2 years ago by miken32@…

Replying to ryandesign@…:

Some port you've installed is still linked with libpng 1.2. You need to locate and rebuild that thing. You may need to do a brute-force search of /opt/local/lib and/or /opt/local/bin to identify what it is.

Thanks, that did the trick. Sorry for the spam, but for the sake of anyone who finds this via search:

I did grep -ls png12 /opt/local/lib/* and grep -ls png12 /opt/local/bin/*, performing a forced upgrade of anything that came up. All is well, and I will never run upgrade with the -n flag again.

Note: See TracTickets for help on using tickets.