#66476 closed defect (invalid)

gtk3 @3.24.34_2 build fail on Mojave gdkapplaunchcontext-x11.c:30:10: fatal error: 'gio/gdesktopappinfo.h' file not found when glib2 is installed for +quartz

Reported by: chillin- Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Mojave Cc: chilli.namesake@…
Port: gtk3

Description (last modified by chillin-)

Unsuccessful NetSurf build due to (at least) gtk3 build fail.

macOS 10.14.6 w/ Xcode 11.3.1 on Macmini6,2

(NetSurf build on OS X 10.8.5 w/ Xcode 5.1.1 on Macmini5,2 appears successful, I just don't know how to use gtk applications and can't get NetSurf to launch, "can't open display.")

libtool: compile:  /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DG_LOG_USE_STRUCTURED=1 -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -fvisibility=hidden -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_56 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_58 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/cairo -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/fribidi -I/opt/local/include -DX_LOCALE -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -pipe -Os -fstrict-aliasing -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64 -Wall -MT gdkdevicemanager-xi2.lo -MD -MP -MF .deps/gdkdevicemanager-xi2.Tpo -c gdkdevicemanager-xi2.c -o gdkdevicemanager-xi2.o >/dev/null 2>&1
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/work/gtk+-3.24.34/gdk/x11'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/work/gtk+-3.24.34/gdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/work/gtk+-3.24.34/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/work/gtk+-3.24.34'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/work/gtk+-3.24.34'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/work/gtk+-3.24.34" && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch x86_64" CC_FOR_BUILD="/usr/bin/clang -arch x86_64" V=1 CPP_FOR_BUILD="/usr/bin/cpp" 
Exit code: 2
Error: Failed to build gtk3: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtk3/gtk3/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port NetSurf failed

Attachments (3)

Screen Shot 2022-12-15 at 11.06.52 PM.png (193.2 KB) - added by kencu (Ken) 16 months ago.
main.log (72.4 KB) - added by chillin- 16 months ago.
this is the real Mojave sdk3 build log
Safari Reset.app.zip (132.7 KB) - added by chillin- 16 months ago.
c. 2014. Try ir out

Download all attachments as: .zip

Change History (37)

comment:1 Changed 16 months ago by chillin-

Description: modified (diff)

comment:2 Changed 16 months ago by kencu (Ken)

to fix the "can't open display" issue, either install XQuartz from the XQuartz website, or (probably better) installe xorg-server from macports.

After you install it, it will tell you to log out and in again, or restart, and then the "can't open display" should be solved.

comment:3 Changed 16 months ago by chillin-

Sorry this is OT to gtk3 issue on Mojave, and I appreciate the suggestion,

but I already did that. No joy. On the Mountain Lion mini, I installed XQuartz 2.7.11, but now I get this when I try to start netsurf-gtk3

bash-3.2$ netsurf-gtk3

dbus[2197]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!

Options failed to initialise (BadParameter)

Of course, org.freedesktop.dbus-session.plist is neither loaded nor installed. Using Pacifist, I looked in the XQuartz package, and it is not in there, thus it was not installed.

This is old software. I'm sure there's instruction by some random college professor out there, but I haven't yet started to wrestle with Google, and I'm really not looking forward to it. (What happened to you, Google?)

comment:4 Changed 16 months ago by kencu (Ken)

time for an Xquartz upgrade? It's up to 2.8.3 now.

https://www.xquartz.org/

comment:5 Changed 16 months ago by kencu (Ken)

or xorg-server from macports instead, after you uninstall all of xquartz's bits.

Last edited 16 months ago by kencu (Ken) (previous) (diff)

comment:6 Changed 16 months ago by chillin-

time for an Xquartz upgrade? It's up to 2.8.3 now.

Not on Mountain Lion. 2.7.11 is the last version that will work on OS X 10.8.5

or xorg-desktop from macports instead, after you uninstall all of xquartz's bits.

Sounds like a really good idea. XQuartz only installed a handful of files.

I'm nearly certain the org.freedesktop.dbus-session.plist complaint is a silly bug, as it did install /System/Library/LaunchAgents/org.macosforge.xquartz.startx.plist and /System/Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist

