> If I switch out "/usr/include" to "/opt/gnu/include" it will compile but 
> then all 
> of the HT programs core dump. 

> Making all in db 
> make[1]: Entering directory `/export/soft/htdig-3.2.0b2/db' 
> cd dist ; if [ -f Makefile ] ; then make PACKAGE=htdig all ; fi 
> make[2]: Entering directory `/export/soft/htdig-3.2.0b2/db/dist' 
> gcc -c -O -I. -I./../include -D_REENTRANT -I/usr/include ../common/db_err.c 
> ../common/db_err.c: In function `__db_err': 
> ../common/db_err.c:119: `__builtin_va_alist' undeclared (first use in this 
> funct 

same here (Solaris 8 (SPARC), gcc 2.95.3, htdig 3.2.0b3).
but if you run "gcc -v" you can see that it searches its own include
directory first:

#include <...> search starts here:
 /usr/local/include
 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../sparc-sun-solaris2.8/include
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include
 /usr/include
End of search list.
...
db_err.c: In function `CDB___db_err':
db_err.c:278: `__builtin_va_alist' undeclared (first use in this function)
db_err.c:278: (Each undeclared identifier is reported only once
db_err.c:278: for each function it appears in.)


and if a compile a simple test program

    #include <stdarg.h>
    
    void test(int i, ...)
    {
    va_list ap;
    va_start(ap, i);
    va_end(ap);
    }

it works. So there must be something in the #defines or configuration
of htdig that makes gcc miss the correct (for GNU) definition of the
varargs stuff.

Roman Maeder


_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to