Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2002 12:26:54 -0700 (PDT)
From:      Fred Clift <fred@clift.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/43663: build problems in alpha /usr/ports/x11/XFree86-4-clients
Message-ID:  <200210041926.g94JQs64060725@www.freebsd.org>

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

>Number:         43663
>Category:       ports
>Synopsis:       build problems in alpha /usr/ports/x11/XFree86-4-clients
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 04 12:30:05 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Fred Clift
>Release:        FreeBSD 4.7-RC alpha
>Organization:
NTT/Verio
>Environment:
FreeBSD liron.home.clift.org 4.7-RC FreeBSD 4.7-RC #0: Sun Oct  2 00:16:
18 MDT 2022     root@liron.home.clift.org:/usr/obj/usr/src/sys/LIRON  alpha

>Description:
      Failure in build of x clients (xdm in particular) on alpha 4.7RC - link problems
 for the 'greeter' shared library that is part of xdm.

...
rm -f libXdmGreet.so.1.0~
+ cd .
+ cc -o ./libXdmGreet.so.1.0~ -shared -rpath /usr/X11R6/lib -Wl,-soname,libXdmGr
eet.so.1 greet.o verify.o Login.o -L/usr/ports/x11/XFree86-4-cli
ents/work/xc/exports/lib -lXt -lSM -lICE -lXext -lX11
/usr/libexec/elf/ld: cannot find -lXt
*** Error code 1

Stop in /usr/ports/x11/XFree86-4-clients/work/xc/programs/xdm/greeter.
*** Error code 1


>How-To-Repeat:
      cd /usr/ports/x11/XFree86-4-clients and type make install - wait a long time :)
>Fix:
Wait till the build failure, and then apply the following patch:

235c235
<      SHLIBLDFLAGS = -shared -rpath $(USRLIBDIRPATH)
---
>      SHLIBLDFLAGS = -shared -rpath $(USRLIBDIRPATH) -L$(USRLIBDIR)


to /usr/ports/x11/XFree86-4-clients/work/xc/programs/xdm/greeter/Makefile


Then rebuild.



This is at best a workaround since the Makefile in quesiton is dynamically generated via imake -- the 'right' way to do this would be to either change the Imakefile in that directory or to change the imake template that is part of the build system for this port - I'm less familiar with imake so it's hard going, but I should have something sometime...

In the mean time, this patch can be used to produce working code for those trying to buid the port.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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