Re: FVWM: fvwm2.1.10 and Xpm3.4k

From: Andrew Laden <andrew_at_sgc.com>
Date: Fri, 29 Jan 1999 15:08:44 -0500 (EST)

Ok, Got a little luck here, sort of.

 Compiled with no problem or errors. When I tried to run it i got.

# ./conftest
ld.so.1: ./conftest: fatal: libXpm.so.4.11: can't open file: errno=2
Killed

Check the obvious permission errors. All fine. check the file type.

libXpm.so.4.11: ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically
linked, not stripped

Looks ok.

For S**ts and giggles I checked the 3.4g that I had been using. Noticed
that it didnt have the shared versions, only the straight ar archive. So I
got rid of the shared libraries and only left the unshared libXpm.a in
place.

 Recompiled, reran conftest. Works. Tried configure again. Works.

So, for some reason, something doesnt like the shared libraries. But That
doesnt bother me, as I would rather used the unshared, so I dont have to
worry about distributing a shared library as I install fvwm around here.

Thats what I get for using pre-compilied binaries of the libraries instead
of compiling them myself.

-Andrew


-- 
On 29 Jan 1999, Paul D. Smith wrote:
> %% Andrew Laden <andrew_at_sgc.com> writes:
> 
>   al> Recap: Fvwm 2.1.10, Xpm 3.4k, configure sees it, but thinks its
>   al> less then 3.4f.
> 
>   >> If that still doesn't help, look in the config.log file and see where it
>   >> tries to compile and run the xpm app to find the version: what does it
>   >> say there?
> 
>   al> Its says...(minus pine's formatting)
> 
>   al> configure:4382: checking for XpmReadFileToXpmImage in -lXpm
>   al> configure:4401: gcc -o conftest -g -O2   conftest.c -lXpm -L/opt/fvwm/lib
>   al> -lXpm 
>   al>  -L/usr/openwin/lib -R/usr/openwin/lib  -lX11 -lsocket  -lnsl  1>&5
>   al> configure:4446: checking for X11/xpm.h
>   al> configure:4456: gcc -E  -I/opt/fvwm/include  -I/usr/openwin/include
>   al> conftest.c >
>   al> /dev/null 2>conftest.out
>   al> configure:4508: checking for Xpm 3.4f or better
>   al> configure:4525: gcc -o conftest -g -O2  -I/opt/fvwm/include
>   al> -I/usr/openwin/include  conftest.c  -L/opt/fvwm/lib -lXpm
>   al> -L/usr/openwin/lib -R/usr/openwin/lib  -
>   al> lX11 -lsocket  -lnsl 1>&5
>   al> configure: failed program was:
>   al> #line 4517 "configure"
>   al> #include "confdefs.h"
>   al> #include <X11/xpm.h>
>   al>    int main(int c, char **v) {
>   al>    return c == 1 ? 0 :
>   al>      XpmIncludeVersion != XpmLibraryVersion() ? 1 :
>   al>      XpmIncludeVersion < 30406 ? 2 : 0 ;}
> 
> That's _it_?  No error message after that?  No link error?  Arg.
> 
> OK, try extracting the text there into a .c file and compiling it by
> hand using the commands configure used:
> 
>   $ cat >foo.c
>   #include <X11/xpm.h>
>   int main(int c, char **v) {
>     return c == 1 ? 0 :
>       XpmIncludeVersion != XpmLibraryVersion() ? 1 :
>       XpmIncludeVersion < 30406 ? 2 : 0 ;}
>   ^D
> 
>   $ gcc -o conftest -g -O2  -I/opt/fvwm/include -I/usr/openwin/include foo.c -L/opt/fvwm/lib -lXpm -L/usr/openwin/lib -R/usr/openwin/lib  -lX11 -lsocket  -lnsl
> 
> Do you get any compiler or linker errors?  Next try:
> 
>   $ ./conftest
>   $ echo $?
> 
> (assuming Bourne shells; I guess you'd use $status in C shells?)
> 
> What is the return code for the program?
> 
> 
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
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 Fri Jan 29 1999 - 14:54:17 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST