Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#32714 closed defect (worksforme)

policykit: error: glib-unix.h: No such file or directory

Reported by: harald@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: policykit

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (4)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: clang/gcc/4.2 removed
Description: modified (diff)
Owner: changed from macports-tickets@… to devans@…
Port: policykit added
Summary: policykit 103 fails to build on lionpolicykit: error: glib-unix.h: No such file or directory

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.

comment:2 in reply to:  1 Changed 13 years ago by harald@…

Replying to ryandesign@…:

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")

it wasn`t

What files does it contain? ("port contents glib2")

at first i seemed empty, needed forced activation.

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.

after that policykit built just fine.

but- i am surprised by this need for manual intervention. i started with building koffice as indicated in the macports wiki, the portfile seems to be broken in some minor way.

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

comment:4 Changed 12 years ago by qbarnes (Quentin Barnes)

The problem here was what version of glib2 was installed. The glib-unix.h header file was only added with versions of glib2 2.29.4 and later.

Note: See TracTickets for help on using tickets.