Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2006 15:17:48 GMT
From:      Alexander Wittig <alexander@wittig.name>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/95518: [FIX] mail/exim build error (unresolved symbols/missing library -lutil)
Message-ID:  <200604081517.k38FHmwv079722@www.freebsd.org>
Resent-Message-ID: <200604081520.k38FKDXv003681@freefall.freebsd.org>

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

>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@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:



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