Subject: pkg/22591: xchat2 on Irix need extra LDFLAGS += -lX11
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <v.oostveen@hccnet.nl>
List: netbsd-bugs
Date: 08/25/2003 00:25:31
>Number:         22591
>Category:       pkg
>Synopsis:       xchat2 on Irix need extra LDFLAGS += -lX11
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 25 00:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Bas van Oostveen
>Release:        pkgsrc for irix
>Organization:
na
>Environment:
IRIX washu 6.5 6.5.17m 07121149 IP32
>Description:
when compiling xchat2 from pkgsrc on a irix machine
the build process exists with unresolved symbols in xchat2/src/fe-gtk

because there no duplicate symbols in other libraries (like libgdk, which do exist on my debian/lnx machine) we also need to link libX11.so
for the required symbols

the easiest solution i found was to patch the Makefile with:
.if ${OPSYS} == "IRIX"
LDFLAGS+=           -lX11
.endif

(see patch)

diff -r1.10 Makefile
37a38,42
> # IRIX need extra x11 ldflags
> .if ${OPSYS} == "IRIX"
> LDFLAGS+=              -lX11
> .endif
>

>How-To-Repeat:

>Fix:
in pkgsrc/xchat2:

diff -r1.10 Makefile
37a38,42
> # IRIX need extra x11 ldflags
> .if ${OPSYS} == "IRIX"
> LDFLAGS+=              -lX11
> .endif
>

>Release-Note:
>Audit-Trail:
>Unformatted: