ports/95518: [FIX] mail/exim build error (unresolved symbols/missing library -lutil)
Alexander Wittig
alexander at wittig.name
Sat Apr 8 15:20:14 UTC 2006
>Number: 95518
>Category: ports
>Synopsis: [FIX] mail/exim build error (unresolved symbols/missing library -lutil)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 08 15:20:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Alexander Wittig
>Release: 6.1 Prerelease
>Organization:
AW Comp
>Environment:
FreeBSD hotzenplotz.wittig 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sat Apr 8 13:44:46 CEST 2006 root at hotzenplotz.wittig:/usr/obj/usr/src/sys/ALEX i386
>Description:
When building the mail/exim port with
make WITHOUT_PERL=yes
I get the following errors while linking the binary:
[...]
rm -f exim
cc -o exim
transports/transports.a(pipe.o)(.text+0x33): In function `pipe_transport_setup':
: undefined reference to `login_getpwclass'
transports/transports.a(pipe.o)(.text+0x41): In function `pipe_transport_setup':
: undefined reference to `setclassresources'
transports/transports.a(pipe.o)(.text+0x49): In function `pipe_transport_setup':
: undefined reference to `login_close'
*** Error code 1
Stop in /usr/ports/mail/exim/work/exim-4.61/build-FreeBSD-i386.
*** Error code 1
Stop in /usr/ports/mail/exim/work/exim-4.61.
*** Error code 1
Stop in /usr/ports/mail/exim.
This behaviour is new in exim 4.61, it worked fine for 4.5 and 4.6 ports.
>How-To-Repeat:
cd /usr/ports/mail/exim
make WITHOUT_PERL=yes
>Fix:
According to "man login_getpwclass" the missing functions are implemented in libutil.
To fix the problem in work/exim-4.61/OS/Makefile.FreeBSD change the line "LIBS=-lcrypt -lm" to "LIBS=-lcrypt -lm -lutil" (the same line is also used in the Makefile.NetBSD3 makefile).
If this fix is approved, it should probably also be sent to the exim developers to be included in the exim distribution Makefile-FreeBSD.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list