Re: [exim] X11BASE in FreeBSD 7

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Richard Clayton
Datum:  
To: exim-users
Alte Treads: Re: [exim] X11BASE in FreeBSD 7
Betreff: Re: [exim] X11BASE in FreeBSD 7

This is an old problem... and it's not fixed in 4.70 :(

For FreeBSD ports, X11BASE is set in /usr/ports/Mk/bsd.port.mk

        LOCALBASE?=             /usr/local
        X11BASE?=               ${LOCALBASE}


but of course this file is not picked up when building from just the
source alone [it's my choice to build from source, not from the port]

... and hence X11 is not set correctly by X11=$(X11BASE) in the
OS/Makefile-FreeBSD script.

I complained about this in March 2008 (when 4.69 came out) and below we
can see where the conversation ended:

In message <alpine.LSU.1.00.0803271153220.3495@???>,
Tony Finch <dot@???> writes

>On Wed, 26 Mar 2008, Richard Clayton wrote:
>>
>>         .ifdef  X11BASE
>>         X11=${X11BASE}
>>         .else
>>         X11=/usr/local
>>         .endif

>
>I think we'll have to come up with a way to deal with X11R7 for all
>platforms, not just FreeBSD.


... but since nothing has been done about X11R7, this remains a problem
on 4.70 :( creating the "obvious" error message (which I include
for others to Google!):

        /usr/bin/ld: cannot find -lXaw


I don't see why there needs to be a platform independent fix, when I'm
asking for a specific fix in the OS dependent file :( ... which I
shall now apply for myself !

BTW a better fix (hope I'm not assuming too much of make) might be

1c1
< # $Cambridge: exim/exim-src/OS/Makefile-FreeBSD,v 1.5 2008/07/25 20:39:55 fanf2 Exp $
- ---
> # $Cambridge: exim/exim-src/OS/Makefile-FreeBSD,v 1.5A 2009/11/15 17:44:00 rnc1 Exp $

23c23,29
< X11=$(X11BASE)
- ---
> .ifdef X11BASE
> X11=${X11BASE}
> .elifdef LOCALBASE
> X11=$(LOCALBASE)
> .else
> X11=/usr/local
> .endif

28c34
< XLFLAGS+=-Wl,-rpath,${X11BASE}/lib
- ---
> XLFLAGS+=-Wl,-rpath,${X11}/lib



- -- 
richard @ highwayman . com                       "Nothing seems the same
                          Still you never see the change from day to day
                                And no-one notices the customs slip away"