Re: FVWM: configure do not recognize xpm

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Mon, 5 Aug 2002 22:33:39 +0000

On 05 Aug 2002 20:52:31 +0200, Sigmund Skjelnes wrote:
>
> Mikhael Goikhman wrote:
> >
> > 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.
>
> Took your advice, it may look like we have an clue here, cause it wont
> compile:
>
> bash-2.04$ cd /var/tmp
> bash-2.04$ gcc -o myxpmtest -I/usr/local/xpm-3.4k/exports/include/X11/
> -L/usr/local/xpm-3.4k/lib -lX11 -lXpm myxpmtest.c
> myxpmtest.c:2: X11/xpm.h: No such file or directory
> bash-2.04$
>
> Took away ../X11, as "#include <X11/xpm.h>
> " includes this.
>
> Then:
> bash-2.04$ gcc -o myxpmtest -I/usr/local/xpm-3.4k/exports/include/
> -I/usr/X11R6/include -L/usr/local/xpm-3.4k/lib -lX11 -lXpm myxpmtest.c
> /usr/bin/ld: cannot open -lX11: No such file or directory
> collect2: ld returned 1 exit status
>
> Something is definitely rotten, also in my system. Have tried to take
> away those two -l opts, but I'd get " undefined reference to
> `XpmLibraryVersion'". Seems to me that I can't get the object files (or
> library?) files to link as they are supposed to.

This is ok, just add -L/usr/X11R6/lib and probably you will be able to
compile the test program, supply additional parameter to gcc if not.
If you want icons, you should successfully build and run this xpm test.

It is strange that you don't get the gcc or cpp/ld error in config.log.

So, returning to your problem, the correct options for you seem to be:

  ./configure --with-xpm-includes=/usr/local/xpm-3.4k/exports/include \
    --with-xpm-library=/usr/local/xpm-3.4k/lib

Please write to the list.

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 Mon Aug 05 2002 - 17:34:55 BST

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