ports/98037: mpgtx compiled without largefile support

Michael Hohmuth hohmuth at sax.de
Sat May 27 23:04:39 UTC 2006


>Number:         98037
>Category:       ports
>Synopsis:       mpgtx compiled without largefile support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 27 22:50:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Michael Hohmuth
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD olymp.sax.de 4.11-STABLE FreeBSD 4.11-STABLE #31: Mon Apr 17 15:49:37 CEST 2006 root at olymp.sax.de:/usr/obj/usr/src/sys/OLYMP i386

>Description:
Due to errors in the configuration script and a header file, mpgtx is
compiled without largefile support on FreeBSD even though the
configure script correctly figures out that largefile support is
available on the system.  The result is that file offsets are
miscalculated and that mpgtx does not cope with files larger than 4
GB.

>How-To-Repeat:

% mpgtx -j -o /dev/null  /dos/rasenmmp.new "[101670912-622598144]"
Invalid range [101670912-622598144] : start greater than stop

>Fix:

Apply the following patch:

diff -ur work/mpgtx-1.3.1/common.hh work.hohmuth/mpgtx-1.3.1/common.hh
--- work/mpgtx-1.3.1/common.hh	Fri Dec 31 11:48:30 2004
+++ work.hohmuth/mpgtx-1.3.1/common.hh	Sat May 27 23:22:35 2006
@@ -208,7 +208,7 @@
 //@{
 
 #ifdef _LARGEFILE_SOURCE
-#ifdef _MACOSX
+#if defined (_MACOSX) || defined (__FreeBSD__)
 		#define   _OFF_d   "%qd"
 		#define   _OFF_x   "%qx"
 #else
diff -ur work/mpgtx-1.3.1/configure work.hohmuth/mpgtx-1.3.1/configure
--- work/mpgtx-1.3.1/configure	Sat May 27 23:27:43 2006
+++ work.hohmuth/mpgtx-1.3.1/configure	Sat May 27 23:22:35 2006
@@ -207,7 +207,7 @@
 
 if test $devel = "no" -a $debug = "no"; then
 lflags="$lflags -s";
-cflags="-O -pipe ";
+cflags+="-O -pipe ";
 fi
 
 
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list