Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13560 closed defect (fixed)

gwyddion 2.9 fails to build

Reported by: swebster@… Owned by: rowue@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: gwyddion Cc: yeti@…, rowue (Rolf Würdemann)
Port:

Description

Trying to upgrade the gwyddion port to version 2.9_0 fails on Leopard 10.5.1.

I fixed the problem by adding the following line (all one line) to the end of the Portfile:

configure.ldflags -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib

I don't really know what this does, just found it on some fink page.

I'll try to attach a copy of the build output... but the build error ends with:

ld: warning, duplicate dylib /usr/X11/lib/libX11.6.dylib
ld: warning, duplicate dylib /usr/X11/lib/libSM.6.dylib
ld: warning, duplicate dylib /usr/X11/lib/libICE.6.dylib
ld: warning, duplicate dylib /usr/X11/lib/libGLU.1.dylib
ld: warning, duplicate dylib /usr/X11/lib/libGL.1.dylib
ld: warning, duplicate dylib /usr/X11/lib/libXmu.6.dylib
ld: warning, duplicate dylib /usr/X11/lib/libXt.6.dylib
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status 
make[3]: *** [gwyddion] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Unable to upgrade port: 1

Attachments (2)

gwyderror.rtf (8.1 KB) - added by swebster@… 16 years ago.
output of upgrade command
Portfile (996 bytes) - added by rowue (Rolf Würdemann) 16 years ago.
Portfile which excludes gl extensions for leopard

Download all attachments as: .zip

Change History (9)

Changed 16 years ago by swebster@…

Attachment: gwyderror.rtf added

output of upgrade command

comment:1 Changed 16 years ago by swebster@…

By the way, I also tried uninstalling gwyddion and reinstalling it instead of upgrading, but that didn't make a difference.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: yeti@… rowue@… added

comment:3 Changed 16 years ago by yeti@…

I can't check this, but it does not seem to be Gwyddion-specific, more packages using X11 apparently fail to build on Leopard. People solve it by tweaking linker flags, see for instance this Fink thread:

http://www.mail-archive.com/fink-devel@lists.sourceforge.net/msg16066.html

Changed 16 years ago by rowue (Rolf Würdemann)

Attachment: Portfile added

Portfile which excludes gl extensions for leopard

comment:4 Changed 16 years ago by rowue (Rolf Würdemann)

Since this is a bug for the gtkglext (used for 3D view in gwyddion) I'll removed gtkglext from the dependencies on leopard - so there will be no 3D view on leopard until #13517 (#13624) is fixed

comment:5 Changed 16 years ago by rowue@…

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

comment:6 Changed 16 years ago by rowue@…

Resolution: fixed
Status: newclosed

Workaround committed by r32909

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.