Re: FVWM: undefined reference in fvwm-2.0.42

From: Brandon M. Browning <brandon_at_powertie.org>
Date: Tue, 23 Apr 1996 21:10:07 -0700 (PDT)

On Wed, 24 Apr 1996, Clive Messer wrote:

> Hi,
>
> I'm not on the mailing list and would appreciate being cc'd or a direct
> reply.
>
> Linux - gcc-2.7.2 / binutils 2.6.0.12/13
> fvwm-2.0.42 is 'barfing' on undefined references.

-- snip --

> gcc -o FvwmButtons FvwmButtons.o icons.o misc.o parse.o output.o button.o
> draw.o -O2 -m486 -L/usr/X11R6/lib -L../../libs -lfvwm2 -lXpm -lXext
> -lX11 -Wl,-rpath,/usr/X11R6/lib
> FvwmButtons.o: In function `main':
> FvwmButtons.o(.text+0x7be): undefined reference to `InitPictureCMap'
> FvwmButtons.o: In function `LoadIconFile':
> FvwmButtons.o(.text+0x11b3): undefined reference to `CachePicture'
> FvwmButtons.o: In function `RecursiveLoadData':
> FvwmButtons.o(.text+0x1240): undefined reference to `CachePicture'
> FvwmButtons.o(.text+0x12db): undefined reference to `CachePicture'
> FvwmButtons.o(.text+0x1531): undefined reference to `CachePicture'
> make[1]: *** [FvwmButtons] Error 1
> make[1]: Leaving directory `/usr/src/fvwm-2.0.42/modules/FvwmButtons'
>
> However, 'nm libfvwm.a' ......
>
> Picture.o:
> 0000000000000110 T CachePicture
> 00000000000001d0 T DestroyPicture
> 00000000000000b0 T GetPicture
> 0000000000000000 T InitPictureCMap
> 0000000000000030 T LoadPicture
> 0000000000000000 b PictureCMap
> 0000000000000000 d PictureList
> U XFreePixmap
> U XGetWindowAttributes
> U XReadBitmapFile
> U findIconFile
> U free
> U safemalloc
>
>
> Any ideas ?

Yep. Try renaming the old libfvwm.a (in /usr/lib/X11) to something like
libfvwm.a.old & try relinking. For some reason, make grabs that version
and not the version that's in ../lib. I've run into this before & I
always rename the old libfvwm.a to something else before I link.

A hack, but it works. :(


-- Brandon Browning )
   Powertie Software (
   http://www.powertie.org/ c[]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
In every real man a child is hidden who wants to play.

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Apr 23 1996 - 23:05:50 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST