Subject: pkg/8028: XmHTML ELF problems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gendalia@iastate.edu>
List: netbsd-bugs
Date: 07/18/1999 21:35:53
>Number:         8028
>Category:       pkg
>Synopsis:       XmHTML doesn't find Xpm correctly, and the path is wrong for ELF
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 21:35:00 1999
>Last-Modified:
>Originator:     Tracy J. Di Marco White
>Organization:
Iowa State University
>Release:        1.4F
>Environment:
	
System: NetBSD solstice.cc.iastate.edu 1.4F NetBSD 1.4F (SOLSTICE) #1: Sun Jul 18 21:30:48 CDT 1999 gendalia@solstice.cc.iastate.edu:/usr/src/sys/arch/i386/compile/SOLSTICE i386

pkgsrc dating from July 18th, 1999

>Description:
XmHTML doesn't know how to find Xpm.  Once I tell it how, it compiles, but
fails to work when it can't find libjpeg or libpng because it needs to be told
specifically where to look for dynamic libraries (for ELF, anyway).
>How-To-Repeat:
On an ELF system:
cd /usr/pkgsrc/x11/XmHTML
make
Modify to include Xpm.
make something that uses XmHTML (gnucash, for example) try to run it.
>Fix:
-L/usr/X11R6/lib -lXpm -Wl,-rpath,/usr/pkg/lib
needs to be put somewhere.  Ideally, at least according to XmHTML's comments,
the setup for Xpm should go in Imake.tmpl.

"-L/usr/X11R6/lib -lXpm" fixes the problems with Xpm things not being
defined.
"-Wl,-rpath,/usr/pkg/lib" fixes the problem with the libraries (libpng,
libjpeg) not being found once XmHTML compiles, and something tries
to use it.
>Audit-Trail:
>Unformatted: