Subject: cyrus compile linker problem
To: None <port-mac68k@netbsd.org>
From: Ryan La Riviere <larz@cbis.ece.drexel.edu>
List: port-mac68k
Date: 12/13/2001 11:28:09
Ok.
Since I can't get postfix/local to work properly, I'm trying to use cyrus to deal with mail. However I can't get it to properly compile. I'm getting the similar error that had arisen when I was compiling a perl module...except the solution that worked before of course does not work for this one.
I had searched the netbsd site and found these references:
---
10 May: Link with $(LDFLAGS), for -Wl,-R/usr/pkg/lib [bouyer]
* pkgsrc/net/mrtg/patches: patch-aa
---
and
---
Date: 01/03/1999 08:56:50
On 03-Jan-99 Paul Goyette spoke unto us all:
# I get the following errors installing the socks5 package. Any hints on
# what to do?
#
# ===> Building for socks5-1.0.2
# ld -o libsocks5_sh.so -Bshareable msg.o protocol.o log.o hostname.o
# confutil.o buffer.o cache.o wrap.o wrap_tcp.o wrap_udp.o conf.o
# libproto.o select.o rld.o null.o addr.o shim.o dpin.o dpinutil.o
# upwd.o gss.o cram.o -Wl,-R/usr/pkg/lib -lcrypt
# ld: invalid command option `-Wl,-R/usr/pkg/lib'
It's whining because -Wl,-R is a flag to CC, that should get passed to the
linker. socks is invoking the linker directly.
Two things come to mind:
replace ld with cc and pray.
libtool this pkg. (preferred)
---
I don't quite understand the $(LDFLAGS) other than I think it's a compile time variable and I'm not sure how to do what the second speaks about.
My error is the following:
---
Running Mkbootstrap for Cyrus::IMAP ()
chmod 644 IMAP.bs
rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so
LD_RUN_PATH="/usr/local/src/pkgsrc/mail/cyrus-imapd/work/cyrus-imapd-2.0.16/perl/imap/../../lib:/usr/local/src/pkgsrc/mail/cyrus-imapd/work/.buildlink/lib" ld -Bshareable -L/usr/local/lib -L/usr/local/src/pkgsrc/mail/cyrus-imapd/work/.buildlink/lib -Wl,-R/usr/pkg/lib IMAP.o -o blib/arch/auto/Cyrus/IMAP/IMAP.so -L/usr/local/src/pkgsrc/mail/cyrus-imapd/work/cyrus-imapd-2.0.16/perl/imap/../../lib -lcyrus -L/usr/local/src/pkgsrc/mail/cyrus-imapd/work/.buildlink/lib -lsasl -lssl -lcrypto
ld: invalid command option `-Wl,-R/usr/pkg/lib'
*** Error code 1
---
I see similarities but not sure on the solition.
Thanks.
--
That's my story and I'm sticking to it.
Ryan La Riviere
System Administrator; Drexel University
215.895.6010
<http://staff.tdec.drexel.edu/~edljedi/>