Re: FVWM: configure do not recognize xpm

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sun, 4 Aug 2002 22:28:59 +0000

On 04 Aug 2002 21:49:39 +0200, Sigmund Skjelnes wrote:
>
> I'd trying to get an fvwm 2.4.8 installed on an netbsd 1.5, but fvwm2 do
> not find the xpm. When I'd try to run the configure script, it comes up
> with "XPM support NO". An piece of config.log:
> <quote>
> configure:2560: checking for XpmReadFileToXpmImage in -lXpm
> configure:2579: gcc -o conftest -g -O2 conftest.c -lXpm
> -L/usr/local/xpm-3.4k/
> lib -lXpm -L/usr/X11R6/lib -lSM -lICE -lX11 1>&5
> configure:2623: checking for X11/xpm.h
> configure:2633: gcc -E -I/usr/local/xpm-3.4k/exports/include/X11
> -I/usr/X11R6/
> include conftest.c >/dev/null 2>conftest.out
> configure:2685: checking for Xpm 3.4g or better
> configure:2702: gcc -o conftest -g -O2
> -I/usr/local/xpm-3.4k/exports/include/X1
> 1 -I/usr/X11R6/include conftest.c -L/usr/local/xpm-3.4k/lib -lXpm
> -L/usr/X11
> R6/lib -lSM -lICE -lX11 1>&5
> configure: failed program was:
> #line 2694 "configure"
> #include "confdefs.h"
> #include <X11/xpm.h>
> int main(int c, char **v) {
> return c == 1 ? 0 :
> XpmIncludeVersion != XpmLibraryVersion() ? 1 :
> XpmIncludeVersion < 30407 ? 2 : 0 ;}
> configure:2788: checking for rplay_create in -lrplay

It seems that the program is compiled, but returns a non zero.

To be sure, compose this small program myxpmtest.c:

#include <stdio.h>
#include <X11/xpm.h>
int main() {
        printf("XpmIncludeVersion=%d, XpmLibraryVersion=%d\n",
                XpmIncludeVersion, XpmLibraryVersion());
}

Compile it using:

  % gcc -o myxpmtest -I/usr/local/xpm-3.4k/exports/include/X11 -L/usr/local/xpm-3.4k/lib -lX11 -lXpm myxpmtest.c

and run it. You should see the problem better.
It prints for me: XpmIncludeVersion=30411, XpmLibraryVersion=30411.

> This looked like something were wrong in my xpm support. I checked
> version of the xpm, and it were xpm 3.4k. fvwm2 requires 3.4g, I'd
> assume this is OK. I'd like to check the xpm installation, I downloaded
> xpm from ftp.x.org, and installed it in a new directory, not to muck up
> the NetBSD package system. The configure script were given proper xpm
> options to find the xpm, but got the same negative result. Could xpm not
> be backwards compatible? Is there done anything in xpm 3.4k that make
> any program looking for xpm 3.4g fail?
>
> Of course I'd get no icons, and when I'd tries to use an .fwvm2rc that
> is supposed to look like win 95, I do not get any button bar, I'd think
> that is because xpm read is failing, and make the button bar fail too.

Theoretically a button bar (do you mean FvwmTaskBar or FvwmButtons?)
should work without an xpm support. If it is started when you manage to
build with xpm support, post your relevant configuration lines.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Aug 04 2002 - 17:29:58 BST

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