Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1445

Summary: postfix ebuild missing some linker flags
Product: Gentoo Linux Reporter: Jon Nelson (RETIRED) <jnelson>
Component: New packagesAssignee: Grant Goodyear (RETIRED) <g2boojum>
Status: RESOLVED FIXED    
Severity: normal CC: woodchip
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jon Nelson (RETIRED) 2002-03-31 23:15:21 UTC
When linking with sasl, one needs also to specify the -dl, -lpam, and -lcrypt 
link flags:

--- postfix-1.1.6.ebuild        Sun Mar 31 23:13:08 2002
+++ /usr/portage/net-mail/postfix/postfix-1.1.6.ebuild  Sat Mar 30 10:06:26 2002
@@ -61,7 +61,7 @@
 
        # stuff we always want...
        CCARGS="${CCARGS} -I/usr/include -DHAS_PCRE -DUSE_SASL_AUTH"
-       AUXLIBS="${AUXLIBS} -L/usr/lib -lpcre -lsasl -ldl -lpam -lcrypt"
+       AUXLIBS="${AUXLIBS} -L/usr/lib -lpcre -lsasl"
        DEBUG=""
 
        cd ${S}
Comment 1 Jon Nelson (RETIRED) 2002-03-31 23:17:30 UTC
Ooops! That patch is backwards.
Comment 2 Grant Goodyear (RETIRED) gentoo-dev 2002-04-01 11:05:59 UTC
Fixed, although -lpam is used only if "pam" is in USE.