Bug 12197 - patch to ports/graphics/xpm to get appropriate libXpm
Summary: patch to ports/graphics/xpm to get appropriate libXpm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-06-14 01:30 UTC by jhs
Modified: 1999-06-14 04:04 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (267 bytes, patch)
1999-06-14 01:30 UTC, jhs
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.