Bug 33082 - audio/mxv fails to compile
Summary: audio/mxv fails to compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-22 07:40 UTC by Tod McQuillin
Modified: 2003-03-05 10:25 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod McQuillin 2001-12-22 07:40:00 UTC
	When attempting to build the audio/mxv port, the following
output is generated:

glass# pwd
/usr/ports/audio/mxv
glass# make
===>  Extracting for mxv-1.20

Fix: 

unknown
How-To-Repeat: 	cd /usr/ports/audio/mxv; make
Comment 1 Ulrich Spoerlein 2003-01-13 18:59:19 UTC
Here is an update to the current version, which is still broken because
builtin.h and String.h are missing from newer (2.9+ ??) g++ versions.

I doubt this can be easily fixed, but this patch makes the distfile
fetchable again, so perhaps you should commit this nevertheless...

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/mxv/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	10 Nov 2002 16:45:06 -0000	1.15
+++ Makefile	13 Jan 2003 18:46:53 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	mxv
-PORTVERSION=	1.20
+PORTVERSION=	1.24
 CATEGORIES=	audio
 MASTER_SITES=	ftp://ftp.create.ucsb.edu/pub/MixViews/source/
 DISTNAME=	${PORTNAME}-v${PORTVERSION}-source
@@ -15,7 +15,8 @@
 
 BROKEN=		"Does not build"
 
-BUILD_DEPENDS=	${LOCALBASE}/interviews/bin/FREEBSD/ivmkmf:${PORTSDIR}/x11-toolkits/iv
+BUILD_DEPENDS=	${LOCALBASE}/interviews/bin/FREEBSD/ivmkmf:${PORTSDIR}/x11-toolkits/iv \
+		${LOCALBASE}/include/f2c.h:${PORTSDIR}/lang/f2c
 
 NO_WRKSUBDIR=	yes
 USE_IMAKE=	yes
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/audio/mxv/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo	14 Feb 2000 21:02:59 -0000	1.2
+++ distinfo	13 Jan 2003 18:46:53 -0000
@@ -1 +1 @@
-MD5 (mxv-v1.20-source.tar.gz) = 742a7d49d5754853ab9dcacfae91c633
+MD5 (mxv-v1.24-source.tar.gz) = a58fbcea3b3804cd66f67eaf913ce76c
Index: files/patch-ai
===================================================================
RCS file: /home/ncvs/ports/audio/mxv/files/patch-ai,v
retrieving revision 1.2
diff -u -r1.2 patch-ai
--- files/patch-ai	14 Feb 2000 21:03:03 -0000	1.2
+++ files/patch-ai	13 Jan 2003 18:46:53 -0000
@@ -1,40 +1,14 @@
-*** old/vw_converter.C	Thu Jan 30 00:22:41 1997
---- vw_converter.C	Mon Jul 12 15:28:20 1999
-***************
-*** 27,33 ****
---- 27,37 ----
-  #pragma implementation
-  #endif
-  
-+ #ifdef __FreeBSD__
-+ #include <machine/soundcard.h>
-+ #else
-  #include <sys/soundcard.h>
-+ #endif
-  #include "localdefs.h"
-  #include "application.h"
-  #include "vw_converter.h"
-***************
-*** 114,122 ****
-  		fprintf(stderr, "setting frag size code to 0x%x\n", sizeCode);
-  #endif
-  
-  		if (!ioctl (SNDCTL_DSP_SETFRAGMENT, (char *) &sizeCode))
-  			error("Unable to set fragment size.");
-! 		else if (!ioctl(SNDCTL_DSP_SETFMT, (char *) &confirmedFormat))
-  			error("Unable to set sample format.");
-  		else if(confirmedFormat != sampleFormat)
-  			error("This sample format not supported by hardware.");
---- 118,129 ----
-  		fprintf(stderr, "setting frag size code to 0x%x\n", sizeCode);
-  #endif
-  
-+ #ifndef __FreeBSD__
-  		if (!ioctl (SNDCTL_DSP_SETFRAGMENT, (char *) &sizeCode))
-  			error("Unable to set fragment size.");
-! 		else 
-! #endif
-! 		if (!ioctl(SNDCTL_DSP_SETFMT, (char *) &confirmedFormat))
-  			error("Unable to set sample format.");
-  		else if(confirmedFormat != sampleFormat)
-  			error("This sample format not supported by hardware.");
+--- vw_converter.C.orig	Sun Feb 18 04:29:16 2001
++++ vw_converter.C	Mon Jan 13 16:09:13 2003
+@@ -36,7 +36,11 @@
+ #ifdef DEBUG_MIXER
+ #include <string.h>
+ #endif
++#ifdef __FreeBSD__
++#include <machine/soundcard.h>
++#else
+ #include <sys/soundcard.h>
++#endif
+ #include <String.h>
+ #include "localdefs.h"
+ #include "application.h"
Comment 2 Gerald Pfeifer freebsd_committer freebsd_triage 2003-01-16 13:16:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gerald

I'll have a look.
Comment 3 Gerald Pfeifer freebsd_committer freebsd_triage 2003-01-16 13:36:41 UTC
Responsible Changed
From-To: gerald->freebsd-ports-bugs

Thanks, Ulrich. Based on your patch to update to 1.24, I updated the port 
to 1.25. 

The two missing headers (builtin.h and String.h) came from libg++ which was 
deprecated and mostly unmaintained way before GCC 3.0; this problem probably 
needs to be fixed upstream.
Comment 4 Kris Kennaway freebsd_committer freebsd_triage 2003-03-05 10:25:14 UTC
State Changed
From-To: open->closed

The port was upgraded to a newer version, but still 
fails to build.  More patching is needed.