problem building 2.2.6 on OSX 10.4.10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've got some problems building 2.2.6 on OSX 10.4.10. For some reason the build ends up with unmatched #if/endifs. What I did:

curl http://apache.mirror.iphh.net/httpd/httpd-2.2.6.tar.gz > httpd-2.2.6.tar.gz
tar xzvf httpd-2.2.6.tar.gz
cd httpd-2.2.6
./configure
make

...

gcc -E -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no- cpp-precomp -I/sw/include -I./include -I/Users/tcurdt/httpd-2.2.6/ srclib/apr/include/arch/unix -I./include/arch/unix -I/Users/tcurdt/ httpd-2.2.6/srclib/apr/include exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$/\1/' >> apr.exp
exports.c:192:2: error: #endif without #if
exports.c:381:2: error: #endif without #if
exports.c:583:2: error: #endif without #if

...

/bin/sh /Users/tcurdt/httpd-2.2.6/srclib/apr/libtool --silent -- mode=link gcc -I/sw/include -DHAVE_CONFIG_H -DDARWIN - DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/sw/include -I/Users/ tcurdt/httpd-2.2.6/srclib/apr-util/include -I/Users/tcurdt/ httpd-2.2.6/srclib/apr-util/include/private -I/Users/tcurdt/ httpd-2.2.6/srclib/apr/include -version-info 2:11:2 -L/sw/lib -o libaprutil-1.la -rpath /usr/local/apache2/lib buckets/apr_brigade.lo buckets/apr_buckets.lo buckets/apr_buckets_alloc.lo buckets/ apr_buckets_eos.lo buckets/apr_buckets_file.lo buckets/ apr_buckets_flush.lo buckets/apr_buckets_heap.lo buckets/ apr_buckets_mmap.lo buckets/apr_buckets_pipe.lo buckets/ apr_buckets_pool.lo buckets/apr_buckets_refcount.lo buckets/ apr_buckets_simple.lo buckets/apr_buckets_socket.lo crypto/apr_md4.lo crypto/apr_md5.lo crypto/apr_sha1.lo crypto/getuuid.lo crypto/uuid.lo dbm/apr_dbm.lo dbm/apr_dbm_berkeleydb.lo dbm/apr_dbm_gdbm.lo dbm/ apr_dbm_ndbm.lo dbm/apr_dbm_sdbm.lo dbm/sdbm/sdbm.lo dbm/sdbm/ sdbm_hash.lo dbm/sdbm/sdbm_lock.lo dbm/sdbm/sdbm_pair.lo encoding/ apr_base64.lo hooks/apr_hooks.lo ldap/apr_ldap_init.lo ldap/ apr_ldap_option.lo ldap/apr_ldap_url.lo misc/apr_date.lo misc/ apr_queue.lo misc/apr_reslist.lo misc/apr_rmm.lo misc/apu_version.lo uri/apr_uri.lo xml/apr_xml.lo strmatch/apr_strmatch.lo xlate/xlate.lo dbd/apr_dbd.lo dbd/apr_dbd_pgsql.lo dbd/apr_dbd_sqlite2.lo dbd/ apr_dbd_sqlite3.lo -lpthread -lsqlite3 -lexpat -liconv /Users/ tcurdt/httpd-2.2.6/srclib/apr/libapr-1.la -lpthread
ranlib: file: .libs/libaprutil-1.a(apr_dbm_berkeleydb.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbm_gdbm.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbm_ndbm.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_ldap_init.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_ldap_option.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_ldap_url.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbd_pgsql.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbd_sqlite2.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbm_berkeleydb.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbm_gdbm.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbm_ndbm.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_ldap_init.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_ldap_option.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_ldap_url.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbd_pgsql.o) has no symbols
ranlib: file: .libs/libaprutil-1.a(apr_dbd_sqlite2.o) has no symbols

...

gawk -f /Users/tcurdt/httpd-2.2.6/build/make_exports.awk `cat export_files` > exports.c /Users/tcurdt/httpd-2.2.6/srclib/apr/libtool --silent --mode=compile gcc -I/sw/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp- precomp -I/sw/include -I/Users/tcurdt/httpd-2.2.6/srclib/pcre -I. - I/Users/tcurdt/httpd-2.2.6/os/unix -I/Users/tcurdt/httpd-2.2.6/server/ mpm/prefork -I/Users/tcurdt/httpd-2.2.6/modules/http -I/Users/tcurdt/ httpd-2.2.6/modules/filters -I/Users/tcurdt/httpd-2.2.6/modules/proxy -I/Users/tcurdt/httpd-2.2.6/include -I/Users/tcurdt/httpd-2.2.6/ modules/generators -I/Users/tcurdt/httpd-2.2.6/modules/mappers -I/ Users/tcurdt/httpd-2.2.6/modules/database -I/Users/tcurdt/httpd-2.2.6/ srclib/apr/include -I/Users/tcurdt/httpd-2.2.6/srclib/apr-util/ include -I/Users/tcurdt/httpd-2.2.6/modules/proxy/../generators -I/ Users/tcurdt/httpd-2.2.6/modules/ssl -I/Users/tcurdt/httpd-2.2.6/ modules/dav/main -prefer-non-pic -static -c exports.c && touch exports.lo
exports.c:116:2: error: #endif without #if
make[2]: *** [exports.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

$ find . -name exports.c
./server/exports.c
./srclib/apr/exports.c
./srclib/apr-util/exports.c
$ grep -c "#if" server/exports.c
9
$ grep -c "#endif" server/exports.c
10
$ grep -c "#if" srclib/apr/exports.c
27
$ grep -c "#endif" srclib/apr/exports.c
30
$ grep -c "#if" srclib/apr-util/exports.c
11
$ grep -c "#endif" srclib/apr-util/exports.c
11

Is the awk script foobared? Something wrong with my build environment?

$ libtool -V
Apple Computer, Inc. version cctools-622.3

$ glibtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)

$ autoconf --version
autoconf (GNU Autoconf) 2.60

Any suggestion appreciated

cheers
--
Torsten

---------------------------------------------------------------------
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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux