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.
>
> -- Bob
>
>
> Dan Espen writes:
> > Robert_at_knighten.org writes:
> > > I am building fvwm on Linux [version info: Linux version 2.4.8-26mdk
> > > (quintela_at_bi.mandrakesoft.com) (gcc version 2.96 20000731 (Mandrake Lin
> ux 8.1
> > > 2.96-0.62mdk)) #1 Sun Sep 23 17:06:39 CEST 2001]. I have downloaded th
> e
> > > latest version of Xpm but configure insists a usable version of libXpm
> cannot
> > > be found. Here is the relevant portion of config.log.
> > >
> > > This file contains any messages produced by compilers while
> > > running configure, to aid debugging if configure makes a mistake.
> > >
> > > . . .
> > >
> > > configure:2538: checking for XpmReadFileToXpmImage in -lXpm
> > > configure:2557: gcc -o conftest -g -O2 conftest.c -lXpm /usr/lib/libX
> pm.so
> > > -L/usr/X11R6/lib -lSM -lICE -lX11 1>&5
> > > /usr/X11R6/lib/libXpm.so: undefined reference to `_fxstat'
> > > collect2: ld returned 1 exit status
> > > configure: failed program was:
> > > #line 2546 "configure"
> > > #include "confdefs.h"
> > > /* Override any gcc2 internal prototype to avoid an error. */
> > > /* We use char because int might match the return type of a gcc2
> > > builtin and then its argument prototype would still apply. */
> > > char XpmReadFileToXpmImage();
> > >
> > > int main() {
> > > XpmReadFileToXpmImage()
> > > ; return 0; }
> > >
> > > . . .
> > >
> > > Comments about dealing with this will be appreciated.
> >
> > Running "nm" on my copy of libXpm.so and looking for fxstat I see:
> >
> > nm /usr/X11R6/lib/libXpm.so
> > ...
> > U __fxstat_at__at_GLIBC_2.0
> > ...
> >
> > I believe I'm running the same version of Mandrake you are.
> > I believe libXpm was already in /usr/X11R6/lib, perhaps I selected
> > it during the install.
> >
> > Anyway, I believe the "U" indicates that the symbol is undefined,
> > but it expects to resolve it from GLIBC_2.0.
> >
> > You don't say what version of Xpm you are trying to use or whether
> > you built it yourself...
> >
> > --
> > Dan Espen E-mail: dane_at_mk.telcordia.com
--
Dan Espen E-mail: dane_at_mk.telcordia.com
444 Hoes Lane Room RRC 1C-214 Phone: (732) 699-5570
Piscataway, NJ 08854
--
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 Mar 24 2002 - 06:27:20 GMT