Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2009 14:00:08 GMT
From:      Artis Caune <Artis.Caune@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/141640: [patch] mail/exim: fix pcre linking
Message-ID:  <200912151400.nBFE08pK099048@www.freebsd.org>
Resent-Message-ID: <200912151410.nBFEA2Z3095922@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         141640
>Category:       ports
>Synopsis:       [patch] mail/exim: fix pcre linking
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 15 14:10:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Artis Caune
>Release:        FreeBSD 8.0-STABLE r200054
>Organization:
>Environment:
>Description:
When making exim package, it fails with:
..
awk '{ print ($1+1) }' cnumber.h > cnumber.temp
rm -f cnumber.h; mv cnumber.temp cnumber.h
cc version.c
rm -f exim
cc -o exim
/usr/bin/ld: cannot find -lpcre
*** Error code 1

Stop in /usr/ports/mail/exim/work/exim-4.71/build-FreeBSD-amd64.
*** Error code 1

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- OS/Makefile-FreeBSD.orig	2009-11-19 20:58:44.000000000 +0200
+++ OS/Makefile-FreeBSD	2009-12-15 15:51:24.764309795 +0200
@@ -7,7 +7,7 @@
 PORTOBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
 
 CHOWN_COMMAND=/usr/sbin/chown
-STRIP_COMMAND=/usr/bin/strip
+STRIP_COMMAND=XX_STRIPCMD_XX
 CHMOD_COMMAND=/bin/chmod
 
 HAVE_SA_LEN=YES
@@ -18,6 +18,8 @@
 # FreeBSD always ships with Berkeley DB
 USE_DB=yes
 
+LFLAGS=-L$(LOCALBASE)/lib
+
 # This code for building outside ports suggested by Richard Clayton
 .ifdef   X11BASE
 X11=${X11BASE}


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912151400.nBFE08pK099048>