Re: FVWM: Question about configuring with libXpm

From: <Robert_at_Knighten.org>
Date: Wed, 27 Mar 2002 14:53:39 -0800

Dan --

I appreciate the suggestions, and apologize for the delay in replying. My
e-mail is erratic at the moment.

I followed your suggestion with the following result:

knighten:~/C gcc -o conftest -g -O2 conftest.c -lXpm /usr/X11R6/lib/libXpm.so -L/usr/X11R6/lib -lSM -lICE -lX11

/usr/X11R6/lib/libXpm.so: undefined reference to `_fxstat'
collect2: ld returned 1 exit status

which appears to be just what is happening with configure.

And looking for _fxstat in the output of nm /usr/X11R6/lib/libXpm.so shows
         U _fxstat

I've not tried rebuilding libXpm.so as it does appear to work.

I have tried getting around configure and reworking the makefile so link with
libXpm.so, but I haven't been successful with that.

-- Bob


Dan Espen writes:
> Robert_at_knighten.org writes:
> > Dan --
> >
> > Thank you for your reply. I am trying to use libXpm.so.4.11. This
> > was indeed included with the Mandrake distribution and was installed
> > in /usr/X11R6/lib. But I got essentially the same messages as
> > below.
> > So I tried downloading the binary from ftp.x.org/contrib/libraries.
> > This was not the same as the one included with the Mandrake
> > distribution, so I tried using this - same failure. And that is
> > where I am now.
>
> When you reply, remember to always reply to fvwm_at_fvwm.org.
>
> Try to simplify the problem.
>
> The configure test is trying to compile and link this little program:
>
> char XpmReadFileToXpmImage();
> int main() {
> XpmReadFileToXpmImage();
> return 0;
> }
>
>
> Take those lines and put them in a file named conftest.c.
>
> Then run this command in the same directory:
>
> gcc -o conftest -g -O2 conftest.c -lXpm \
> /usr/X11R6/lib/libXpm.so -L/usr/X11R6/lib -lSM -lICE -lX11
>
> Let us know what that does.
>
> Try this command:
>
> nm /usr/X11R6/lib/libXpm.so | grep fxstat
>
> Let us know what that does.
>
>
> Another thing to try is building and installing libXpm instead
> of downloading a binary.
>
>
> Other than that, I have no clue. Perhaps someone else on the list
> has an idea.
>

--
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 Wed Mar 27 2002 - 16:55:07 GMT

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