bug-autoconf
[Top][All Lists]
Advanced

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

cpp related bug ?


From: Jens Elkner
Subject: cpp related bug ?
Date: Tue, 6 May 2003 04:09:27 +0200 (MEST)

Hi,

I guess, there is a bug in autoconf which results in an error wrt. cpp check:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
...
checking gdbm.h usability... yes
checking gdbm.h presence... no
configure: WARNING: gdbm.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: gdbm.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to address@hidden ##
configure: WARNING:     ## ------------------------------------ ##
checking for gdbm.h... no
...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

log says:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
configure:7350: checking gdbm.h usability
configure:7363: cc -c -I/home/elkner/tmp/build/root4build/usr/include  
conftest.c >&5
configure:7366: $? = 0
configure:7369: test -s conftest.o
configure:7372: $? = 0
configure:7382: result: yes
configure:7386: checking gdbm.h presence
configure:7397: cc -E  conftest.c
"configure", line 7405: cannot find include file: <gdbm.h>
cc: acomp failed for conftest.c
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

So include flags are used, when testing the compile result, but not
when testing the preprocessor :(


Environment details:
--------------------
Solaris 8
Sun Workshop 6
autoconf (GNU Autoconf) 2.57
automake (GNU automake) 1.7.4

Example Apache 2.0.45 (copy paste from the build script):
---------------------------------------------------------
        cd $TMPBUILD
        export LDFLAGS="-L${ROOT4BUILD}/usr/lib -lpthread"
        export CFLAGS="-I${ROOT4BUILD}/usr/include"
        # for the crazy apr-utl stuff - LDFLAGS are not propagated
        export LD_LIBRARY_PATH="${ROOT4BUILD}/usr/lib"

        # check http://httpd.apache.org/docs-2.0/mod/ for modules

        ./configure --prefix=$PROTO/opt/www \
        --with-z=${ROOT4BUILD}/usr \
        --with-ssl=${ROOT4BUILD}/opt/openssl \
        --with-mpm=worker \
        --enable-module=so \
        \
        --enable-access=shared \
        --enable-actions=shared \
        --enable-alias=shared \
        --enable-asis=shared \
        --enable-auth=shared \
        --enable-auth_anon=shared \
        --enable-auth_dbm=shared \
        --enable-auth_digest=shared \
        --enable-autoindex=shared \
        --enable-cache=shared \
        --enable-cern_meta=shared \
        --enable-cgi=shared \
        --enable-cgid=shared \
        --enable-dav=shared \
        --enable-deflate=shared \
        --enable-dir=shared \
        --enable-disk_cache=shared \
        --enable-echo=shared \
        --enable-env=shared \
        --enable-expires=shared \
        --enable-file_cache=shared \
        --enable-headers=shared \
        --enable-imap=shared \
        --enable-include=shared \
        --enable-info=shared \
        --enable-log_config=shared \
        --enable-mem_cache=shared \
        --enable-mime=shared \
        --enable-mime_magic=shared \
        --enable-negotiation=shared \
        \
        --enable-rewrite=shared \
        --enable-setenvif=shared \
        --enable-ssl=shared \
        --enable-status=shared \
        --enable-userdir=shared \
        --enable-usertrack=shared \
        --enable-vhost_alias=shared \
        --enable-proxy=shared \
        \
        --disable-ldap \
        --disable-charset_lite \
        --disable-example \
        --disable-ext_filter \
        --disable-unique-id \
        --disable-spelling \

        # fix libtool to accept $ORIGIN/ (avail. via patches)
        cp ${SCRIPTDIR}/libtool ${TMPBUILD}/srclib/apr/
        cp ${SCRIPTDIR}/libtool ${TMPBUILD}/srclib/apr-util/xml/expat/
        cp ${SCRIPTDIR}/libtool ${TMPBUILD}/shlibtool

        echo "make log goes to $MAKELOG"
        make >$MAKELOG

the gdbm stuff is in $ROOT4BUILD/usr:
-------------------------------------
/home/elkner/tmp/build/root4build/usr/:
total 8
drwxr-xr-x   4 elkner   ivs          512 May  6 03:18 .
drwxr-xr-x   4 elkner   ivs          512 May  6 03:18 ..
drwxr-xr-x   2 elkner   ivs          512 May  6 03:18 include
drwxr-xr-x   2 elkner   ivs          512 May  6 03:18 lib

/home/elkner/tmp/build/root4build/usr/include:
total 110
drwxr-xr-x   2 elkner   ivs          512 May  6 03:18 .
drwxr-xr-x   4 elkner   ivs          512 May  6 03:18 ..
-rw-r--r--   1 elkner   ivs         4744 May  6 03:18 gdbm.h

/home/elkner/tmp/build/root4build/usr/lib:
total 542
drwxr-xr-x   2 elkner   ivs          512 May  6 03:18 .
drwxr-xr-x   4 elkner   ivs          512 May  6 03:18 ..
-rw-r--r--   1 elkner   ivs        99708 May  6 03:18 libgdbm.a
lrwxrwxrwx   1 elkner   ivs           12 May  6 03:18 libgdbm.so -> 
libgdbm.so.2lrwxrwxrwx   1 elkner   ivs           14 May  6 03:18 libgdbm.so.2 
-> libgdbm.so.2.0
lrwxrwxrwx   1 elkner   ivs           16 May  6 03:18 libgdbm.so.2.0 -> 
libgdbm.so.2.0.0
-rw-r--r--   1 elkner   ivs        74440 May  6 03:18 libgdbm.so.2.0.0


I hope, this is enough (and not considered to be spam ;-))
to reproduce the bug.


Rgeards,
jens.
-- 
+---[ Jens Elkner ]------[ FIN, Otto-von-Guericke-Universitaet Magdeburg ]-+
| Walther-Rathenau-Str. 58                address@hidden       |
| 39104 Magdeburg   GERMANY       http://www.cs.uni-magdeburg.de/~elkner/  |
+--------------------------------------------------------------------------+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]