Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#47693 closed defect (fixed)

qt3: links with libGLU though no dependency declared

Reported by: mattoon1@… Owned by: har5ha
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: michaelld (Michael Dickens)
Port: qt3

Description

Trying to install xxdiff on a new Macbook Pro.

Software version information: OS X 10.10.3, XCode 6.3.1 (6D1002), MacPorts 2.3.3

All dependencies seem to have installed without a problem, so the entire log when I try installing xxdiff is now:

sudo port install xxdiff
--->  Computing dependencies for xxdiff
--->  Fetching archive for xxdiff
--->  Attempting to fetch xxdiff-3.2_0.darwin_14.x86_64.tbz2 from http://packages.macports.org/xxdiff
--->  Attempting to fetch xxdiff-3.2_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/xxdiff
--->  Attempting to fetch xxdiff-3.2_0.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/xxdiff
--->  Fetching distfiles for xxdiff
--->  Verifying checksums for xxdiff
--->  Extracting xxdiff
--->  Applying patches to xxdiff
--->  Configuring xxdiff
--->  Building xxdiff
Error: org.macports.build for port xxdiff returned: command execution failed
Please see the log file for port xxdiff for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_xxdiff/xxdiff/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port xxdiff failed

I will attach the suggested log file in a moment...

Attachments (1)

main.log (75.4 KB) - added by mattoon1@… 10 years ago.
log file (/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_xxdiff/xxdiff/main.log)

Download all attachments as: .zip

Change History (10)

Changed 10 years ago by mattoon1@…

Attachment: main.log added

log file (/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_xxdiff/xxdiff/main.log)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to michaelld@…
Port: qt4-mac added; xxdiff removed
Summary: xxdiff @ 3.2 installation failedqt4-mac: links with libGLU though no dependency declared

The log gives this reason for the problem:

:info:build dyld: Library not loaded: /opt/local/lib/libGLU.1.dylib
:info:build   Referenced from: /opt/local/bin/uic
:info:build   Reason: image not found

So it looks like xxdiff builds with uic (a part of qt4-mac), and that uic is linked with libGLU (from the libGLU port), but that libGLU is not present now. You could work around the problem by installing the libGLU port:

sudo port install libGLU

On my system, uic does not link with libGLU. Do you perhaps have qt4-mac installed with the +openvg variant? I see that that variant adds a dependency on mesa, and I know that mesa used to provide libGLU, but that libGLU was split off into its own port recently. The +openvg variant may need to have a dependency on the libGLU port added.

comment:2 Changed 10 years ago by mattoon1@…

sudo port install libGLU

followed by

sudo port install xxdiff

worked fine: I can now use xxdiff. As for qt4-mac, I do not have it installed:

port installed | grep qt
  qt3 @3.3.8_14 (active)

From your answer it sounds like you were expecting xxdiff to use qt4 instead? I notice another recent tracker item (https://trac.macports.org/ticket/44526) that modifies the port file to use qt4, but that doesn't seem to be the default right now.

comment:3 Changed 10 years ago by michaelld (Michael Dickens)

What does "port provides /opt/local/bin/uic" return?

comment:4 in reply to:  3 Changed 10 years ago by mattoon1@…

Replying to michaelld@…:

What does "port provides /opt/local/bin/uic" return?

>port provides /opt/local/bin/uic
/opt/local/bin/uic is provided by: qt3

comment:5 Changed 10 years ago by michaelld (Michael Dickens)

Cc: michaelld@… added
Owner: michaelld@… deleted
Port: qt3 added; qt4-mac removed
Summary: qt4-mac: links with libGLU though no dependency declaredqt3: links with libGLU though no dependency declared

OK; so this is a qt3 issue, not a qt4 issue. Is there any reason you can't use qt4-mac instead of qt3? Qt4 is still being maintained, and they even expect a new release sometime later this year. Given how old qt3 is, I think the best we can do is just add the dependency to the port; I don't think anybody has really touched that port in ages.

comment:6 in reply to:  5 Changed 10 years ago by mattoon1@…

Replying to michaelld@…:

OK; so this is a qt3 issue, not a qt4 issue. Is there any reason you can't use qt4-mac instead of qt3? Qt4 is still being maintained, and they even expect a new release sometime later this year. Given how old qt3 is, I think the best we can do is just add the dependency to the port; I don't think anybody has really touched that port in ages.

Yes, I'm happy to try qt4. In fact, the only reason I have qt3 is installed is that it was on the list of dependencies for xxdiff. How should I proceed with using qt4? I assume the xxdiff portfile needs to change to show the new dependency?

comment:7 Changed 10 years ago by michaelld (Michael Dickens)

xxdiff is at 3.2, which is quite old & looks to work with Qt3 and older Qt4; probably won't work with the current qt4-mac.

xxdiff 4.0 looks like it should work with current qt4-mac, but it's non-trivial to do the update -- some patch fixes & other changes to the Portfile.

so, I think adding in a dependency on libGLU is the way to go for now -- simple and quick!

comment:8 Changed 10 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Done in r136235. Thanks for reporting this! If you want xxdiff updated to 4.0, please create a new ticket to that effect & add me as owner & I'll see what I can do.

comment:9 in reply to:  8 Changed 10 years ago by larryv (Lawrence Velázquez)

#44526 is already open for this.

Note: See TracTickets for help on using tickets.