[MacPorts] #32714: policykit 103 fails to build on lion
#32714: policykit 103 fails to build on lion -------------------------------------+-------------------------------------- Reporter: harald@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: -------------------------------------+-------------------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/32714> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 -------------------------------------+-------------------------------------- Comment(by harald@…): Replying to [comment:1 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. -- Ticket URL: <https://trac.macports.org/ticket/32714#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32714: policykit: error: glib-unix.h: No such file or directory --------------------------------------+------------------------------------- Reporter: harald@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: worksforme | Keywords: Port: policykit | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/32714#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32714: policykit: error: glib-unix.h: No such file or directory -------------------------+---------------------- Reporter: harald@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: worksforme | Keywords: Port: policykit | -------------------------+---------------------- Comment (by qbarnes@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/32714#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts