On Wed, Nov 9, 2011 at 1:07 PM, Asaf Dalet <asaf.dalet@xxxxxxxxx> wrote: > Hi everyone, > i have a problem which is bugging me for a couple of days now: > > i have a module written for apache 2.2.x and compiled as 32-bit on solaris 9 > SPARC 64-bit. > i have a precompiled apache core on a different solaris 9 (also 64-bit). > > the problem: sizeof(request_rec) in the module <> sizeof(request_rec) in the > precompiled apache core. > > my suspicion is that sizeof(apr_off_t) is different between the binaries. My > module has it as 8 bytes and the apache core has it as 4 bytes. > > two questions: > 1. how can this be? can i compile apache to use 4 bytes apr_off_t on a 64 > bit solaris? Is this the issue? Solaris-bundled Apache httpd 2.0 was built with LFS after a certain patch some years ago, but regular Apache httpd 2.0 builds are not. Thus, your module must be built specifically for Solaris-bundled httpd or for standard builds of httpd. > 2. is it possible to force the compiler to compile my module with 4 bytes > apr_off_t? Use Solaris-bundled Apache httpd's apxs. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx