#18249 closed defect (fixed)
gv is linking against system x11 libraries
Reported by: | jjstickel@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | x11 | Cc: | ryandesign (Ryan Carsten Schmidt), blue_wind_cwb-porto@… |
Port: | gv |
Description
The port gv is linking against system x11 libraries, even though I am not using the system_x11 variant:
$ otool -L /opt/local/bin/gv /opt/local/bin/gv: /usr/X11R6/lib/libXinerama.1.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libXaw3d.7.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/X11R6/lib/libXpm.4.dylib (compatibility version 4.11.0, current version 4.11.0) /usr/X11R6/lib/libXmu.6.dylib (compatibility version 6.2.0, current version 6.2.0) /usr/X11R6/lib/libXt.6.dylib (compatibility version 6.0.0, current version 6.0.0) /usr/X11R6/lib/libXext.6.dylib (compatibility version 6.4.0, current version 6.4.0) /usr/X11R6/lib/libSM.6.dylib (compatibility version 6.0.0, current version 6.0.0) /usr/X11R6/lib/libICE.6.dylib (compatibility version 6.3.0, current version 6.3.0) /usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, current version 6.2.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.4) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
resulting in a segfault / bus error:
$ gv Warning: No type converter registered for 'String' to 'InitialResourcesPersistent' conversion. Warning: No type converter registered for 'translations' to 'InitialResourcesPersistent' conversion. Warning: No type converter registered for 'String' to 'Translations' conversion. Warning: No type converter registered for 'TranslationTable' to 'Translations' conversion. Warning: No type converter registered for 'TranslationTable' to 'Translations' conversion. Warning: No type converter registered for 'TranslationTable' to 'Color' conversion. Warning: No type converter registered for 'String' to 'InitialResourcesPersistent' conversion. Warning: No type converter registered for 'TranslationTable' to 'InitialResourcesPersistent' conversion. Warning: No type converter registered for 'translations' to 'Meta' conversion. Bus error
Attachments (1)
Change History (23)
comment:1 Changed 16 years ago by jjstickel@…
comment:2 Changed 16 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
Changed 16 years ago by jjstickel@…
Attachment: | Portfile_print_gv.diff added |
---|
comment:3 Changed 16 years ago by jjstickel@…
The attached patch fixed this for me, although it should probably be modified to honor the system_x11 variant.
comment:4 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
It seems the problem is that the configure script looks in a series of directories for X11 and ${prefix} is not one of them.
Could we patch the configure script so that ${prefix}/include comes before /usr/X11/include in the ac_x_header_dirs variable?
I would try to develop a patch, but I am having some trouble installing Xaw3d, which is a dependency of gv.
comment:5 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Owner: | changed from ryandesign@… to jeremyhu@… |
---|
This patch is not enough to fix the problem ... it will break people using +system_X11
You should probably do something like this:
# AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6. # These next three lines should cause AC_X_PATH to let us setup our CPPFLAGS # and LDFLAGS without interference configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib configure.cppflags-append -I${x11prefix}/include configure.ldflags-append -L${x11prefix}/lib
comment:6 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Cc: | ryandesign@… added |
---|---|
Status: | new → assigned |
comment:7 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r46265
comment:8 follow-up: 11 Changed 16 years ago by blue_wind_cwb-porto@…
Hi!
I've just installed xfig and I'm very new to darwin ports. I'm getting exactly the same error, but I don't understand where those lines
# AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6. # These next three lines should cause AC_X_PATH to let us setup our CPPFLAGS # and LDFLAGS without interference configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib configure.cppflags-append -I${x11prefix}/include configure.ldflags-append -L${x11prefix}/lib
should be added. I cannot find a file like trunk/dports/print/gv/Portfile.
Could someone help me with that?
Thank you!!
Fernando
comment:9 follow-up: 10 Changed 16 years ago by blue_wind_cwb-porto@…
Cc: | blue_wind_cwb-porto@… added |
---|
Cc Me!
comment:10 follow-up: 12 Changed 16 years ago by blue_wind_cwb-porto@…
I have installed gv as well and tried to include those lines in
/opt/local/var/macports/sources/rsync.macports.org/release/ports/print/gv/Portfile
However, I still get the errors
Warning: No type converter registered for 'String' to 'InitialResourcesPersistent' conversion. Warning: No type converter registered for 'translations' to 'InitialResourcesPersistent' conversion. Warning: No type converter registered for 'String' to 'Translations' conversion. Warning: No type converter registered for 'TranslationTable' to 'Translations' conversion. Warning: No type converter registered for 'TranslationTable' to 'Translations' conversion. Warning: No type converter registered for 'TranslationTable' to 'Color' conversion. Warning: No type converter registered for 'String' to 'InitialResourcesPersistent' conversion. Warning: No type converter registered for 'TranslationTable' to 'InitialResourcesPersistent' conversion. Warning: No type converter registered for 'translations' to 'Meta' conversion. Bus error
when I try to run gv.
Fernando
comment:11 follow-up: 13 Changed 16 years ago by jjstickel@…
Replying to blue_wind_cwb-porto@…:
I've just installed xfig and I'm very new to darwin ports. I'm getting exactly the same error,
The similar xfig bug (and patch) is reported on ticket #18250.
comment:12 Changed 16 years ago by jjstickel@…
Replying to blue_wind_cwb-porto@…:
I have installed gv as well and tried to include those lines in
/opt/local/var/macports/sources/rsync.macports.org/release/ports/print/gv/Portfile
However, I still get the errors
<snip>
when I try to run gv.
I suspect that you have some X11 library mixups. Since this bug is fixed and closed, you might try reporting your problem on the mailing lists to get some detailed help.
comment:13 Changed 16 years ago by blue_wind_cwb-porto@…
Replying to jjstickel@…:
Replying to blue_wind_cwb-porto@…:
I've just installed xfig and I'm very new to darwin ports. I'm getting exactly the same error,
The similar xfig bug (and patch) is reported on ticket #18250.
I tried to replace the xfig's patch-Imakefile by that other one suggested in #18250 and after that I tried to run xfig, but the errors were still there. I will report my problem on the mailing lists, but first I would like to know whether there is something else that I should be doing, but I'm not doing. For ex, I just replaced the old files by the new ones, with the pointed modifications and then tried to run xfig and gv again. Do I need to do sth else after modifying the files?
Thank you, Fernando.
comment:14 follow-up: 15 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Fernando: This bug is for xv... please goto the other bug to comment on xfig.
comment:15 Changed 16 years ago by blue_wind_cwb-porto@…
Replying to jeremyhu@…:
Fernando: This bug is for xv... please goto the other bug to comment on xfig.
Yes, I commented on xfig, but the question about if I have to do sth else than changing the files is about gv, as I'm not sure whether the solution suggested here is only change the files or if I have to do something else than just manually changing the files. So, if you could help me with that, I would be grateful.
Fernando.
comment:16 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
As mentioned earlier, gv is fixed in r46265 (22 hours ago). If it's not working for you, sync and try again.
comment:17 Changed 16 years ago by blue_wind_cwb-porto@…
I'm very new to all this. What do you mean with sync?
comment:18 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
'sudo port -v selfupdate' to get the latest changes
comment:19 Changed 16 years ago by blue_wind_cwb-porto@…
I did it and kept having the same problem. So, I decided to use Fink and all worked fine and now I have gv.
Fernando.
comment:20 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Well chances are your mirror just wasn't sync'd with svn yet... try again later
BTW, I am on Tiger (10.4.11).