#18815 closed defect (fixed)
xfig does not start
Reported by: | david.grier@… | Owned by: | pguyot (Paul Guyot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | helgel@…, raphael@…, zhang.xiaolan@… | |
Port: | xfig |
Description
On a fresh install of macports 1.700, OS X 11.5.6, Xquartz 2.1.5, installing xfig @3.2.5_4 goes without a hitch.
Running xfig, however, immediately crashes with
Error: Unresolved inheritance operation
and no other feedback. No windows open, and none of the command line options appear to make a difference.
Attachments (2)
Change History (14)
comment:1 Changed 16 years ago by helgel@…
Cc: | helgel@… added |
---|
comment:2 Changed 16 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to pguyot@… |
---|---|
Port: | xfig added |
comment:3 Changed 16 years ago by raphael@…
Running xfig, however, immediately crashes with
Error: Unresolved inheritance operation
and no other feedback. No windows open, and none of the command line options appear to make a difference.
I have the same problem here. The cause of the problem is that xfig is linked with the wrong X11 libraries, whereas libXaw3d is linked with the right ones:
> otool -L /opt/local/bin/xfig /opt/local/bin/xfig: /opt/local/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0) /usr/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0) /usr/X11/lib/libpng12.0.dylib (compatibility version 34.0.0, current version 34.0.0) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/X11/lib/libXi.6.dylib (compatibility version 7.0.0, current version 7.0.0) /opt/local/lib/libXaw3d.8.dylib (compatibility version 8.0.0, current version 8.0.0) /usr/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0) /usr/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0) /usr/X11/lib/libXp.6.dylib (compatibility version 9.0.0, current version 9.0.0) /usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0) /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) > otool -L /opt/local/lib/libXaw3d.8.dylib /opt/local/lib/libXaw3d.8.dylib: /opt/local/lib/libXaw3d.8.dylib (compatibility version 8.0.0, current version 8.0.0) /opt/local/lib/libXmu.6.dylib (compatibility version 9.0.0, current version 9.0.0) /opt/local/lib/libXt.6.dylib (compatibility version 7.0.0, current version 7.0.0) /opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0) /opt/local/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0) /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0) /opt/local/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0) /opt/local/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0) /opt/local/lib/libXp.6.dylib (compatibility version 9.0.0, current version 9.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3)
comment:5 follow-up: 6 Changed 16 years ago by raphael@…
I solved the problem by changing the Portfile and a patch file. Both patches are attached.
Maybe it would be better to use a patched version of the included Makefile.noimake
or to fix imake.
Can anybody commit these changes?
comment:6 Changed 16 years ago by raphael@…
I just discovered that there is a simpler solution, see #18250. I changed the patch files to use this solution.
Changed 16 years ago by raphael@…
Attachment: | Portfile.diff added |
---|
Changed 16 years ago by raphael@…
Attachment: | patch-Imakefile.diff added |
---|
comment:7 Changed 16 years ago by mf2k (Frank Schima)
Cc: | zhang.xiaolan@… added |
---|
Cc'ing reporter of duplicate #18873.
comment:8 follow-ups: 9 10 Changed 16 years ago by helgel@…
I will embarrass myself by putting my ignorance on display here: I dont understand how to solve the problem (even though I found the attachment -- patch-Imakefile.diff). Can somebody please advise on how to get this going?
comment:9 Changed 16 years ago by zhang.xiaolan@…
I am new to mac too. I have the same problem. where to find these files and patch them? thanks!
Replying to helgel@…:
I will embarrass myself by putting my ignorance on display here: I dont understand how to solve the problem (even though I found the attachment -- patch-Imakefile.diff). Can somebody please advise on how to get this going?
comment:10 Changed 16 years ago by raphael@…
Replying to helgel@…:
Can somebody please advise on how to get this going?
First download the two attachments of this ticket to the current directory. Then copy the current xfig portfile and its patches to the same directory, patch the portfile, replace one patchfile and install the new xfig port:
sudo port sync cp -r /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/xfig . cd xfig patch -p0 < ../Portfile.diff cp ../patch-Imakefile.diff files sudo port deactivate xfig @3.2.5_4 sudo port install
As soon as somebody commits these changes to MacPorts (and closes this ticket) a sudo port sync ; sudo port upgrade xfig
should be sufficient.
comment:11 Changed 16 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed revision r48375. Thanks!
Cc Me!