[Date Prev][Date Next] [Chronological] [Thread] [Top]

Solved Compile problems on HP-UX 10.20



Am Mittwoch, 10. April 2002 15:08 schrieb Holger Banko:

I just "solved" it. There is only a variable undeclared (h_errno). I grepped 
my /usr/include on my Linux system and found it in netdb.h declared as extern 
int. 

I added the declaration extern int h_errno in ldap-int.h and now it compiled 
succesfull. The client is working (tried an ldap_search), the server should 
work too but i haven't tested it.

Holger

>
> I have problems to compile OpenLDAP 2.0.15 on HP-UX. I installed DB,
> pthread and openssl as binaries succesfull. Because there are no openldap
> binaries anywhere available I installed ggc and binutils and tried to
> compile the sources.
>
> Everytime I get this error:
>
>         /bin/sh /stand/openldap-2.0.15/libtool --mode=link /opt/gcc/bin/gcc
> -g -O2 -I../../include        -I../../include   -I/opt/pth/include
> -I/opt/openssl/include -I/opt/DB/include 
> -L/stand/openldap-2.0.15/libraries -L/opt/pth/lib  -L/opt/openssl/lib
> -L/opt/DB/lib  -o idtest idtest.o -llber -lV3 -lpthread
> /opt/gcc/bin/gcc -g -O2 -I../../include -I../../include -I/opt/pth/include
> -I/opt/openssl/include -I/opt/DB/include -L/stand/openldap-2.0.15/libraries
> -L/opt/pth/lib -L/opt/openssl/lib -L/opt/DB/lib -o idtest idtest.o -llber
> -lV3 -lpthread
> /usr/ccs/bin/nm: /opt/pth/lib/libpthread.sl: no symbols
>
>   Entering subdirectory libldap
>         /bin/sh /stand/openldap-2.0.15/libtool   --mode=compile
> /opt/gcc/bin/gcc -g -O2 -I../../include        -I../../include
> -I/opt/pth/include -I/opt/openssl/include -I/opt/DB/include   -c util-int.c
> rm -f .libs/util-int.lo
> /opt/gcc/bin/gcc -g -O2 -I../../include -I../../include -I/opt/pth/include
> -I/opt/openssl/include -I/opt/DB/include -c util-int.c  -fPIC -DPIC -o
> .libs/util-int.lo
> util-int.c: In function `ldap_pvt_gethostbyname_a':
> util-int.c:177: `h_errno' undeclared (first use in this function)
> util-int.c:177: (Each undeclared identifier is reported only once
> util-int.c:177: for each function it appears in.)
> *** Error exit code 1
>
> Stop.
>
> I tried it with 2.0.12 and got the same error.
>
> Any ideas or a hint where I can find a binary for HP-UX 10.20? I only need
> it as client...
>
> Holger