Date: Fri, 1 Apr 2005 15:50:08 GMT From: "Jukka A. Ukkonen" <jau@mawit.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/79354: domc-0.8.0 fails to build on FreeBSD-4.11 Message-ID: <200504011550.j31Fo8v1032384@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/79354; it has been noted by GNATS. From: "Jukka A. Ukkonen" <jau@mawit.com> To: freebsd-gnats-submit@FreeBSD.org, jau@iki.fi Cc: Subject: Re: ports/79354: domc-0.8.0 fails to build on FreeBSD-4.11 Date: Fri, 01 Apr 2005 18:49:40 +0300 OK - as requested by Volker Stolz I submit patches via the gnats system. Here are fixes to both domc-0.8.0 and libmba-0.8.10 which domc depends on. 1) domc-0.8.0 --- Makefile.orig Thu Mar 31 18:44:47 2005 +++ Makefile Thu Mar 31 18:52:43 2005 @@ -32,4 +32,10 @@ PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}" -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +USE_GCC= 3.4 +.endif + +.include <bsd.port.post.mk> --- work/domc-0.8.0/src/domc.h.orig Wed Mar 30 09:06:18 2005 +++ work/domc-0.8.0/src/domc.h Wed Mar 30 09:06:46 2005 @@ -33,7 +33,9 @@ #include <errno.h> #include <time.h> -#if defined(__sparc__) +#if defined(__FreeBSD__) + #include <inttypes.h> +#elif defined(__sparc__) #include <sys/inttypes.h> #elif defined(_WIN32) typedef unsigned __int64 uint64_t; 2) libmba-0.8.10 --- Makefile.orig Thu Mar 31 18:59:15 2005 +++ Makefile Thu Mar 31 19:00:59 2005 @@ -34,8 +34,12 @@ .include <bsd.port.pre.mk> -.if ${OSVERSION} < 500039 -IGNORE= requires wchar functions for compilation +#.if ${OSVERSION} < 500039 +#IGNORE= requires wchar functions for compilation +#.endif + +.if ${OSVERSION} < 500000 +USE_GCC= 3.4 .endif post-patch: --- work/libmba-0.8.10/src/text.c.orig Thu Mar 31 19:03:36 2005 +++ work/libmba-0.8.10/src/text.c Thu Mar 31 19:04:53 2005 @@ -22,6 +22,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include <sys/types.h> +#include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <stddef.h> --- work/libmba-0.8.10/src/mba/time.h.orig2 Fri Apr 1 18:35:28 2005 +++ work/libmba-0.8.10/src/mba/time.h Fri Apr 1 18:35:59 2005 @@ -20,7 +20,9 @@ #endif /* WIN32 */ #endif /* LIBMBA_API */ -#if defined(__sparc__) && ! (defined (__FreeBSD__)) +#if defined(__FreeBSD__) + #include <inttypes.h> +#elif defined(__sparc__) #include <sys/inttypes.h> #elif defined(_WIN32) #define MILLISECONDS_BETWEEN_1970_AND_1601 11644473600000Ui64 I hope this helps. // jau
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504011550.j31Fo8v1032384>