Bug 12197

Summary: patch to ports/graphics/xpm to get appropriate libXpm
Product: Ports & Packages Reporter: jhs <jhs>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me CC: jseger
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description jhs freebsd_committer freebsd_triage 1999-06-14 01:30:00 UTC
	In ports/graphics/xpm/work/xpm-3.4k/sxpm/Makefile we see this:
		cc -o sxpm -O2      -L/usr/X11R6/lib sxpm.o \
		-L../lib -L/usr/X11R6/lib -lXpm -lXt -lSM -lICE -lXext -lX11 \
		-lxpg4  -Wl,-R,/usr/X11R6/lib:/usr/X11R6/lib
		sxpm.o: Undefined symbol `_XpmReadFileToPixmap' \
			 referenced from text segment
		sxpm.o: Undefined symbol `_XpmCreatePixmapFromData' \
			 referenced from text segment
	Need to remove first of the 2 -L/usr/X11R6/lib
	as we should trust our local fresh compiled library, 
	rather than system lib that might be old/damaged/wrong format.

Fix: (BTW
	   I notice PORTOBJFORMAT definition in ports/Mk/bsd.port.mk,
	   but think it's use not appropriate here, as regardless
	   of objformat, it's still better to link against local lib.
	)

	Here is new patch file for ports/graphics/xpm/patches/patch-aa
-------
How-To-Repeat: 
	Not sure if this sufficient, & not only way, but try:
		Have elf type libXpm libs in /usr/X11R6,
		set objformat aout
		make
Comment 1 jseger freebsd_committer freebsd_triage 1999-06-14 04:04:11 UTC
State Changed
From-To: open->closed

Committed, thanks.