OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: LDAP dereferencing
From: Amos Gouaux (amos+lists.postfixutdallas.edu)
Date: Sun May 14 2000 - 23:58:19 CDT


I thought I'd give the LDAP client libs bundled with Solaris 7 a
whirl. Ran into this (with snapshot-20000511):

[util]
gcc -DHAS_DB -I/usr/local/include -DPATH_DB_H='<db_185.h>' -DHAS_LDAP -DHAS_POSIX_REGEXP -g -O -I. -DSUNOS5 -c dict_ldap.c
dict_ldap.c: In function `dict_ldap_connect':
dict_ldap.c:175: dereferencing pointer to incomplete type
dict_ldap.c: In function `dict_ldap_lookup':
dict_ldap.c:420: dereferencing pointer to incomplete type
dict_ldap.c:423: dereferencing pointer to incomplete type
gmake: *** [dict_ldap.o] Error 1
gmake: *** [update] Error 1

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)

Here's a try with WorkShop 5.0 cc:

[util]
cc -DHAS_DB -I/usr/local/include -DPATH_DB_H='<db_185.h>' -DHAS_LDAP -DHAS_POSIX_REGEXP -g -O -I. -DSUNOS5 -c dict_ldap.c
"dict_ldap.c", line 175: undefined struct/union member: ld_deref
"dict_ldap.c", line 175: warning: improper pointer/integer combination: op "="
"dict_ldap.c", line 420: undefined struct/union member: ld_errno
"dict_ldap.c", line 423: improper member use: ld_errno
cc: acomp failed for dict_ldap.c
gmake: *** [dict_ldap.o] Error 2
gmake: *** [update] Error 1

Since nobody else has mentioned this, and there was a post about
someone compiling just fine using the Solaris 7 client libs, gots to
be something dumb I'm doing. Though, I haven't found it yet.
Pointers?

Amos