OSX Tiger, Apache 2.2 and MAKE errors omarshariffdontlikeit
From: omarshariffdontlikeit@xxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
Subject: OSX Tiger, Apache 2.2 and MAKE errors
Date: Thu, 13 Mar 2008 13:55:57 +0100 (CET)
Hi Everyone,
I've just tried to build the mod-xslt2 files and hit a bit of a snag:
configure went fine but make spat out a shed load of error messages. Can
anyone help me fix this? I must confess that I am a bit of a newb to
compiling and make, etc; so please be patient with me (although I have
managed to compile and successfully build and run Apache 2.2, mod_python,
python, libxml and libxslt all by myself! Weee!)
Here is the output from make (sorry it's so long):
BenMac:~/desktop/modxslt-2004112100/build bendavies$ make
make -C lib all
make -C parser all
/bin/sh ../..//libtool --mode=compile gcc -I/usr/include/libxml2
-I/usr/include/libxml2 -I/usr/local/include -g -O2 -D_REENTRANT
-I../../../lib/parser -I../..//lib -DYYPARSE_PARAM=scanner
-DYYLEX_PARAM=scanner -c ../../../lib/parser/modxslt-screen-expr.parser.c
mkdir .libs
gcc -I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include -g
-O2 -D_REENTRANT -I../../../lib/parser -I../..//lib -DYYPARSE_PARAM=scanner
-DYYLEX_PARAM=scanner -c ../../../lib/parser/modxslt-screen-expr.parser.c
-fno-common -DPIC -o .libs/modxslt-screen-expr.parser.o
gcc -I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include -g
-O2 -D_REENTRANT -I../../../lib/parser -I../..//lib -DYYPARSE_PARAM=scanner
-DYYLEX_PARAM=scanner -c ../../../lib/parser/modxslt-screen-expr.parser.c -o
modxslt-screen-expr.parser.o >/dev/null 2>&1
/bin/sh ../..//libtool --mode=compile gcc -I/usr/include/libxml2
-I/usr/include/libxml2 -I/usr/local/include -g -O2 -D_REENTRANT
-I../../../lib/parser -I../..//lib -DYYPARSE_PARAM=scanner
-DYYLEX_PARAM=scanner -c ../../../lib/parser/modxslt-screen-expr.lexer.c
gcc -I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include -g
-O2 -D_REENTRANT -I../../../lib/parser -I../..//lib -DYYPARSE_PARAM=scanner
-DYYLEX_PARAM=scanner -c ../../../lib/parser/modxslt-screen-expr.lexer.c
-fno-common -DPIC -o .libs/modxslt-screen-expr.lexer.o
gcc -I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include -g
-O2 -D_REENTRANT -I../../../lib/parser -I../..//lib -DYYPARSE_PARAM=scanner
-DYYLEX_PARAM=scanner -c ../../../lib/parser/modxslt-screen-expr.lexer.c -o
modxslt-screen-expr.lexer.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-io.c
mkdir .libs
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-io.c
-fno-common -DPIC -o .libs/modxslt-io.o
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-io.c -o
modxslt-io.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-table.c
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-table.c
-fno-common -DPIC -o .libs/modxslt-table.o
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-table.c -o
modxslt-table.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-url.c
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-url.c
-fno-common -DPIC -o .libs/modxslt-url.o
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-url.c -o
modxslt-url.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-memory.c
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-memory.c
-fno-common -DPIC -o .libs/modxslt-memory.o
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-memory.c -o
modxslt-memory.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-opr-bool.c
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-opr-bool.c
-fno-common -DPIC -o .libs/modxslt-opr-bool.o
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-opr-bool.c -o
modxslt-opr-bool.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-opr-cmp.c
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-opr-cmp.c
-fno-common -DPIC -o .libs/modxslt-opr-cmp.o
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-opr-cmp.c -o
modxslt-opr-cmp.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-doc.c
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-doc.c
-fno-common -DPIC -o .libs/modxslt-doc.o
../../lib/modxslt-doc.c: In function 'mxslt_get_static_attr':
../../lib/modxslt-doc.c:170: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-doc.c:181: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-doc.c:201: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-doc.c:211: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-doc.c: In function 'mxslt_set_static_attr':
../../lib/modxslt-doc.c:263: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-doc.c:277: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-doc.c:297: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-doc.c:310: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-doc.c: In function 'mxslt_doc_parse_stylesheet':
../../lib/modxslt-doc.c:979: warning: comparison is always true due to
limited range of data type
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-doc.c -o
modxslt-doc.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-libxml.c
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-libxml.c
-fno-common -DPIC -o .libs/modxslt-libxml.o
../../lib/modxslt-libxml.c: In function 'mxslt_sax_processing_instruction':
../../lib/modxslt-libxml.c:197: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-libxml.c:205: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-libxml.c:359: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-libxml.c:367: warning: comparison is always true due to
limited range of data type
../../lib/modxslt-libxml.c: In function 'mxslt_sax_resolve_entity':
../../lib/modxslt-libxml.c:473: warning: pointer targets in passing argument
1 of 'xmlBuildURI' differ in signedness
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-libxml.c -o
modxslt-libxml.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=compile gcc -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include
-I../../lib -I..//lib -c ../../lib/modxslt-table-algo.c
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-table-algo.c
-fno-common -DPIC -o .libs/modxslt-table-algo.o
gcc -g -O2 -D_REENTRANT -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/local/include -I../../lib -I..//lib -c ../../lib/modxslt-table-algo.c
-o modxslt-table-algo.o >/dev/null 2>&1
/bin/sh ..//libtool --mode=link gcc -o libmodxslt0.la -rpath /usr/local/lib \
-version-info 0:0:0 -L/usr/lib -lxslt -lxml2 -lz -lpthread -liconv
-lm -L/usr/local/lib -lpcre -lpthread \
modxslt-io.lo modxslt-table.lo modxslt-table-algo.lo modxslt-url.lo
modxslt-memory.lo \
modxslt-opr-bool.lo modxslt-opr-cmp.lo modxslt-doc.lo
modxslt-libxml.lo \
parser/modxslt-screen-expr.lexer.lo
parser/modxslt-screen-expr.parser.lo
gcc -dynamiclib -flat_namespace -undefined suppress -o
.libs/libmodxslt0.0.0.0.dylib .libs/modxslt-io.o .libs/modxslt-table.o
.libs/modxslt-table-algo.o .libs/modxslt-url.o .libs/modxslt-memory.o
.libs/modxslt-opr-bool.o .libs/modxslt-opr-cmp.o .libs/modxslt-doc.o
.libs/modxslt-libxml.o parser/.libs/modxslt-screen-expr.lexer.o
parser/.libs/modxslt-screen-expr.parser.o -L/usr/lib /usr/lib/libxslt.dylib
/usr/lib/libz.dylib /usr/lib/libpthread.dylib /usr/lib/libm.dylib
/usr/lib/libxml2.dylib -lz /usr/lib/libiconv.dylib -lm -L/usr/local/lib
/usr/local/lib/libpcre.dylib -lpthread -install_name
/usr/local/lib/libmodxslt0.0.dylib -compatibility_version 1 -current_version
1.0
(cd .libs && rm -f libmodxslt0.0.dylib && ln -s libmodxslt0.0.0.0.dylib
libmodxslt0.0.dylib)
(cd .libs && rm -f libmodxslt0.dylib && ln -s libmodxslt0.0.0.0.dylib
libmodxslt0.dylib)
ar cru .libs/libmodxslt0.a modxslt-io.o modxslt-table.o modxslt-table-algo.o
modxslt-url.o modxslt-memory.o modxslt-opr-bool.o modxslt-opr-cmp.o
modxslt-doc.o modxslt-libxml.o parser/modxslt-screen-expr.lexer.o
parser/modxslt-screen-expr.parser.o
ranlib .libs/libmodxslt0.a
creating libmodxslt0.la
(cd .libs && rm -f libmodxslt0.la && ln -s ../libmodxslt0.la libmodxslt0.la)
make -C sapi/apache2 all
/bin/sh ../..//libtool --mode=compile gcc -g -O2 -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT -I../lib/expat-lite -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI
-DSHARED_MODULE -g -O2 -D_REENTRANT -I/usr/include/libxml2
-I/usr/include/libxml2 -I/usr/local/include -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/usr/local/include/apr-0
-I/usr/local/include/apr-0 -I/usr/include/httpd -I../../../lib -I../..//lib
-c ../../../sapi/apache2/modxslt.c
mkdir .libs
gcc -g -O2 -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -Os
-pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -DSHARED_MODULE -g -O2 -D_REENTRANT
-I/usr/include/libxml2 -I/usr/include/libxml2 -I/usr/local/include -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/usr/local/include/apr-0
-I/usr/local/include/apr-0 -I/usr/include/httpd -I../../../lib -I../..//lib
-c ../../../sapi/apache2/modxslt.c -fno-common -DPIC -o .libs/modxslt.o
In file included from /usr/include/httpd/ap_config.h:1129,
from ../../../sapi/apache2/modxslt-ap2.h:31,
from ../../../sapi/apache2/modxslt.c:22:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern" redefined
In file included from ../../../sapi/apache2/modxslt-ap2.h:31,
from ../../../sapi/apache2/modxslt.c:22:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of the
previous definition
In file included from ../../../sapi/apache2/modxslt.c:22:
../../../sapi/apache2/modxslt-ap2.h:32:24: error: ap_listen.h: No such file
or directory
../../../sapi/apache2/modxslt-ap2.h:37:26: error: util_filter.h: No such file
or directory
In file included from ../../../lib/modxslt0/modxslt.h:31,
from ../../../sapi/apache2/modxslt-ap2.h:44,
from ../../../sapi/apache2/modxslt.c:22:
../..//lib/modxslt0/modxslt-system.h:62:1: warning: "HAVE_MMAP" redefined
In file included from ../../../sapi/apache2/modxslt-ap2.h:31,
from ../../../sapi/apache2/modxslt.c:22:
/usr/include/httpd/ap_config.h:404:1: warning: this is the location of the
previous definition
In file included from ../../../sapi/apache2/modxslt.c:22:
../../../sapi/apache2/modxslt-ap2.h:57: error: parse error before '*' token
../../../sapi/apache2/modxslt-ap2.h:57: warning: data definition has no type
or storage class
../../../sapi/apache2/modxslt-ap2.h:59: error: parse error before '*' token
../../../sapi/apache2/modxslt-ap2.h:59: warning: data definition has no type
or storage class
../../../sapi/apache2/modxslt-ap2.h:60: error: parse error before '*' token
../../../sapi/apache2/modxslt-ap2.h:60: warning: data definition has no type
or storage class
../../../sapi/apache2/modxslt-ap2.h:95: error: parse error before '*' token
../../../sapi/apache2/modxslt.c:25: error: parse error before '*' token
../../../sapi/apache2/modxslt.c:25: warning: data definition has no type or
storage class
../../../sapi/apache2/modxslt.c:26: error: parse error before '*' token
../../../sapi/apache2/modxslt.c:26: warning: data definition has no type or
storage class
../../../sapi/apache2/modxslt.c:27: error: parse error before '*' token
../../../sapi/apache2/modxslt.c:27: warning: data definition has no type or
storage class
../../../sapi/apache2/modxslt.c:36: error: parse error before 'mxslt_module'
../../../sapi/apache2/modxslt.c:36: warning: data definition has no type or
storage class
../../../sapi/apache2/modxslt.c: In function 'mxslt_ap2_outputter':
../../../sapi/apache2/modxslt.c:78: warning: passing argument 1 of
'apr_pvsprintf' from incompatible pointer type
../../../sapi/apache2/modxslt.c:81: warning: passing argument 5 of
'ap_log_rerror' from incompatible pointer type
../../../sapi/apache2/modxslt.c: At top level:
../../../sapi/apache2/modxslt.c:128: error: parse error before '*' token
../../../sapi/apache2/modxslt.c: In function 'mxslt_ap2_in_filter':
../../../sapi/apache2/modxslt.c:129: error: 'f' undeclared (first use in this
function)
../../../sapi/apache2/modxslt.c:129: error: (Each undeclared identifier is
reported only once
../../../sapi/apache2/modxslt.c:129: error: for each function it appears in.)
../../../sapi/apache2/modxslt.c: At top level:
../../../sapi/apache2/modxslt.c:133: error: parse error before '*' token
../../../sapi/apache2/modxslt.c: In function 'mxslt_ap2_out_filter':
../../../sapi/apache2/modxslt.c:134: error: 'f' undeclared (first use in this
function)
../../../sapi/apache2/modxslt.c:134: error: request for member 'module_index'
in something not a structure or union
../../../sapi/apache2/modxslt.c:143: error: 'brigade' undeclared (first use
in this function)
../../../sapi/apache2/modxslt.c: In function 'mxslt_register_hooks':
../../../sapi/apache2/modxslt.c:545: warning: passing argument 1 of
'ap_add_version_component' from incompatible pointer type
../../../sapi/apache2/modxslt.c:545: error: too many arguments to function
'ap_add_version_component'
../../../sapi/apache2/modxslt.c:595: error: 'APLOG_STARTUP' undeclared (first
use in this function)
../../../sapi/apache2/modxslt.c:602: error: 'AP_FTYPE_RESOURCE' undeclared
(first use in this function)
../../../sapi/apache2/modxslt.c: At top level:
../../../sapi/apache2/modxslt.c:709: error: initializer element is not
constant
../../../sapi/apache2/modxslt.c:709: error: (near initialization for
'mxslt_cmds[0].name')
../../../sapi/apache2/modxslt.c:711: error: initializer element is not
constant
../../../sapi/apache2/modxslt.c:711: error: (near initialization for
'mxslt_cmds[0].func')
../../../sapi/apache2/modxslt.c:713: error: initializer element is not
constant
../../../sapi/apache2/modxslt.c:713: error: (near initialization for
'mxslt_cmds[0].cmd_data')
../../../sapi/apache2/modxslt.c:715: error: initializer element is not
constant
../../../sapi/apache2/modxslt.c:715: error: (near initialization for
'mxslt_cmds[0].req_override')
../../../sapi/apache2/modxslt.c:717: error: initializer element is not
constant
../../../sapi/apache2/modxslt.c:717: error: (near initialization for
'mxslt_cmds[0].args_how')
../../../sapi/apache2/modxslt.c:719: error: initializer element is not
constant
../../../sapi/apache2/modxslt.c:719: error: (near initialization for
'mxslt_cmds[0].errmsg')
../../../sapi/apache2/modxslt.c:721: error: initializer element is not
constant
../../../sapi/apache2/modxslt.c:721: error: (near initialization for
'mxslt_cmds[1].name')
../../../sapi/apache2/modxslt.c:722: warning: braces around scalar initializer
../../../sapi/apache2/modxslt.c:722: warning: (near initialization for
'mxslt_cmds[1].func')
../../../sapi/apache2/modxslt.c:726: error: parse error before 'mxslt_module'
../../../sapi/apache2/modxslt.c:727: error: 'STANDARD20_MODULE_STUFF'
undeclared here (not in a function)
../../../sapi/apache2/modxslt.c:728: warning: excess elements in scalar
initializer
../../../sapi/apache2/modxslt.c:728: warning: (near initialization for
'mxslt_module')
../../../sapi/apache2/modxslt.c:729: warning: excess elements in scalar
initializer
../../../sapi/apache2/modxslt.c:729: warning: (near initialization for
'mxslt_module')
../../../sapi/apache2/modxslt.c:730: warning: excess elements in scalar
initializer
../../../sapi/apache2/modxslt.c:730: warning: (near initialization for
'mxslt_module')
../../../sapi/apache2/modxslt.c:731: warning: excess elements in scalar
initializer
../../../sapi/apache2/modxslt.c:731: warning: (near initialization for
'mxslt_module')
../../../sapi/apache2/modxslt.c:732: warning: excess elements in scalar
initializer
../../../sapi/apache2/modxslt.c:732: warning: (near initialization for
'mxslt_module')
../../../sapi/apache2/modxslt.c:734: warning: excess elements in scalar
initializer
../../../sapi/apache2/modxslt.c:734: warning: (near initialization for
'mxslt_module')
../../../sapi/apache2/modxslt.c:734: warning: data definition has no type or
storage class
make[1]: *** [modxslt.lo] Error 1
make: *** [sapi] Error 2