Opened 7 months ago

Last modified 6 months ago

#71597 assigned defect

glib2 @2.78.4_1+x11: fatal error: 'dbus/dbus.h' file not found

Reported by: InformationOcean (Information Ocean) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: Cc: dershow
Port: glib2

Description (last modified by jmroot (Joshua Root))

janos@MacBookAir bin % sudo port selfupdate
Password:
--->  Checking for newer releases of MacPorts
MacPorts base version 2.10.5 installed,
MacPorts base version 2.10.5 available.
--->  MacPorts base is already the latest version
--->  Updating the ports tree

The ports tree has been updated.

232 ports are outdated. Run 'port outdated' for details.
To upgrade your installed ports, you should run
  port upgrade outdated
janos@MacBookAir bin % sudo port upgrade outdated
--->  Computing dependencies for bash
--->  Fetching archive for bash
--->  Attempting to fetch bash-5.2.37_0.darwin_24.arm64.tbz2 from https://packages.macports.org/bash
--->  Attempting to fetch bash-5.2.37_0.darwin_24.arm64.tbz2 from http://bos.us.packages.macports.org/bash
--->  Attempting to fetch bash-5.2.37_0.darwin_24.arm64.tbz2 from https://mirrors.mit.edu/macports/packages/bash
--->  Fetching distfiles for bash
--->  Attempting to fetch bash52-033 from https://distfiles.macports.org/bash/5.2_1
--->  Attempting to fetch bash52-034 from https://distfiles.macports.org/bash/5.2_1
--->  Attempting to fetch bash52-035 from https://distfiles.macports.org/bash/5.2_1
--->  Attempting to fetch bash52-036 from https://distfiles.macports.org/bash/5.2_1
--->  Attempting to fetch bash52-037 from https://distfiles.macports.org/bash/5.2_1
--->  Verifying checksums for bash
--->  Extracting bash
--->  Applying patches to bash
--->  Configuring bash
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  dup2: found in bash-5.2/config.log
--->  Building bash
--->  Staging bash into destroot                         
--->  Installing bash @5.2.37_0                          
--->  Cleaning bash
--->  Computing dependencies for bash
--->  Deactivating bash @5.2.32_0
--->  Cleaning bash
--->  Activating bash @5.2.37_0
--->  Cleaning bash
--->  Computing dependencies for glib2
--->  Fetching archive for glib2
--->  Attempting to fetch glib2-2.78.4_1+x11.darwin_24.arm64.tbz2 from https://packages.macports.org/glib2
--->  Attempting to fetch glib2-2.78.4_1+x11.darwin_24.arm64.tbz2 from http://bos.us.packages.macports.org/glib2
--->  Attempting to fetch glib2-2.78.4_1+x11.darwin_24.arm64.tbz2 from https://mirrors.mit.edu/macports/packages/glib2
--->  Building glib2
Error: Failed to build glib2: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
janos@MacBookAir bin % sudo port clean
Password:
Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /opt/local/bin").
Please verify that the directory and portfile syntax are correct.
To use the current port, you must be in a port's directory.
janos@MacBookAir bin % ls -al port*
-r-xr-xr-x  1 root  wheel  207415 Dec 15 23:37 port
lr-xr-xr-x  1 root  wheel      40 Dec 15 23:37 port-tclsh -> /opt/local/libexec/macports/bin/tclsh8.6
lr-xr-xr-x  1 root  wheel       4 Dec 15 23:37 portf -> port
-r-xr-xr-x  1 root  wheel   16225 Dec 15 23:37 portindex
-r-xr-xr-x  1 root  wheel    2316 Dec 15 23:37 portmirror
janos@MacBookAir bin % pwd
/opt/local/bin

Attachments (1)

:opt:local:var:macports:logs:_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2:glib2:main.log.txt (1.2 MB) - added by InformationOcean (Information Ocean) 7 months ago.
This is the log file to the latest comments of mine.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 7 months ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: ports glib2 'file://.' removed
Owner: set to mascguy
Port: glib2 added
Status: newassigned
Summary: base 2.10.5 Unable to do an update, failed to build glib2, Cannot map to URL 'file://.' to a p[ort description fileglib2 @2.78.4_1+x11 failed to build

You want sudo port clean glib2. If it still fails after that, please attach the main.log.

comment:2 Changed 7 months ago by InformationOcean (Information Ocean)

Thanks for the advise. Here is the action and results:

janos@MacBookAir bin % cd ~
janos@MacBookAir ~ % pwd
/Volumes/Home/janos
janos@MacBookAir ~ % which port
/opt/local/bin/port
janos@MacBookAir ~ % sudo port clean glib2
Password:
--->  Cleaning glib2
janos@MacBookAir ~ % sudo port upgrade outdated
--->  Computing dependencies for glib2
--->  Fetching archive for glib2
--->  Attempting to fetch glib2-2.78.4_1+x11.darwin_24.arm64.tbz2 from https://packages.macports.org/glib2
--->  Attempting to fetch glib2-2.78.4_1+x11.darwin_24.arm64.tbz2 from http://bos.us.packages.macports.org/glib2
--->  Attempting to fetch glib2-2.78.4_1+x11.darwin_24.arm64.tbz2 from https://mirrors.mit.edu/macports/packages/glib2
--->  Fetching distfiles for glib2
--->  Verifying checksums for glib2
--->  Extracting glib2
--->  Applying patches to glib2
--->  Configuring glib2
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  statx: found in build/meson-logs/meson-log.txt
Warning: Configuration logfiles contain indications of -Wincompatible-function-pointer-types; check that features were not accidentally disabled:
  found in build/meson-logs/meson-log.txt
--->  Building glib2
Error: Failed to build glib2: command execution failed   
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.}}}

Changed 7 months ago by InformationOcean (Information Ocean)

This is the log file to the latest comments of mine.

comment:3 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: glib2 @2.78.4_1+x11 failed to buildglib2 @2.78.4_1+x11: fatal error: 'dbus/dbus.h' file not found

Hmm, the error in the log is:

../glib-2.78.4/gio/tests/gdbus-serialization.c:30:10: fatal error: 'dbus/dbus.h' file not found
   30 | #include <dbus/dbus.h>
      |          ^~~~~~~~~~~~~
1 error generated.

glib2 does not list dbus as a dependency. Does sudo port clean glib2 && sudo port install dbus fix the problem?

Or is dbus already installed? I see the log also says:

Run-time dependency dbus-1 found: YES 1.14.4

If you have the dbus port version 1.14.4 installed, that's outdated; the version currently available is 1.14.10.

comment:4 Changed 6 months ago by paxperscientiam (Chris)

I experienced the same build error when attempting to install irssi. In my case, I hadn't dbus installed. So, I tried installing it and loading it, then tried installing glib2 (after cleaning). Still failed unfortunately.

comment:5 Changed 6 months ago by paxperscientiam (Chris)

In my case, the problem was fixed by installing py313-packaging per #71745

Last edited 6 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 6 months ago by dershow

Cc: dershow added
Note: See TracTickets for help on using tickets.