Linus Lund wrote:
Linus Lund wrote:
Dear list,
I've been trying to compile the courier authlib 0.57 on a Solaris 10
(sparc64) machine, but I keep getting stuck in symbol referenced
errors. I have no problems when compiling version 0.56. I'm not very
good in solving linking errors so any suggestions would be much
appreciated. This is what I've tried and the results of those trials:
o Installed latest libtool, gcc.
o Run configure script
env CC=gcc CPPFLAGS="-I/usr/local/berkeleydb/include
-I/usr/local/ldap/include/" LDFLAGS="-L/usr/local/berkeleydb/lib/
-L/usr/local/ldap/lib" ./configure --with-mailuser=courier
--with-mailgroup=courier --without-authuserdb --without-authpwd
--without-authshadow --without-authvchkpw --without-authpgsql
--without-authmysql --without-authcustom --without-authpipe
o Run make. Looks good for a bit and returns the following:
[...]
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
o Repeated the same procedure with cc, with changing some options in
the configure-line.
If anyone else experience the same problem this is how I solved it:
o Reread the README file and installed the GNU linker
o Tried to recompile, worked fine!
What exactly did you do to install the GNU linker *and* get configure to
recognize it? I've gotten it onto the system, but the gcc I have (from
sunfreeware of some old 3.x vintage) was build with Sun's ld... and
configure uses it despite the availability of the GNU linker on the
system....
Bill
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users