Invalid configuration `CXX=g++':

"Stephen" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
Hi,

I am trying to configure and build the following version of the mozilla ldap 
c-sdk:

mozldap-6.0.5

on Solaris:

SunOs <hostname> 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V440

I have managed to compile without error the NSS with NSPR.

*************************************************************************************************
First of all when I try to configure the c-sdk with the following conmmand:

./configure --with-nss=/staffware/installs/mozilla_ldap/nss-3.11.7 CXX=g++

i get the following:

configure: warning: CXX=g++: invalid host type
creating cache ./config.cache
checking host system type... Invalid configuration `CXX=g++': machine 
`CXX=g++' not recognized
checking target system type... Invalid configuration `CXX=g++': machine 
`CXX=g++' not recognized
checking build system type... Invalid configuration `CXX=g++': machine 
`CXX=g++' not recognized

this is also true if I do:

CC=gcc

here is my env snippet:

<SNIP>
LD_LIBRARY_PATH=/usr/sfw/lib/sparcv9/
PATH=/opt/sfw/bin/:/usr/sfw/bin/:/usr/local/bin:/usr/sbin:/usr/bin
</SNIP>

*************************************************************************************************
second, if I run gmake (not really worth doing it unless I have got 
configure right so I may be 'jumping the gun') I get the following:

======= making ./libldif60.so
/usr/local/bin/ld      -o libldif60.so ./line64.o
/usr/local/bin/ld: warning: cannot find entry symbol _start; defaulting to 
0000000000010074
./line64.o: In function `ldif_base64_decode':
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:217: 
undefined reference to `strchr'
./line64.o: In function `ldif_getline':
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:288: 
undefined reference to `strchr'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:295: 
undefined reference to `strchr'
./line64.o: In function `ldif_put_type_and_value_with_options':
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:368: 
undefined reference to `__ctype'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:368: 
undefined reference to `__ctype'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:384: 
undefined reference to `__ctype'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:384: 
undefined reference to `__ctype'
./line64.o: In function `ldif_type_and_value_with_options':
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:526: 
undefined reference to `strlen'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:527: 
undefined reference to `.div'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:527: 
undefined reference to `.div'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:527: 
undefined reference to `.div'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:527: 
undefined reference to `malloc'
./line64.o: In function `ldif_get_entry':
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:563: 
undefined reference to `fgets'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:582: 
undefined reference to `strlen'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:597: 
undefined reference to `malloc'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:600: 
undefined reference to `realloc'
/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif/line64.c:607: 
undefined reference to `memcpy'
gmake[3]: *** [libldif60.so] Error 1
gmake[3]: Leaving directory 
`/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries/libldif'
gmake[2]: *** [export] Error 2
gmake[2]: Leaving directory 
`/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap/libraries'
gmake[1]: *** [export] Error 2
gmake[1]: Leaving directory 
`/staffware/installs/mozilla_ldap/mozldap-6.0.5/mozilla/directory/c-sdk/ldap'
gmake: *** [export] Error 2

any help or pointers on this would be most appreciated!

Thanks!

Stephen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.