Bug 88402

Summary: mail/courier-authlib-vchkpw doesn't compile on AMD64 due vpopmail error
Product: Ports & Packages Reporter: Matteo Baldi <egon>
Component: Individual Port(s)Assignee: Peter Pentchev <roam>
Status: Closed FIXED    
Severity: Affects Only Me CC: roam
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Matteo Baldi 2005-11-02 17:00:32 UTC
compiling courier-auth-vchkpw on AMD64 system (6.0-STABLE) give this error:

Linking libcourierauthcommon.la
Linking libauthvchkpw.la
/usr/bin/ld: /usr/local/vpopmail/lib/libvpopmail.a(vpopmail.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
/usr/local/vpopmail/lib/libvpopmail.a: could not read symbols: Bad value
gmake[2]: *** [libauthvchkpw.la] Error 1
gmake[2]: Leaving directory `/usr/ports/mail/courier-authlib-vchkpw/work/courier-authlib-0.57'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/mail/courier-authlib-vchkpw/work/courier-authlib-0.57'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/mail/courier-authlib-vchkpw.
*** Error code 1

Stop in /usr/ports/mail/courier-authlib-vchkpw.

Fix: 

cd /usr/ports/mail/vpopmail
	make CFLAGS=" -fPIC -O -pipe" install
How-To-Repeat: 
On a 64bit system:
	cd /usr/ports/mail/vpopmail
	make install
	cd /usr/ports/mail/courier-authlib-vchkpw
	make install
Comment 1 Oliver Lehmann freebsd_committer freebsd_triage 2005-11-02 17:07:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->roam

Can you change CFLAGS for amd64 in mail/vpopmail so it'll compile? 
If you need a system to test that change I'm volunteering to compile 
it on my amd64
Comment 2 Peter Pentchev freebsd_committer freebsd_triage 2005-11-17 22:55:17 UTC
State Changed
From-To: open->closed

Fix committed, thanks!