Subject: Re: devel/pkgconfig/patches/patch-ac breaks build on MacOSX 10.3.7
To: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
From: Adrian Portelli <adrianp@stindustries.net>
List: tech-pkg
Date: 01/10/2005 09:40:44
Hi,

I've already informed grant@ about this one as it breaks on my Mac box 
as well :<  It looks like it could be needed for some versions of OS X 
but not all.

I'll PR this for the record and include my verison of OS X.

For a qick and dirty hack remove patch-ac and it should compile and 
install ok.

adrian.

Ronald van der Pol wrote:
> devel/pkgconfig/patches/patch-ac log:
> 
> revision 1.1
> date: 2004/12/18 16:57:56;  author: grant;  state: Exp;
> - pkgconfig uses dlopen(), so include dlopen.buildlink3.mk.
> - Darwin has no prototype for poll(), so in glib, do what it already did
>   for Solaris.
> 
> However, MacOSX 10.3.7 does have a prototype for poll().
> 
> spock$ head -2 /usr/include/poll.h 
> /*---------------------------------------------------------------------------*\
>   $Id: poll.h,v 1.2 2003/09/13 00:08:18 eseidel Exp $
> spock$
> 
> [...]
> Making all in glib-1.2.8
> /usr/pkg/bin/bmake  all-recursive
> Making all in .
> /bin/sh ./libtool --mode=compile gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.
> -DG_LOG_DOMAIN=g_log_domain_glib  -no-cpp-precomp -I/usr/include  -O2
> -I/usr/include -Wall -c gmain.c
>  gcc -pipe -DHAVE_CONFIG_H -I. -DG_LOG_DOMAIN=g_log_domain_glib
> -no-cpp-precomp -O2 -Wall -c gmain.c  -fno-common -DPIC -o .libs/gmain.o
> gmain.c:191: error: conflicting types for `poll'
> /usr/include/poll.h:96: error: previous declaration of `poll'
> gmain.c:1222: warning: `g_main_wakeup' defined but not used
> *** Error code 1
> 
> Stop.
> bmake: stopped in /Volumes/misc/pkgsrc/devel/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8
> *** Error code 1
> 
> Stop.
> bmake: stopped in /Volumes/misc/pkgsrc/devel/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8
> *** Error code 1
> 
> Stop.
> bmake: stopped in /Volumes/misc/pkgsrc/devel/pkgconfig/work/pkgconfig-0.15.0/glib-1.2.8
> *** Error code 1
> 
> Stop.
> bmake: stopped in /Volumes/misc/pkgsrc/devel/pkgconfig/work/pkgconfig-0.15.0
> *** Error code 1
> 
> Stop.
> bmake: stopped in /Volumes/misc/pkgsrc/devel/pkgconfig/work/pkgconfig-0.15.0
> *** Error code 1
> 
> Stop.
> bmake: stopped in /usr/pkgsrc/devel/pkgconfig
> *** Error code 1
> 
> Stop.
> bmake: stopped in /usr/pkgsrc/devel/pkgconfig
> spock#
> 
> 	rvdp
> 
>