On 4/18/07, Tim Kientzle <[EMAIL PROTECTED]> wrote:
Thibaut VARENE wrote:
> I'm the author and maintainer of libapache-mod-musicindex. Recently a
> bug has been reported to me, by which the tarball download implemented
> in mod-musicindex wouldn't work properly with apache2, while it did work
> with apache1.3
> Note the use of __xstat64/fopen64 for the working code instead of
> __xstat/fopen for the non-working code.
Linux has two "struct stat" definitions, and code compiled
with one cannot be used with the other. Libarchive always
compiles with the 64-bit version so it can correctly handle
very large archives. If your code is compiled to use the
32-bit version, it won't work.
Apparently, httpd.h is somehow forcing your code to use the
32-bit stat, which is incompatible with libarchive.
Actually it's the exactly the opposite: I get the 32bit version if I
/don't/ include httpd.h. Put another way, libarchive just doesn't work
at all /unless/ I include httpd.h from apache-1.3. The "normal"
(default) code /doesn't/ work.
httpd.h from apache2 doesn't exhibit this behaviour which is why the
code doesn't work with apache2.
Hence me saying that's a libarchive bug...
--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]