[MacPorts] #32714: policykit: error: glib-unix.h: No such file or directory (was: policykit 103 fails to build on lion)
MacPorts
noreply at macports.org
Sat Dec 31 15:54:52 PST 2011
#32714: policykit: error: glib-unix.h: No such file or directory
-------------------------------------+--------------------------------------
Reporter: harald@… | Owner: devans@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: policykit
-------------------------------------+--------------------------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => devans@…
* cc: clang/gcc/4.2 (removed)
* port: => policykit
Old description:
> hi,
> seems i found a build error in policykit under osx 10.7.2 / xcode 4.2. i
> tried clang/gcc in all three variations to no avail. see the following
> error message. I`m not very unix savvy, but does it mean that "glib-unix"
> i missing? there is no such package in port...
>
> n.b. long term goal is to build calligra on osx !->
>
> main.c:26:23: error: glib-unix.h: No such file or directory
> mv -f .deps/polkitd-gposixsignal.Tpo .deps/polkitd-gposixsignal.Po
> main.c: In function 'main':
> main.c:133: warning: implicit declaration of function 'open'
> main.c:133: warning: nested extern declaration of 'open'
> main.c:133: error: 'O_RDWR' undeclared (first use in this function)
> main.c:133: error: (Each undeclared identifier is reported only once
> main.c:133: error: for each function it appears in.)
> make[3]: *** [polkitd-main.o] Error 1
New description:
hi, [[br]]
seems i found a build error in policykit under osx 10.7.2 / xcode 4.2. i
tried clang/gcc in all three variations to no avail. see the following
error message. I`m not very unix savvy, but does it mean that "glib-unix"
i missing? there is no such package in port...
n.b. long term goal is to build calligra on osx !->
{{{
main.c:26:23: error: glib-unix.h: No such file or directory
mv -f .deps/polkitd-gposixsignal.Tpo .deps/polkitd-gposixsignal.Po
main.c: In function 'main':
main.c:133: warning: implicit declaration of function 'open'
main.c:133: warning: nested extern declaration of 'open'
main.c:133: error: 'O_RDWR' undeclared (first use in this function)
main.c:133: error: (Each undeclared identifier is reported only once
main.c:133: error: for each function it appears in.)
make[3]: *** [polkitd-main.o] Error 1
}}}
--
Comment:
It means glib-unix.h does not exist. That file is supposed to have been
provided by the glib2 port, which should be installed on your system,
since policykit has a library dependency on eggdbus which has a library
dependency on dbus-glib which has a library dependency on glib2.
Is glib2 installed? ("port -v installed glib2")
What files does it contain? ("port contents glib2")
Please clean and try again ("sudo port clean policykit; sudo port install
policykit"); if it fails again, please attach the main.log file to this
ticket.
--
Ticket URL: <https://trac.macports.org/ticket/32714#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list