drogus/apache-upload-progress-module — Issue #31: Problem Compiling on OSX Lion
Author: krisdigital
Created: 2011-12-13 01:05:22+00:00
State: open

Hi

i cannot get it compiled using the command

sudo apxs -c -i -Wc,-arch -Wc,ppc7400 -Wl,-arch -Wl,ppc7400 -Wc,-arch -Wc,ppc64 -Wl,-arch -Wl,ppc64 -Wc,-arch -Wc,x86_64 -Wl,-arch -Wl,x86_64 -Wc,-arch -Wc,i386 -Wl,-arch -Wl,i386 mod_upload_progress.c

I am getting this output, no idea what it could mean:

/usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -arch ppc7400 -arch ppc64 -arch x86_64 -arch i386 -c -o mod_upload_progress.lo mod_upload_progress.c && touch mod_upload_progress.slo
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
mod_upload_progress.c: In function ‘upload_progress_handle_request’:
mod_upload_progress.c:199: warning: format ‘%ld’ expects type ‘long int *’, but argument 3 has type ‘apr_off_t *’
mod_upload_progress.c:199: warning: format ‘%ld’ expects type ‘long int *’, but argument 3 has type ‘apr_off_t *’
mod_upload_progress.c: In function ‘reportuploads_handler’:
mod_upload_progress.c:711: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘apr_off_t’
mod_upload_progress.c:711: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘apr_off_t’
mod_upload_progress.c:726: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘apr_off_t’
mod_upload_progress.c:726: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘apr_off_t’
mod_upload_progress.c:726: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘apr_off_t’
lipo: can't figure out the architecture type of: /var/tmp//cctKkmjS.out
apxs:Error: Command failed with rc=65536

Anybody knows the problem?

Thanks!