I strongly suspect the bit about "org.freedesktop" was probably supposed to be "org.macosforge."

Anyway, it sure beats the pants off trying to find a recipe from 2012 on Google. Thanks, I'll give xorg a whirl.

comment:7 Changed 16 months ago by kencu (Ken)

OK -- when you do get around to xorg-server, and you install dbus, don't forget to enable dbus:

% port notes dbus
--->  dbus has the following notes:
  Startup items (named 'dbus-system, dbus-session') have been generated that
  will aid in starting dbus with launchd. They are disabled by default. Execute
  the following command to start them, and to cause them to launch at startup:
  
      sudo port load dbus
Last edited 16 months ago by kencu (Ken) (previous) (diff)

comment:8 Changed 16 months ago by chillin-

Much appreciate your followup, but I actually got that far. Initially starting netsurf-gtk3 gave me the complaint again about org.freedesktop.dbus-session.plist, but after sudo port load dbus, when I try to start netsurf-gtk, I get

Options failed to initialise (BadParameter)

Googling this and NetSurf reveals one germane result, a NetSurf incident ticket for an Ubuntu user with the same issue. Resolution was updating NetSurf. I'm boned.

comment:9 Changed 16 months ago by kencu (Ken)

OKee Dokey then.

Back to your original ticket, I have both the +x11 and the +quartz version of gtk3 installed on Mojave, no problem:

macOS 10.14.6 18G9323 x86_64
Xcode 11.3.1 11C504
$ port -v installed gtk3
The following ports are currently installed:
  gtk3 @3.24.34_2+quartz requested_variants='+quartz' platform='darwin 18' archs='x86_64' date='2022-09-25T12:11:45-0700'
  gtk3 @3.24.34_2+x11 requested_variants='' platform='darwin 18' archs='x86_64' date='2022-09-25T11:28:05-0700'

and the prebuilt binary is available for downloading from the macports packages server:

<https://packages.macports.org/gtk3/gtk3-3.24.34_2+x11.darwin_18.x86_64.tbz2>

So why can't you install it, I wonder? You should actually be just downloading it from the packages server prebuilt, but you should also be able to build and install it without trouble.

Just to confirm -- you can't, for some reason?

Last edited 16 months ago by kencu (Ken) (previous) (diff)

comment:10 Changed 16 months ago by jmroot (Joshua Root)

The attached log is from a failed build of libsdl2 @2.26.0, which is not the current version.

comment:11 Changed 16 months ago by kencu (Ken)

NetSurf builds, installs, and works for me on Mojave, although there is a message about not finding dbus, even though I do have it loaded. Screenshot attached. (It looks better on the screen than this screenshot would indicate.)

Last edited 16 months ago by kencu (Ken) (previous) (diff)

Changed 16 months ago by kencu (Ken)

Changed 16 months ago by chillin-

Attachment: main.log added

this is the real Mojave sdk3 build log

comment:12 Changed 16 months ago by chillin-

The attached log is from a failed build of libsdl2 @2.26.0, which is not the current version.

oops. ><

$ port -v installed gtk3
The following ports are currently installed:
gtk3 @3.24.34_2+quartz requested_variants='+quartz' platform='darwin 18' archs='x86_64' date='2022-09-25T12:11:45-0700'
gtk3 @3.24.34_2+x11 requested_variants='' platform='darwin 18' archs='x86_64' date='2022-09-25T11:28:05-0700'

odd. I don't see any variants in info

$ port info NetSurf
NetSurf @3.10_1 (www)

Description:NetSurf is a small and fast web browser.
Homepage:http://www.netsurf-browser.org

Build Dependencies:   bison, flex, pkgconfig
Library Dependencies: curl, expat, gtk3, libiconv, libpng, libutf8proc, openssl, webp, zlib
Platforms:darwin
License:(GPL-2 or OpenSSLException)
Maintainers:Email: ryandesign@macports.org, GitHub: ryandesign
Policy: openmaintainer

and the prebuilt binary is available for downloading from the macports packages server:

Just isn't the same as building.

I probably don't have X11 installed yet on the Mojave install. I was just following through with due dilligence reporting the build fail of gtk-3

But if I needed NetSurf anywhere, it was on Mountain Lion. Safari still works on Mountain Lion, and Firefox still updates. I haven't found any browser that works on ML, other than lynx, links. The install on ML was successful, as well as the xorg install. I just get that error about which I can find no corrective info.

Last edited 16 months ago by chillin- (previous) (diff)

comment:13 Changed 16 months ago by kencu (Ken)

well, we’re getting closer to sorting you out. Now we know it builds fine, and the error is somewhere on your system.

gdkapplaunchcontext-x11.c:30:10: fatal error: 'gio/gdesktopappinfo.h' file not found

what version of glib2 have you got installed, x11 or quartz?

comment:14 Changed 16 months ago by kencu (Ken)

by the way, if you are looking for a browser for old macos versions 10.7 to 10.12, use this, it’s the best there is and usually works well:

https://github.com/blueboxd/chromium-legacy

comment:15 Changed 16 months ago by kencu (Ken)

Keywords: gtk3 NetSurf removed
Summary: gtk3 @3.24.34_2 (NetSurf dependency) build fail on Mojavegtk3 @3.24.34_2 build fail on Mojave gdkapplaunchcontext-x11.c:30:10: fatal error: 'gio/gdesktopappinfo.h' file not found

comment:16 in reply to:  13 Changed 16 months ago by chillin-

Replying to kencu:

what version of glib2 have you got installed, x11 or quartz?

glib2 @2.70.5_0+quartz

Replying to kencu:

by the way, if you are looking for a browser for old macos versions 10.7 to 10.12, use this, it’s the best there is and usually works well:

https://github.com/blueboxd/chromium-legacy

Thanks, I'll check it out. Chrome horrified me, though I have heard Chromium is different

comment:17 Changed 16 months ago by chillin-

Sorry OT again. Unfortunately, Chromium legacy is giving me the same business as Firefox legacy.

https://youtu.be/6OZXWboon6Y

These two minis, 2011 ML & 2012 Mojave, are headless, so interface is through ssh and vnc. Safari doesn't do that on ML, nor does that happen with Firefox or anything else on Mojave.

Currently, curl -Ok and wget are my best web performers on the ML mini. That's why I installed NetSurf, because it appears to still be under development and has a version number above 0.x.

I don't really need a browser on ML very often, and, technically, I don't need one at all so long as Firefox is still updated and working on Mojave. It would just be more convenient, cut out the Mojave middleman.

comment:18 in reply to:  13 ; Changed 16 months ago by mascguy (Christopher Nielsen)

Replying to kencu:

well, we’re getting closer to sorting you out. Now we know it builds fine, and the error is somewhere on your system.

gdkapplaunchcontext-x11.c:30:10: fatal error: 'gio/gdesktopappinfo.h' file not found

what version of glib2 have you got installed, x11 or quartz?

Ken's spot-on with respect to the underlying cause: You have glib2 installed for quartz, but other dependencies are being built for x11. So you need to be consistent, and install everything with +quartz.

comment:19 in reply to:  18 ; Changed 16 months ago by chillin-

Replying to mascguy:

Ken's spot-on with respect to the underlying cause: You have glib2 installed for quartz, but other dependencies are being built for x11. So you need to be consistent, and install everything with +quartz.

Like what, for instance?

$ port installed |grep +x11
  cairo @1.17.4_0+quartz+x11 (active)
  gd2 @2.3.3_1+x11 (active)
  ghostscript @9.56.1_0+x11 (active)
  graphviz @7.0.1_0+pangocairo+x11 (active)
  ImageMagick @6.9.11-60_3+x11 (active)
  pango @1.50.7_0+quartz+x11 (active)
  py27-cairo @1.18.2_0+quartz+x11 (active)
$ port installed |grep +quartz
  cairo @1.17.4_0+quartz+x11 (active)
  gegl @0.4.38_2+quartz (active)
  gimp @2.10.32_1+quartz (active)
  gimp-lqr-plugin @0.7.2_3+quartz (active)
  gimp2 @2.10.32_2+python27+quartz (active)
  glib2 @2.70.5_0+quartz (active)
  gtk2 @2.24.33_3+quartz (active)
  gutenprint @5.3.3_0+quartz (active)
  libglade2 @2.6.4_8+quartz (active)
  pango @1.50.7_0+quartz+x11 (active)
  py27-cairo @1.18.2_0+quartz+x11 (active)
  py27-gobject @2.28.7_2+quartz (active)
  py27-pygtk @2.24.0_6+quartz (active)
  py39-cairo @1.21.0_0+quartz (active)

btw looks like I'm using glib2 for cairo, harfbuzz and qemu. I don't see what gtk3 dependencies I have that are +x11. I have a few +x11, but none are dependencies of gtk3.

But the major problem here is I am wasting all your generous time, because I don't need NetSurf on Mojave, and I'm not reinstalling. I only reported for due diligence. My problem is NetSurf on Mountain Lion isn't launching for mysterious reasons, which is all OT to this incident.

If satisfied there are conflicting +x11 dependencies (which I am not seeing btw), close the ticket.

Last edited 16 months ago by chillin- (previous) (diff)

comment:20 in reply to:  19 Changed 16 months ago by mascguy (Christopher Nielsen)

Replying to chillin-:

Like what, for instance?

Based on your list of installed ports, everything else looks great. So you're close!

The one item you now need to install with +quartz, is gtk3. But you can simplify the process, by specifying +quartz when installing NetSurf. (Even though the latter doesn't have a quartz variant, it will cascade to all deps... including gtk3.)

$ sudo port clean gtk3 netsurf
$ sudo port install netsurf +quartz

Give that a try, and let us know how it goes!

Last edited 16 months ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:21 Changed 16 months ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

comment:22 in reply to:  17 ; Changed 16 months ago by kencu (Ken)

Replying to chillin-:

Sorry OT again. Unfortunately, Chromium legacy is giving me the same business as Firefox legacy.

The author of chromium legacy builds a new version every 12 hours or so :>

Sometimes, one build can be a bit flaky, depending the latest commits. I just try another version. I found a good one a few months ago, and have been using it ever since on 10.7 with great success.

There is -- currently -- no better browser to be found anywhere for these systems though, so you won't do any better looking elsewhere.

comment:23 Changed 16 months ago by kencu (Ken)

Summary: gtk3 @3.24.34_2 build fail on Mojave gdkapplaunchcontext-x11.c:30:10: fatal error: 'gio/gdesktopappinfo.h' file not foundgtk3 @3.24.34_2 build fail on Mojave gdkapplaunchcontext-x11.c:30:10: fatal error: 'gio/gdesktopappinfo.h' file not found when glib2 is installed for +quartz

comment:24 in reply to:  22 Changed 16 months ago by chillin-

Replying to mascguy:

Based on your list of installed ports, everything else looks great. So you're close!

The one item you now need to install with +quartz, is gtk3. But you can simplify the process, by specifying +quartz when installing NetSurf. (Even though the latter doesn't have a quartz variant, it will cascade to all deps... including gtk3.)

$ sudo port clean gtk3 netsurf
$ sudo port install netsurf +quartz

Give that a try, and let us know how it goes!

Just finished building xorg. Trying this now (w/ -vsN)

Replying to kencu:

Replying to chillin-:

Sorry OT again. Unfortunately, Chromium legacy is giving me the same business as Firefox legacy.

The author of chromium legacy builds a new version every 12 hours or so :>

Sometimes, one build can be a bit flaky, depending the latest commits. I just try another version. I found a good one a few months ago, and have been using it ever since on 10.7 with great success.

I installed the stable version, 108.0.5359.98.2. Maybe when I have time to test out older versions, but since both the last ML supported version of Firefox and Firefox legacy gave me the same behavior, I'm not optimistic. I also tried out Ungoogled Chromium, but it gave me the same problem as before over VNC.

Replying to kencu:

There is -- currently -- no better browser to be found anywhere for these systems though, so you won't do any better looking elsewhere.

That is highly subjective. IMO Safari is superior to Chromium, at least what I have just seen of it, with its residual "log in" crap, and Google failing to respect boundaries. They're both WebKit, anyway, but Safari's dress is better all around. I don't really like either Firefox's or Chrome's or Chromium's method of putting settings in the browser and all that crap on the Tool Bar and popups and nags. If you're going to make a native application, then make it native, use the native UI. Apple is annoying too, and getting more and more annoying, but I still think Safari has a better and simpler UI with easy to find defaults to change to "do nothing, show nothing automatically, don't suggest anything & don't track."

I'm not a developer, but I actually did write one single application for my late sister years ago. She had bad surfing habits, and I was concerned for her getting robbed or getting her identity stolen. It was called, "Safari Reset," and it worked on Snow Leopard and Lion (maybe ML, too, haven't tried it). All it did was delete every Safari setting, cookies, caches, everything that can change from a default fresh install it just removed, except bookmarks. Took about half a second and relaunched Safari. Track that, Google. I really miss my sister... and Snow Leopard.

Last edited 16 months ago by chillin- (previous) (diff)

Changed 16 months ago by chillin-

Attachment: Safari Reset.app.zip added
  1. 2014. Try ir out

comment:25 Changed 16 months ago by chillin-

Build succeeded on Mojave, but I'm getting the same problem at launch as on Mountain Lion

bash-3.2$ sudo port load dbus
Password:
--->  Loading startupitem 'dbus-system' for dbus
--->  Loading startupitem 'dbus-session' for dbus
bash-3.2$ netsurf-gtk3 
Options failed to initialise (BadParameter)

comment:26 Changed 16 months ago by chillin-

bash-3.2$ netsurf-gtk3 -v
(0.000001) [INFO netsurf] frontends/gtk/gui.c:1003 nserror create_config_home(char **): Attempting to create configuration directory
(0.000060) [INFO netsurf] frontends/gtk/gui.c:1243 int main(int, char **): Unable to locate a configuration directory.
(0.000070) [INFO netsurf] utils/log.c:268 nserror nslog_init(nslog_ensure_t *, int *, char **): NetSurf version '3.10 (24th May 2020)'
(0.000107) [INFO netsurf] utils/log.c:279 nserror nslog_init(nslog_ensure_t *, int *, char **): NetSurf on <Darwin>, node <ithil.local>, release <18.7.0>, version <Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 PDT 2021; root:xnu-4903.278.70~1/RELEASE_X86_64>, machine <x86_64>
(0.000511) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/netsurf.gtk3.ui
(0.000594) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/tabcontents.gtk3.ui
(0.000670) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/password.gtk3.ui
(0.000740) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/toolbar.gtk3.ui
(0.000810) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/downloads.gtk3.ui
(0.000877) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/globalhistory.gtk3.ui
(0.000945) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/localhistory.gtk3.ui
(0.001012) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/options.gtk3.ui
(0.001078) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/hotlist.gtk3.ui
(0.001144) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/cookies.gtk3.ui
(0.001211) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/viewdata.gtk3.ui
(0.001271) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/warning.gtk3.ui
(0.001336) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/pageinfo.gtk3.ui
(0.001401) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/favicon.png
(0.001464) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/netsurf.xpm
(0.001524) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/menu_cursor.png
(0.001590) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/local-history.png
(0.001651) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/show-cookie.png
(0.001717) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/24x24/actions/page-info-insecure.png
(0.001776) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/24x24/actions/page-info-internal.png
(0.001839) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/24x24/actions/page-info-local.png
(0.001906) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/24x24/actions/page-info-secure.png
(0.001969) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/24x24/actions/page-info-warning.png
(0.002032) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/48x48/actions/page-info-insecure.png
(0.002094) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/48x48/actions/page-info-internal.png
(0.002157) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/48x48/actions/page-info-local.png
(0.002220) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/48x48/actions/page-info-secure.png
(0.002283) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/48x48/actions/page-info-warning.png
(0.002346) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber0.png
(0.002408) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber1.png
(0.002474) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber2.png
(0.002533) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber3.png
(0.002593) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber4.png
(0.002653) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber5.png
(0.002712) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber6.png
(0.002775) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber7.png
(0.002839) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/throbber/throbber8.png
(0.002913) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/welcome.html
(0.002992) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/credits.html
(0.003064) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/licence.html
(0.003138) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/default.css
(0.003211) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/adblock.css
(0.003291) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/internal.css
(0.003362) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/quirks.css
(0.003435) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/netsurf.png
(0.003510) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/default.ico
(0.003585) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/arrow-l.png
(0.003659) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/content.png
(0.003734) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/directory2.png
(0.003808) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/directory.png
(0.003884) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/hotlist-add.png
(0.003958) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/hotlist-rmv.png
(0.004032) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/icons/search.png
(0.004107) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/languages
(0.004183) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/accelerators
(0.004259) [INFO netsurf] frontends/gtk/resources.c:240 nserror init_resource(char **, struct nsgtk_resource_s *): Found gresource path /org/netsurf/Messages
(0.004293) [INFO netsurf] frontends/gtk/gui.c:211 nserror set_defaults(struct nsoption_s *): Failed initialising default resource paths
Options failed to initialise (BadParameter)
bash-3.2$ 

comment:27 in reply to:  7 Changed 16 months ago by chillin-

Replying to kencu:

OK -- when you do get around to xorg-server, and you install dbus, don't forget to enable dbus:

Going over this again... On the Mountain Lion system I tried to build xorg-server as soon as xorg finished building, but it complained,

Error: xorg-server is known to fail (use --allow-failing to try to install anyway)

but I did it anyway with -y and got a message that led me to believe everything was fine, that xorg and xorg-server were mutually exclusive:

$ port -vsNy install --allow-failing xorg-server
--->  Computing dependencies for xorg-server.
Error: Can't install xorg-server because conflicting ports are active: xorg-server-legacy
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port xorg-server failed

And I forgot all about this when I tried again on Mojave. IOW I never got around to xorg-server, and I never installed dbus, but dbus @1.14.4_0 just happened to be installed on Mountain Lion, and both dbus @1.14.4_0 and dbus-glib @0.112_0 happened to be installed on Mojave.

So now I want to ask, 1) when you suggested I install "xorg-desktop," just what did you mean, exactly? and 2) I didn't install xorg-server due what may be my mistaken beliefs due to the message about xorg-server-legacy that I got on Mountain Lion (but checking now I don't get that complaint on Mojave)... you want I should install xorg-server?''

