Package: libstlport5.0 Version: 5.0.2-6 Severity: wishlist Tags: patch Hi,
OOo now does -D_FILE_OFFSET_BITS=64. This doesn't work with the STLport5
currently in the archive (build fails).
Please build STLport5 with -DFILE_OFFSET_BITS=64. I am attaching a patch
which works for me and OOo on ppc. [ I'll work around it for now and use
--disable-largefile.... ]
Patch:
--- stlport5-5.0.2.orig/build/lib/gcc.mak
+++ stlport5-5.0.2/build/lib/gcc.mak
@@ -8,7 +8,7 @@
include ${SRCROOT}/Makefiles/top.mak
ifeq ($(OSNAME),linux)
-DEFS += -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE
+DEFS += -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
endif
# options for build with boost support
only in patch2:
unchanged:
--- stlport5-5.0.2.orig/build/test/unit/gcc.mak
+++ stlport5-5.0.2/build/test/unit/gcc.mak
@@ -9,6 +9,9 @@
include ${SRCROOT}/Makefiles/top.mak
DEFS += -D_STLP_NO_CUSTOM_IO
+ifeq ($(OSNAME), linux)
+DEFS += -D_FILE_OFFSET_BITS=64
+endif
dbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED
stldbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED
But maybe it should be made conditional for !amd64, though. At my OOo build on
amd64 it gets given -D_FILE_OFFSET_BITS=no.
Regards,
Rene
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-powerpc
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages libstlport5.0 depends on:
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-13 GCC support library
libstlport5.0 recommends no packages.
-- no debconf information
signature.asc
Description: Digital signature

