Göran Höglund writes:

Hi,
I am trying to install courier-authlib-0.58 prior to the server itself.
Everything works fine until its time to link the authdaemondprog.

Logg snippet:
Linking authdaemondprog
Undefined                       first referenced
 symbol                             in file
libmail_encode_start                ./.libs/libcourierauthcommon.so
libmail_str_gid_t                   authdaemond.o
libmail_str_uid_t                   authdaemond.o
md5_crypt_redhat                    ./.libs/libcourierauthcommon.so
sha1_hash                           ./.libs/libcourierauthcommon.so
hmac_list                           ./.libs/libcourierauthcommon.so
hmac_hashtext                       ./.libs/libcourierauthcommon.so
hmac_hashkey                        ./.libs/libcourierauthcommon.so
sha256_hash                         ./.libs/libcourierauthcommon.so
libmail_encode                      ./.libs/libcourierauthcommon.so
libmail_encode_end                  ./.libs/libcourierauthcommon.so
md5_hash_courier                    ./.libs/libcourierauthcommon.so
ld: fatal: Symbol referencing errors. No output written to
.libs/authdaemondprog
collect2: ld returned 1 exit status
make[2]: *** [authdaemondprog] Error 1
make[2]: Leaving directory `/usr/share/src/courier-authlib-0.58'

I am using Solaris 8 on sparc with make, gcc and binutils from sunfreeware. My LD_LIBRAY_PATH is LD_LIBRARY_PATH=/usr/local/BerkeleyDB.3.3/lib,
My PATH is
PATH=/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/bin:/usr/bin:/sbin:/usr/sb
in

Any suggstions what environment I missed?

It looks like your gcc is not using the binutils version of 'ld', GNU ld, it's trying to run Sun's native ld, which barfs.

Try to run "strings" on binutils' ld. I don't think that "Symbol referencing errors" is a GNU ld error message.

You need to use GNU ld for linking.


Attachment: pgpaANrXfFzWT.pgp
Description: PGP signature

Reply via email to