(30 minutes later)

$ time port -vsN install xorg-server ;  date
--->  Computing dependencies for xorg-server.
--->  Cleaning xorg-server
--->  Removing work directory for xorg-server
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.
real0m5.281s
user0m1.472s
sys0m1.527s
Sat Dec 17 13:09:30 EST 2022
$ port installed |grep xorg-server
xorg-server @1.20.11_1 (active)
bash-3.2$ netsurf-gtk3 
Options failed to initialise (BadParameter)
Last edited 16 months ago by chillin- (previous) (diff)

comment:28 Changed 16 months ago by kencu (Ken)

MacPorts is powerful, and the admins and devs have chosen to keep more options available at the expense of it being slightly more complicated for users, especially initially. Homebrew has taken the opposite approach, no variants, usually one option for things, and they don't support users building their own software, even.

MacPorts has four xorg-server ports:

 % port search xorg-server
xorg-server @1.20.11_1 (x11, devel)
    The X.org / Xquartz X server.

xorg-server-1.18 @1.18.4 (x11, devel)
    The X.org / Xquartz X server.

xorg-server-devel @1.20.99.1_1 (x11, devel)
    The X.org / Xquartz X server.

xorg-server-legacy @1.20.10_2 (x11, devel)
    The X.org / Xquartz X server.

