http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/ports/gen/graphics/xpm/files/patch-aa.REL=ALL.cust_rel SEND-PR: -*- send-pr -*- SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as SEND-PR: will all comments (text enclosed in `<' and `>'). SEND-PR: SEND-PR: Please consult the send-pr man page `send-pr(1)' or the Texinfo SEND-PR: manual if you are not sure how to fill out a problem report. SEND-PR: SEND-PR: Note that the Synopsis field is mandatory. The Subject (for SEND-PR: the mail) will be made the same as Synopsis unless explicitly SEND-PR: changed. SEND-PR: SEND-PR: Choose from the following categories: SEND-PR: SEND-PR: bin conf docs gnu i386 kern misc ports SEND-PR: To: FreeBSD-gnats-submit@freebsd.org cc: jseger_ERASE@FreeBSD.org Subject: ports/graphics/xpm/patches/patch-aa to get appropriate libXpm From: jhs@ Reply-To: jhs@ X-send-pr-version: 3.2 >Submitter-Id: current-users >Originator: Julian H. Stacey jhs@ >Organization: FreeBSD >Confidential: no >Synopsis: patch to ports/graphics/xpm to get appropriate libXpm >Severity: non-critical >Priority: medium >Category: ports >Release: FreeBSD 3.2-RELEASE i386 >Class: change-request >Environment: On a 3.2 Elf system, converting system back to aout format from elf (as I need gzipped binaries on my small laptop disc, & gzipped executables are only supported on aout format, not elf) >Description: In ports/graphics/xpm/work/xpm-3.4k/sxpm/Makefile we see this: cc -o sxpm -O2 -L/usr/local/lib sxpm.o \ -L../lib -L/usr/local/lib -lXpm -lXt -lSM -lICE -lXext -lX11 \ -lxpg4 -Wl,-R,/usr/local/lib:/usr/local/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/local/lib as we should trust our local fresh compiled library, rather than system lib that might be old/damaged/wrong format. >How-To-Repeat: Not sure if this sufficient, & not only way, but try: Have elf type libXpm libs in /usr/local, set objformat aout make >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 ------- *** sxpm/Imakefile.orig Thu Mar 19 20:51:01 1998 --- sxpm/Imakefile Sun Jun 13 14:19:16 1999 *************** *** 96,98 **** --- 96,100 ---- clean:: $(RM) sxpmout.xpm + XCOMM unset LDPRELIBS to ensure we link with local lib not system lib + LDPRELIBS= -------