Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2006 00:34:44 +0200 (CEST)
From:      Michael Hohmuth <hohmuth@sax.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/98037: mpgtx compiled without largefile support
Message-ID:  <200605272234.k4RMYiAO005716@olymp.sax.de>
Resent-Message-ID: <200605272250.k4RMoFjM071094@freefall.freebsd.org>

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

>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@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:



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