The primary xorg-server port works for almost all users on newer systems. The xorg-server-legacy port works on the older systems where the primary port no longer usually will build or work properly. The other two xorg-server ports have uses, the 1.18 version on Tiger, and the devel version for devs to use to move the envelope down the path for the next update.

Now ideally when you tried to install xorg-server on a system that is too old to support it, it would not tell you it won't build, but try anyway -- that is kinda confusing -- what it would do is say that that xorg-server doesn't work on your system, so MacPorts will be installing xorg-server-legacy for you instead. Wouldn't that be great?

It's not overly hard to write that code into the Portfiles, but nobody who is capable of doing that (like me) has bothered to do it, because there are just too many other things to do. It would be really great if users like you might get to the point where you could add that to MacPorts for us.... we'd really appreciate it.

comment:29 in reply to:  28 Changed 16 months ago by chillin-

Replying to kencu:

MacPorts is powerful, and the admins and devs have chosen to ... ... for you instead. Wouldn't that be great?

It's not overly hard to write that code into the Portfiles, but nobody who is capable of doing that (like me) has bothered to do it, because there are just too many other things to do. It would be really great if users like you might get to the point where you could add that to MacPorts for us.... we'd really appreciate it.

Really appreciate the explanation and history. I love that stuff. When CS kicked my ass, I studied a lot of history of technology instead, just because I really like it, but it's not like anything sticks (I remember the name Ken Thompson). I learned BASIC and LOGO before HS, then never saw another computer in HS, and all that being a CS major gave me was a pedestrian introduction Pascal and UNIX. I can't remember Pascal, but I've been painfully, painfully slowly learning Bash since 2014. If I could write code into the Portfiles, you really wouldn't want me doing that. Just sayin, if you're busy now, it'd only make more work for everyone. The best I can do is report a bug. But maybe someday I'll get smarter.

