ports/178098: sysutils/polkit will not build if glib20 is too old

Matt Stofko matt at mjslabs.com
Wed Apr 24 05:10:01 UTC 2013


>Number:         178098
>Category:       ports
>Synopsis:       sysutils/polkit will not build if glib20 is too old
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 24 05:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Matt Stofko
>Release:        8.3
>Organization:
mjslabs.com
>Environment:
FreeBSD phjeer.us 8.3-RELEASE-p6 FreeBSD 8.3-RELEASE-p6 #1 r247139: Thu Feb 21 20:56:01 PST 2013     matts at phjeer.us:/usr/obj/usr/src/sys/DAEMON  amd64
>Description:
When trying to build sysutils/polkit it fails with the following error: 

Making all in polkitd
gmake[3]: Entering directory `/usr/ports/sysutils/polkit/work/polkit-0.105/src/polkitd'
  CC     polkitd-main.o
main.c:26:23: error: glib-unix.h: No such file or directory
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.)
gmake[3]: *** [polkitd-main.o] Error 1
gmake[3]: Leaving directory `/usr/ports/sysutils/polkit/work/polkit-0.105/src/polkitd'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/sysutils/polkit/work/polkit-0.105/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/sysutils/polkit/work/polkit-0.105'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/sysutils/polkit.
*** Error code 1

Stop in /usr/ports/sysutils/polkit.
-----

glib-unix.h is only provided in glib versions starting with 2.29.4 or later, but the polkit Makefile doesn't specify a minimum version of glib needed, so it ends up looking for a header file that isn't installed.
>How-To-Repeat:
With devel/glib20 installed at a version below 2.29.4 try to build sysutils/polkit.


>Fix:
I believe the only fix needed is for polkit to specify a minimum version of glib20 (at least 2.29.4 which includes glib-unix.h). As soon as I upgraded glib20 on my system the polkit build then worked.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list