[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#618033: marked as done (texlive-bin-2009: Missing -D_FILE_OFFSET_BITS=64 leads to files not opening (x86 /32bit))



Your message dated Mon, 01 Aug 2011 21:34:43 +0000
with message-id <E1Qo08J-0004x0-1A@franck.debian.org>
and subject line Bug#618033: fixed in texlive-bin 2009-10
has caused the Debian Bug report #618033,
regarding texlive-bin-2009: Missing -D_FILE_OFFSET_BITS=64 leads to files not opening (x86 /32bit)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
618033: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618033
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: texlive-binaries
Version: 2009-8
Severity: normal

Dear all,

	thank you for all the effort putting a distriubtion together.

After upgrading to the lastly relased stable, I found that pdflatex would
not find (and therefore compile) the files given on the command line,
which were mounted by CIFS.

The error occurs in the kpathsea library (texk/kpathsea/readable.c), where the stat fails with the errno set to EOVERFLOW. It fails because the offset is to large. After I added manually -D_FILE_OFFSET_BITS=64 (following the stat 2 man page), kpathsea/pdflatex finds the file and compiles it happily. I added "a patch", which illustrates my hack to find and circumvent the problem.

Could that be that AC_SYS_LARGEFILE is missing in configure.ac while it is listed in common.ac.orig?

I am using
Linux 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41 UTC 2011 i686 GNU/Linux
and
libc6-i686     2.11.2-10

Happy to answer any further questions.

Sincerely yours
	Pierre Schnizer

--
+---------------------------------------------------------------------+
  Pierre Schnizer  <p.schnizer@gsi.de>

GSI Helmholtzzentrum fuer  Schwerionenforschung GmbH
Planckstrasse 1
D-64291 Darmstadt
www.gsi.de

Gesellschaft mit beschraenkter Haftung
Sitz der Gesellschaft: Darmstadt
Handelsregister: Amtsgericht Darmstadt, HRB 1528

Geschaeftsfuehrung: Professor Dr. Dr. h.c. Horst Stoecker, Dr. Hartmut Eickhoff
Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
Stellvertreter: Ministerialdirigent Dr. Rolf Bernhardt
+---------------------------------------------------------------------+
--- texlive-bin-2009/debian/rules	2011-03-12 21:23:52.000000000 +0100
+++ texlive-bin-2009-modified/debian/rules	2011-03-13 16:49:37.000000000 +0100
@@ -18,6 +18,15 @@
 ifneq (,$(filter $(DEB_BUILD_ARCH),$(GCC_44_ARCHES)))
     export CC=gcc-4.4
     export CXX=g++-4.4
+else
+    # This is a hack here. I used it to rebuild the binaries on x86/32bit and 
+    # check that the stat() call would then succeed in 
+    # texlive-bin-2009/texk/kpathsea/readable.c
+    # I guess that necessity for the flag should be detected by autconf/automake
+    # I am not familiar enough with the GNU buildchain to try that
+    # Pierre
+    export CC=gcc -D_FILE_OFFSET_BITS=64
+    export CXX=g++ -D_FILE_OFFSET_BITS=64
 endif
 
 ifneq (,$(filter $(DEB_BUILD_ARCH),$(RELAX_ARCHES)))
--- texlive-bin-2009/texk/kpathsea/readable.c	2009-03-16 16:13:07.000000000 +0100
+++ texlive-bin-2009-modified/texk/kpathsea/readable.c	2011-03-13 16:44:41.000000000 +0100
@@ -58,9 +58,51 @@
 		  !(st & FILE_ATTRIBUTE_DIRECTORY));
 }
 #else
+
+#if 0
+/*
+ * This function here has the same functionality as the macro below. It was
+ * used to identify that the file not found error was due to the return
+ * value of stat as soley interpreted as a non existing file.
+ */
+static int
+readdable(const char * fn, struct stat *st)
+{
+  int flag;
+
+  flag = access(fn, R_OK);
+  if(flag != 0){
+    fprintf(stderr, "%s:%d readdable: Failed on access for %s\n",
+	    __FILE__, __LINE__,  fn);
+    return 0;
+  }
+  flag = stat (fn, st);
+  if(flag != 0){
+    fprintf(stderr, "%s:%d  readdable: Failed on stat for %s with errno %d ? EOVERFLOW = %d\n",
+	    __FILE__, __LINE__,  fn, errno, EOVERFLOW);
+    perror("Stat failed:");
+    return 0;
+  }
+
+  flag = S_ISDIR (st->st_mode);
+  if (flag == 0){
+    fprintf(stderr, "%s:%d  file readdable %s\n",
+	    __FILE__, __LINE__,  fn);
+      return 1;
+  }
+
+  fprintf(stderr, "%s:%d  readdable: Failed on stat for %s\n",
+	  __FILE__, __LINE__,  fn);
+  return 0;
+
+}
+#define  READABLE(fn, st) readdable(fn, &(st))
+#else
 #define READABLE(fn, st) \
   (access (fn, R_OK) == 0 && stat (fn, &(st)) == 0 && !S_ISDIR (st.st_mode))
 #endif
+#endif
+
 
 /* POSIX invented the brain-damage of not necessarily truncating
    filename components; the system's behavior is defined by the value of

--- End Message ---
--- Begin Message ---
Source: texlive-bin
Source-Version: 2009-10

We believe that the bug you reported is fixed in the latest version of
texlive-bin, which is due to be installed in the Debian FTP archive:

libkpathsea-dev_2009-10_i386.deb
  to main/t/texlive-bin/libkpathsea-dev_2009-10_i386.deb
libkpathsea5_2009-10_i386.deb
  to main/t/texlive-bin/libkpathsea5_2009-10_i386.deb
texlive-bin_2009-10.diff.gz
  to main/t/texlive-bin/texlive-bin_2009-10.diff.gz
texlive-bin_2009-10.dsc
  to main/t/texlive-bin/texlive-bin_2009-10.dsc
texlive-binaries_2009-10_i386.deb
  to main/t/texlive-bin/texlive-binaries_2009-10_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 618033@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Frank Küster <frank@debian.org> (supplier of updated texlive-bin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 28 Jul 2011 21:54:49 +0200
Source: texlive-bin
Binary: texlive-binaries libkpathsea5 libkpathsea-dev
Architecture: source i386
Version: 2009-10
Distribution: unstable
Urgency: low
Maintainer: Debian TeX Maintainers <debian-tex-maint@lists.debian.org>
Changed-By: Frank Küster <frank@debian.org>
Description: 
 libkpathsea-dev - TeX Live: path search library for TeX (development part)
 libkpathsea5 - TeX Live: path search library for TeX (runtime part)
 texlive-binaries - Binaries for TeX Live
Closes: 136051 593782 614257 618033
Changes: 
 texlive-bin (2009-10) unstable; urgency=low
 .
   [ Hilmar Preusse ]
   * xdvik compilation error with glibc-2.10 and gcc-4.4:
     xdvik-22.84.16-open-mode.patch (Closes: #614257)
   * comment the --disable-largefile switch in upstream build script
     (partial_lfs_support.diff). This hopefully (Closes: #618033). dvips
     still can't write files > 2GB (see #383781).
   * we can use gcc-4.5 on armel too
 .
   [ Frank Küster ]
   * Indicate in the description that this package needs a real TeX package
     to function, and add a Recommends on texlive-base (closes: #593782)
   * Make various upstream-provided scripts "set -e".  This closes: #136051
     and is needed by the planned papersize patch to texconfig.
   * The binaries pdftex, dvips, xdvi and dvipdfmx now respect the
     system-wide paper setting as their default if there is no papersize
     information in the input file (see #49149).  It is still highly
     recommended to specify such information explicitly, e.g. using
     hyperref.sty with LaTeX.
Checksums-Sha1: 
 05a821fab11c05eee03d68712231e94008cbfe31 1391 texlive-bin_2009-10.dsc
 400d173f5bbcece9c91c2683322513b20f7b9632 91107 texlive-bin_2009-10.diff.gz
 de626f870a5f6f7e990afbe9038dc8ff10c2bc4a 7684754 texlive-binaries_2009-10_i386.deb
 8d5ff314a96f2166bac0b0ab8eda6bb74be8f475 134884 libkpathsea5_2009-10_i386.deb
 b22df29ac07f67c50191b8f49109c757643518a4 173934 libkpathsea-dev_2009-10_i386.deb
Checksums-Sha256: 
 90da4f31a16f179548e156d092776c7ef81c8b53988eb304d4d6be3049d2e1f2 1391 texlive-bin_2009-10.dsc
 82833e243935392f18eaebcbcd557eb1a64ea36703fa489b8d2366ae5db911c0 91107 texlive-bin_2009-10.diff.gz
 39a7c954f4890a38406c69813c0fed1052c333bf9aab01f93614dedc3849f46d 7684754 texlive-binaries_2009-10_i386.deb
 149fc450be78e4f8780db604c6be87d05371cb1f2f3ce6e9ad8a2380fe359a5d 134884 libkpathsea5_2009-10_i386.deb
 3147d3d04c4416f429054bb0826545d18afecc5a553fa7b43ead44bc1a4fc5cb 173934 libkpathsea-dev_2009-10_i386.deb
Files: 
 1fb5cb3c43dbc0f71a92bc48f6fc519c 1391 tex optional texlive-bin_2009-10.dsc
 3f4fc7e694afdff5a29b724882b9a958 91107 tex optional texlive-bin_2009-10.diff.gz
 809c32c470792626e4eead3c55054d3e 7684754 tex optional texlive-binaries_2009-10_i386.deb
 a3efa4e46ee5d4b5e0eda294f08eec65 134884 libs optional libkpathsea5_2009-10_i386.deb
 b7e09c806be66f80b5117a949511843b 173934 libdevel optional libkpathsea-dev_2009-10_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk43F3cACgkQ+xs9YyJS+hqk2ACeMuvBswqGTp+werbUJtDCaJDJ
7GEAoIRz4v8sBEG6ud0odYqTD7qrz8bt
=WDre
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: