You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Slight configure problem when --enable-largefile on OSX/Darwin #2260
Darwin SciFiG5.homeip.net 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc PowerMac7,3 Darwin
Using CUPS SVN-r6307 as I write this, but it's been doing this for many many months it seems.
I have --enable-largefile in my configure parms. The configure script has been giving errors for the largefile tests, "unary operator expected". Turns out the vars being tested are empty or undefined, since OSX/Darwin has such support already built-in AIU.
Just to get around this, I whipped up a patch:
--- config-scripts/cups-largefile.m4_orig 2006-11-16 05:18:44 -0600
+++ config-scripts/cups-largefile.m4 2007-02-23 13:56:15 -0600
@@ -30,11 +30,11 @@
if test x$enable_largefile != xno; then
LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
if test $ac_cv_sys_large_files = 1; then
if test x$ac_cv_sys_large_files = x1; then
LARGEFILE="$LARGEFILE -D_LARGE_FILES"
fi
if test $ac_cv_sys_file_offset_bits = 64; then
if test x$ac_cv_sys_file_offset_bits = x64; then
LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
fi
fi
<<<<
We still don't get the extra -D's for OSX/Darwin (only the first ones, do we need the others?), but it keeps configure from complaining. ;)
fwiw I've been staying current with self-built GNU coreutils-6.7, make-3.81, automake-1.10, autoconf-2.61a, and tons of other libs (usually installed in /usr/local and overriding Apple's provided tools via PATH etc.). Yes I run "make distclean" and "autoconf -f" after every "svn update". ;)
Activity
michaelrsweet commentedon Mar 12, 2007
CUPS.org User: mike
Fixed in Subversion repository.
I suspect this is just an issue with the newer tools, but the change should not have any side-effects on other platforms that work as expected...
michaelrsweet commentedon Mar 12, 2007
"cups-largefile-m4.patch":
--- cups-largefile.m4_orig 2006-11-16 05:18:44 -0600
+++ cups-largefile.m4 2007-02-23 13:56:15 -0600
@@ -30,11 +30,11 @@
if test x$enable_largefile != xno; then
LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
LARGEFILE="$LARGEFILE -D_LARGE_FILES"
fi
LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
fi
fi