Date: Thu, 04 May 2006 18:46:58 +0900 From: Tod McQuillin <devin@spamcop.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gnome@FreeBSD.org Subject: ports/96757: [PATCH] textproc/libxslt: [Fix build on FreeBSD 4.x] Message-ID: <E1FbaQE-000B3t-L6@mail.distalzou.net> Resent-Message-ID: <200605040950.k449oA1l047138@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 96757 >Category: ports >Synopsis: [PATCH] textproc/libxslt: [Fix build on FreeBSD 4.x] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 04 09:50:10 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Tod McQuillin >Release: FreeBSD 4.11-STABLE i386 >Organization: >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@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 --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FbaQE-000B3t-L6>