[PATCH] textproc/libxslt: [Fix build on FreeBSD 4.x]

Tod McQuillin devin at spamcop.net
Thu May 4 09:47:00 UTC 2006


>Submitter-Id:	current-users
>Originator:	Tod McQuillin
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] textproc/libxslt: [Fix build on FreeBSD 4.x]
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 4.11-STABLE i386
>Environment:
System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Mar 23 21:52:12 JST 2006
>Description:
On FreeBSD 4.x the build fails when <sys/select.h> is included
from libexslt/crypto.c as follows:

cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt -I../libexslt -I.. -I../libxslt -I../libexslt -I/usr/local/include/libxml2 -I/usr/local/include -O -pipe -Wall -I/usr/local/include -I/usr/local/include -I/usr/local/include -O -pipe -Wall -c crypto.c -Wp,-MD,.deps/crypto.TPlo  -fPIC -DPIC -o .libs/crypto.o
In file included from /usr/include/sys/select.h:40,
                 from crypto.c:321:
/usr/include/sys/event.h:53: syntax error before `uintptr_t'
/usr/include/sys/event.h:55: syntax error before `u_short'
In file included from crypto.c:321:
/usr/include/sys/select.h:47: syntax error before `pid_t'
gmake[2]: *** [crypto.lo] Error 1

Fixed by including <sys/types.h> before <sys/select.h>

Added file(s):
- files/patch-libexslt_crypto.c

Port maintainer (gnome at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.76
>How-To-Repeat:
>Fix:

--- libxslt-1.1.16.patch begins here ---
Index: files/patch-libexslt_crypto.c
===================================================================
RCS file: files/patch-libexslt_crypto.c
diff -N files/patch-libexslt_crypto.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-libexslt_crypto.c	4 May 2006 09:41:33 -0000
@@ -0,0 +1,10 @@
+--- libexslt/crypto.c~	Fri Mar 10 20:01:42 2006
++++ libexslt/crypto.c	Thu May  4 18:40:45 2006
+@@ -318,6 +318,7 @@
+ #define PLATFORM_SHA1 GCRY_MD_SHA1
+ 
+ #ifdef HAVE_SYS_SELECT_H
++#include <sys/types.h>
+ #include <sys/select.h>		/* needed by gcrypt.h 4 Jul 04 */
+ #endif
+ #include <gcrypt.h>
--- libxslt-1.1.16.patch ends here ---



More information about the freebsd-gnome mailing list