Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#18203 closed defect (fixed)

misc ports do not link against MacPorts X11 libs

Reported by: raphael@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: wrong X11 libraries Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: libbonoboui

Description

The libbonoboui port uses the system X11 libraries instead of the MacPorts X11 libraries:

> otool -L /opt/local/lib/libbonoboui-2.0.0.0.dylib 
/opt/local/lib/libbonoboui-2.0.0.0.dylib:
	/opt/local/lib/libbonoboui-2.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libgnomecanvas-2.0.dylib (compatibility version 2002.0.0, current version 2002.0.0)
	/opt/local/lib/libtiff.3.dylib (compatibility version 12.0.0, current version 12.2.0)
	/opt/local/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0)
	/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0)
...

A rebuild does not help.

Change History (12)

comment:1 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from macports-tickets@… to jeremyhu@…

Thanks for reporting

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

It's linked against the MP libs here. I suspect it picks up the system ones from one or more of its dependencies.

comment:3 in reply to:  2 Changed 16 years ago by raphael@…

Replying to jmr@…:

It's linked against the MP libs here. I suspect it picks up the system ones from one or more of its dependencies.

Yes, I checked all direct dependencies before reporting this bug, but I forgot to check all indirect dependencies. Now, it works for me, too.

This ticket can be closed.

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

Is there a ticket open for the indirect dependency that was using the system X11?

comment:5 in reply to:  4 Changed 16 years ago by raphael@…

Replying to jmr@…:

Is there a ticket open for the indirect dependency that was using the system X11?

No, because this indirect dependency (I don't know which port it is.) uses the MacPorts X11 libs after a rebuild.

comment:6 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

ok, so doing the 'sudo port -v upgrade outdated' solves the problem?

comment:7 in reply to:  6 Changed 16 years ago by raphael@…

Replying to jeremyhu@…:

ok, so doing the 'sudo port -v upgrade outdated' solves the problem?

No, because the dependency was not outdated. I had to manually rebuild (port -f uninstall ... ; port clean --archive ... ; port install ...) all ports that have libraries in ${prefix}/lib that are linked against system X11 libs. The only port that still refuses to link with the MacPorts X11 libs is glut, see #18202.

comment:8 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Ok, then you need to tell me which dependency was outdated and needed to be uninstalled and then installed. That port needs a revision bump. A 'sudo port -v upgrade outdated' SHOULD fix all ports. If there is a port that isn't fixed but is fixed by uninstall, install... then it needs a revision bump to force that for others. Do you remember which ports were in that category?

comment:9 in reply to:  8 Changed 16 years ago by raphael@…

Replying to jeremyhu@…:

Ok, then you need to tell me which dependency was outdated and needed to be uninstalled and then installed. That port needs a revision bump. A 'sudo port -v upgrade outdated' SHOULD fix all ports.

Yes, that would be much better.

If there is a port that isn't fixed but is fixed by uninstall, install... then it needs a revision bump to force that for others. Do you remember which ports were in that category?

Those ports were:

gal
gimp2
libglade2
gtkmm
libgnomeui
librsvg
libbonoboui
pango
pangomm
libgdiplus
libgnomeprintui
libgnomecanvas
cairomm
giflib

For giflib there's already #18182. I have a similar MacPorts installation that I didn't upgrade yet. I'll test that after the ports above have been upgraded. I'll submit more tickets if I get any problems.

comment:10 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: closedreopened
Summary: libbonoboui-2.24.0 does not link against MacPorts X11 libsmisc ports do not link against MacPorts X11 libs

comment:11 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: reopenedclosed

Fixed in r46263

comment:12 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.