[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Symbol reference errors heimdal-0.6, solaris 8



I built heimdal on Solaris 8 with these options:

export CC=gcc
                                                                                   export CPPFLAGS='-I/usr/local/db-4.0.14/include -I/usr/local/openssl-0.9.6g/include -I/usr/local/openldap-2.0.27/include'
                                                                                                                                                                                                                 export LDFLAGS='-L/usr/local/db-4.0.14/lib -L/usr/local/openssl-0.9.6g/lib -L/usr/local/openldap-2.0.27/lib'
                                                                                                         export LD_OPTIONS='-R/usr/local/db-4.0.14/lib -R/usr/local/openssl-0.9.6g/lib -R/usr/local/openldap-2.0.27/lib -R/usr/local/cyrus-sasl-1.5.28/lib'
                                                                                                         bash-2.05$ ./configure --prefix=/usr/local/heimdal-0.5.1 --with-gnu-ld --disable-otp --enable-shared --with-openssl=/usr/local/openssl-0.9.6g/ --with-openssl-lib=/usr/local/openssl-0.9.6g/lib/ --with-openssl-include=/usr/local/openssl-0.9.6g/include/ --with-openldap=/usr/local/openldap-2.0.27 --with-openldap-lib=/usr/local/openldap-2.0.27/lib --with-openldap-include=/usr/local/openldap-2.0.27/include
                                                                                                         
And if you dont want problems dont forget to remove
/usr/local/heimdal-x-x-x before you rerun mke install


On Mon, 2003-10-20 at 15:47, Elliot Metsger wrote:
> All,
> 
> I'm building heimdal-0.6 on Solaris 8 with gcc 3.3.1 and the solaris linker /usr/ccs/bin/ld.
> 
> I'm using heimdal-0.6 with the db3.c patch and the ndbm_wrap.c patch that were submitted by Luke.  http://www.stacken.kth.se/lists/heimdal-discuss/2003-08/msg00024.html and http://www.stacken.kth.se/lists/heimdal-discuss/2003-08/msg00026.html.
> 
> Heimdal builds and installs fine, but the problem is that the resulting libraries have a lot of missing symbols, and nothing can link against them.
> 
> For example, after a 'make':
> nm -p lib/krb5/.libs/libkrb5.a | egrep 'U krb5' | wc -l
> says I have 658 undefined krb5_* functions:
> 0000000000 U krb5_set_error_string
> 0000000000 U krb5_data_alloc
> 0000000000 U krb5_data_copy
> 0000000000 U krb5_data_free
> 0000000000 U krb5_eai_to_heim_errno
> 0000000000 U krb5_ret_address
> 0000000000 U krb5_set_error_string
> 0000000000 U krb5_storage_free
> 0000000000 U krb5_storage_from_data
> 0000000000 U krb5_storage_seek
> 0000000000 U krb5_storage_set_byteorder
> 0000000000 U krb5_copy_principal
> 0000000000 U krb5_free_host_realm
> 0000000000 U krb5_free_principal
> ... truncated for brevity
> 
> I'm not sure what I'm doing wrong.  Here is what I use for my build environment:
> unset CFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH
> CFLAGS="-D_REENTRANT"
> CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include"
> LDFLAGS="-L/usr/local/BerkeleyDB.4.1/lib"
> LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.1/lib"
> 
> export CFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH
> 
> And here is my ./configure:
> ./configure --with-openssl=/usr/local/ssl --without-x
> 
> Any ideas?  My search of this mailing list and others is ongoing.
> 
> Many thanks for any suggestions,
> Elliot
> 
> 
>