Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2006 11:22:05 +0200 (CEST)
From:      Sven Berkvens-Matthijsse <sven@ilse.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/100768: [PATCH] Ports audio/libofa can build on FreeBSD 4.x
Message-ID:  <200607240922.k6O9M5wZ080272@serv7.ilse.net>
Resent-Message-ID: <200607240930.k6O9UGCt003503@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         100768
>Category:       ports
>Synopsis:       [PATCH] Ports audio/libofa can build on FreeBSD 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 24 09:30:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Sven Berkvens-Matthijsse
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
ilse media BV
>Environment:
System: FreeBSD serv7.ilse.net 4.11-STABLE FreeBSD 4.11-STABLE #0: Mon May 22 17:02:01 CEST 2006 root@serv7.ilse.net:/extra1/usr_obj/extra1/usr_src/sys/BAROQUE i386


	
>Description:
	The port audio/libofa can, with very minimal patches, work fine on
	FreeBSD 4.x. Currently, it is disabled for FreeBSD 4.x.
>How-To-Repeat:
	Try to install on FreeBSD 4.x.
>Fix:
	Install the following patchfiles to work around the problem. Then,
	remove the FreeBSD 4.x disabler in the Makefile.

============== files/patch-examples::examples.cpp ====================

--- examples/example.cpp.orig	Mon Jul 24 11:09:39 2006
+++ examples/example.cpp	Mon Jul 24 11:09:50 2006
@@ -7,6 +7,8 @@
 
 -------------------------------------------------------------------*/
 
+#include <stdio.h>
+
 #include "protocol.h"
 
 AudioData* loadWaveFile(char *file);

============== files/patch-examples::uselame.cpp ====================

--- examples/uselame.cpp.orig	Mon Jul 24 11:11:58 2006
+++ examples/uselame.cpp	Mon Jul 24 11:12:09 2006
@@ -13,6 +13,8 @@
 #include <sys/wait.h>
 #endif
 
+#include <unistd.h>
+
 AudioData *loadWaveFile(char *file);
 
 //	loadDataUsingLAME

============== files/patch-examples::wavefile.cpp ====================

--- examples/wavefile.cpp.orig	Mon Jul 24 11:13:26 2006
+++ examples/wavefile.cpp	Mon Jul 24 11:13:05 2006
@@ -11,6 +11,7 @@
 #include "io.h"
 #endif
 #include <fcntl.h>
+#include <unistd.h>
 
 static bool readBytes(int fd, unsigned char *buf, int size) {
     int ct = 0;
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607240922.k6O9M5wZ080272>