comment:30 Changed 16 months ago by kencu (Ken)

IMO Safari is superior to Chromium…

Yeah, but as of about 10.13 and older it’s hopelessly outdated and never will be updated. So not an option then, is it?

Older systems have been also dropped by Firefox, Chrome, and Safari.

Chromium-legacy is all you got, baby. Lucky to have that!

Or Netsurf-gtk etc which are really useless.

Last edited 16 months ago by kencu (Ken) (previous) (diff)

comment:31 in reply to:  30 Changed 16 months ago by chillin-

Replying to kencu:

IMO Safari is superior to Chromium…

Yeah, but as of about 10.13 and older it’s hopelessly outdated and never will be updated. So not an option then, is it?

No.

Replying to kencu:

Older systems have been also dropped by Firefox, Chrome, and Safari.

Chromium-legacy is all you got, baby. Lucky to have that!

Or Netsurf-gtk etc which are really useless.

You have a fair point, but unless I get NetSurf running on ML and it doesn't have the VNC problems Chromium-legacy and Firefox-legacy have, I'll stick with Lynx+ssl, cURL and Wget. I really don't use that machine to surf, but sometimes stuff is only available for download through a browser, has a bazillion redirects or requires a login.

comment:32 in reply to:  25 Changed 16 months ago by chillin-

Replying to mascguy:

The one item you now need to install with +quartz, is gtk3. But you can simplify the process, by specifying +quartz when installing NetSurf. (Even though the latter doesn't have a quartz variant, it will cascade to all deps... including gtk3.)

$ sudo port clean gtk3 netsurf
$ sudo port install netsurf +quartz

Give that a try, and let us know how it goes!

Replying to chillin-:

Build succeeded on Mojave, but I'm getting the same problem at launch as on Mountain Lion

Your suggestion worked, Chris, now have gtk3 @3.24.34_2+quartz and NetSurf @3.10_1 installed.

The problems I'm having with NetSurf have nothing to do with gtk3 anymore, so we can probably call this one resolved. Thanks much. I'll keep banging away at

bash-3.2$ netsurf-gtk3 
Options failed to initialise (BadParameter)

comment:33 Changed 16 months ago by chillin-

Since this is still open... might as well continue with my OT:

The versions installed don't seem right to me:

Mountain Lion 
xorg-server-legacy @1.20.10_2
xorg @20090316_0
X11.app @1.20.10
Mojave
xorg-server @1.20.11_1
xorg @20090316_0
X11.app @1.20.11

when XQuartz.app (which I thought was the same as this MacPorts xorg X11.app) is up to 2.8.3, and the last version supported on Mountain Lion (which I installed, didn't think it worked, and uninstalled) is 2.7.11 https://www.xquartz.org/releases/archive.html

Maybe these aren't the same? But XQuartz Releases page literally instructs the alternative method of XQuartz install with MacPorts https://www.xquartz.org/releases/index.html

Just what is going on here?

Last edited 16 months ago by chillin- (previous) (diff)

comment:34 Changed 15 months ago by kencu (Ken)

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.