Sam Varshavchik wrote:
> Simon Lowen writes:
> 
>> Hi there,
>>
>> 1) I am attempting to compile courier 0.6.1 and got this error messgae:
>>
>> /bin/sh ./libtool --tag=CC    --mode=link gcc  -g -O2 -Wall -I./..
>> -I..  -static  -o testmaildirfilter testmaildirfilter.o libmaildir.la
>> ../numlib/libnumlib.la -lpcre
>> libtool: link: gcc -g -O2 -Wall -I./.. -I.. -o testmaildirfilter
>> testmaildirfilter.o  ./.libs/libmaildir.a ../numlib/.libs/libnumlib.a
>> -lpcre
>> /usr/bin/ld: cannot find -lpcre
>> collect2: ld returned 1 exit status
>>
>> 
[SNIP]
> 
> You probably ended up installing the actual PCRE library in
> /usr/local/lib, and this path is not in your compiler's default search
> path. Your C preprocessor's default settings do not search
> /usr/local/include, and your linker does not search /usr/local/lib by
> default. Your symlink fix worked around the first issue, but not the
> second one.
> 
[SNIP]
> 
> In your case, you'll probably need to add the -R option to LDFLAGS also.
> Check your linker's documentation for more information.

Thank-you Sam for the information.  I shall use a SATA disc instead of CF.

I removed all instances of the pcre and used the pkg_add command to get
the OpenBSD package instead.  I think make got this far this time.

* I set the linker like this,
export CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib
-L/usr/local/include"

* I ran configure with this & the configure completes,

./configure --enable-mimetypes=/var/www/conf/mime.types
--with-paranoid-smtpext --with-gnutls  --enable-hardtimeout=2700
--enable-softtimeout=1200  --with-cachedir=/var/webmail-logincache

* Later the make bombs out with this,

./config.status --file=imapd.8
config.status: creating imapd.8
./config.status --file=imapd.html
config.status: creating imapd.html
Using $< in a non-suffix rule context is a GNUmake idiom (line 857 of
Makefile)
*** Error code 2

Stop in /home/s/courier-0.62.1/imap (line 353 of Makefile).
*** Error code 1

Stop in /home/s/courier-0.62.1 (line 345 of Makefile).

------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to