Sorry if this got sent twice... Dieter Klünter wrote: > Doug Summers <[EMAIL PROTECTED]> writes: > >> Has anyone got this to work using OpenPKG stable? I can't never get >> the configure script to see the proper headers & libraries. > > What is precisely your problem? > There is an issue with openldap and pth on linux with regard to epoll. > > -Dieter > Here's the results from configure. Before building I set these variables (/syscfg/opkg is the base of my OpenPKG-2-Stable install):
CPPFLAGS=-I/syscfg/opkg/include LDFLAGS=-L/syscfg/opkg/lib ./configure --with-ldap-lib=openldap --with-ldap-conf-file=/etc/ldap.conf --with-ldap-secret-file=/etc/ldap.secret --prefix=/opt/nss_ldap creating cache ./config.cache checking host system type... sparc-sun-solaris2.8 checking target system type... sparc-sun-solaris2.8 checking build system type... sparc-sun-solaris2.8 checking for a BSD compatible install... /syscfg/opkg/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking whether the C compiler (gcc -L/syscfg/opkg/lib) works... yes checking whether the C compiler (gcc -L/syscfg/opkg/lib) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for a BSD compatible install... /syscfg/opkg/bin/ginstall -c checking for lber.h... yes checking for ldap.h... yes checking for ldap_ssl.h... no checking for nss.h... no checking for nsswitch.h... yes checking for irs.h... no checking for thread.h... yes checking for pthread.h... yes checking for synch.h... yes checking for malloc.h... yes checking for shadow.h... yes checking for prot.h... no checking for port_before.h... no checking for port_after.h... no checking for aliases.h... no checking for net/route.h... yes checking for netinet/if_ether.h... yes checking for netinet/ether.h... no checking for ctype.h... yes checking for alignof.h... no checking for rpc/rpcent.h... yes checking for sys/byteorder.h... yes checking for sys/un.h... yes checking for libc-lock.h... no checking for bits/libc-lock.h... no checking for sasl.h... no checking for sasl/sasl.h... no checking for strings.h... yes checking for gssldap.h... no checking for gsssasl.h... no checking for gssapi/gssapi_krb5.h... no checking for gssapi.h... no checking for main in -lresolv... yes checking for main in -lnsl... yes checking for main in -lsocket... yes checking for strtok_r... yes checking for sigaction... yes checking for sigset... yes checking for res_search... yes checking for dn_expand... yes checking for snprintf... yes checking for gethostbyname... yes checking for nsdispatch... no checking for pthread_atfork... yes checking for ether_aton... yes checking for ether_ntoa... yes checking for struct ether_addr... yes checking for socklen_t... yes checking for pw_change in struct passwd... no checking for pw_expire in struct passwd... no checking for dlopen in -ldl... yes checking for gss_krb5_ccache_name in -lgssapi... no checking for gss_krb5_ccache_name in -lgssapi_krb5... no checking for main in -llber... yes checking for main in -lldap... yes checking for ldap_gss_bind in -lgssldap... no checking for sasl_auxprop_request... no checking for ldap_init... no checking for ldap_get_lderrno... no checking for ldap_parse_result... no checking for ldap_memfree... yes checking for ldap_controls_free... yes checking for ldap_ld_free... no checking for ldap_explode_rdn... no checking for ldap_set_option... no checking for ldap_get_option... no checking for ldap_sasl_interactive_bind_s... no checking for ldap_initialize... no checking for ldap_search_ext... no checking for ldap_create_control... yes checking for ldap_create_page_control... no checking for ldap_parse_page_control... no checking for ldapssl_client_init... no checking for ldap_start_tls_s... no checking for ldap_pvt_tls_set_option... no checking for ldap_start_tls... no checking for gethostbyname_r... yes checking whether gethostbyname_r takes 6 arguments... 5 checking for ldap_set_rebind_proc... no checking whether ldap_set_rebind_proc takes 3 arguments... 3 updating cache ./config.cache creating ./config.status creating Makefile creating config.h From make: gcc -DHAVE_CONFIG_H -I/syscfg/opkg/include -DLDAP_REFERRALS -DLDAP_DEPRECATED-D_REENTRANT -g -O2 -Wall -fPIC -c ldap-nss.c ldap-nss.c: In function 'do_set_sockopts': ldap-nss.c:644: error: dereferencing pointer to incomplete type ldap-nss.c: In function 'do_get_our_socket': ldap-nss.c:787: error: dereferencing pointer to incomplete type ldap-nss.c: In function 'do_open': ldap-nss.c:1463: error: dereferencing pointer to incomplete type ldap-nss.c:1469: error: dereferencing pointer to incomplete type ldap-nss.c:1476: error: dereferencing pointer to incomplete type ldap-nss.c:1415: warning: unused variable 'tv' ldap-nss.c: In function 'do_bind': ldap-nss.c:1785: error: dereferencing pointer to incomplete type ldap-nss.c: In function 'do_triple_permutations': ldap-nss.c:2110: warning: null argument where non-null required (argument 1) ldap-nss.c:2110: warning: null argument where non-null required (argument 1) ldap-nss.c:2110: warning: null argument where non-null required (argument 2) ldap-nss.c:2110: warning: null argument where non-null required (argument 1) ldap-nss.c:2110: warning: null argument where non-null required (argument 1) ldap-nss.c:2110: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 2) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 2) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2111: warning: null argument where non-null required (argument 1) ldap-nss.c:2112: warning: null argument where non-null required (argument 1) ldap-nss.c:2112: warning: null argument where non-null required (argument 1) ldap-nss.c:2112: warning: null argument where non-null required (argument 2) ldap-nss.c:2112: warning: null argument where non-null required (argument 1) ldap-nss.c:2112: warning: null argument where non-null required (argument 1) ldap-nss.c:2112: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 2) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 2) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2113: warning: null argument where non-null required (argument 1) ldap-nss.c:2114: warning: null argument where non-null required (argument 1) ldap-nss.c:2114: warning: null argument where non-null required (argument 1) ldap-nss.c:2114: warning: null argument where non-null required (argument 2) ldap-nss.c:2114: warning: null argument where non-null required (argument 1) ldap-nss.c:2114: warning: null argument where non-null required (argument 1) ldap-nss.c:2114: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 2) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 2) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2115: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 2) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 2) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 2) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c:2116: warning: null argument where non-null required (argument 1) ldap-nss.c: In function 'do_result': ldap-nss.c:2399: error: dereferencing pointer to incomplete type ldap-nss.c: In function 'do_search_s': ldap-nss.c:2618: error: dereferencing pointer to incomplete type ldap-nss.c: In function 'do_search': ldap-nss.c:2687: error: dereferencing pointer to incomplete type ldap-nss.c:2701: error: dereferencing pointer to incomplete type ldap-nss.c:2651: warning: unused variable 'pServerCtrls' ldap-nss.c:2650: warning: unused variable 'serverCtrls' ldap-nss.c: In function '_nss_ldap_get_ld_errno': ldap-nss.c:4223: error: 'ld' undeclared (first use in this function) ldap-nss.c:4223: error: (Each undeclared identifier is reported only once ldap-nss.c:4223: error: for each function it appears in.) make: *** [ldap-nss.o] Error 1 This is the latest nss_ldap, version 2.51. Building with SunStudio is even worse. Doug ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org