Discussion:
Valid xpm library not found
John Poltorak
2004-05-12 11:02:35 UTC
Permalink
My first attempt to build an X app - xpenguins -

http://xpenguins.seul.org/xpenguins-2.2.tar.gz


has resulted with this error msg when running configure:-


checking for a BSD-compatible install... /ux2bs/bin/install.exe
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XpmReadFileToData in -lXpm... yes
checking for XpmFree in -lXpm... no
configure: error: Valid xpm library not found


I have Xprog440.zip installed and there is a \usr\X11R6\lib\Xpm.a.

Does the error mean it can't be found or the one found is not suitable?
Or is there some other problem?

I'm using gcc 2.8.1 if that is a factor, and I have Posix/2 installed too.
--
John
Frank Gießler
2004-05-12 11:33:01 UTC
Permalink
Post by John Poltorak
checking for XpmReadFileToData in -lXpm... yes
checking for XpmFree in -lXpm... no
configure: error: Valid xpm library not found
Both XpmReadFileToData and XpmFree are in the library. I have no idea
why one works and the other fails. You should check what exactly
configure wants to see.

Regrds,
Frank.
--
Frank Giessler
Klinikum der Universitaet Jena Tel.: +49-3641-9 32 57 80
Biomagnetisches Zentrum Fax : +49-3641-9 32 57 72
John Poltorak
2004-05-12 12:09:54 UTC
Permalink
Post by Frank Gießler
Post by John Poltorak
checking for XpmReadFileToData in -lXpm... yes
checking for XpmFree in -lXpm... no
configure: error: Valid xpm library not found
Both XpmReadFileToData and XpmFree are in the library. I have no idea
why one works and the other fails. You should check what exactly
configure wants to see.
Config.log doesn't seem to make any sense to me since the results above
seem contradictory to the log:-


configure:4765: checking for XpmReadFileToData in -lXpm
configure:4797: gcc -o conftest.exe conftest.c -L/usr/X11R6/lib -lX11 -lXext >&5
g:\tmp\ccc20132: Undefined symbol _XpmReadFileToData referenced from text segment
configure:4803: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "xpenguins"
| #define VERSION "2.2"
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char XpmReadFileToData ();
| int
| main ()
| {
| XpmReadFileToData ();
| ;
| return 0;
| }
configure:4854: gcc -o conftest.exe conftest.c -lXpm -L/usr/X11R6/lib -lX11 -lXext -L/usr/X11R6/lib -lX11 -lXext >&5
configure:4860: $? = 0
configure:4864: test -z
|| test ! -s conftest.err
configure:4867: $? = 0
configure:4870: test -s conftest.exe
configure:4873: $? = 0
configure:4889: result: yes
configure:4906: checking for XpmFree in -lXpm
configure:4938: gcc -o conftest.exe conftest.c -lXpm -L/usr/X11R6/lib -lX11 -lXext >&5
configure:4944: $? = 0
configure:4948: test -z
|| test ! -s conftest.err
configure:4951: $? = 0
configure:4954: test -s conftest.exe
configure:4957: $? = 0
configure:5030: result: no
configure:5041: error: Valid xpm library not found



This doesn't make any sense at all, to me.


configure.in contains:-

AC_CHECK_LIB(Xpm, XpmReadFileToData,, \
AC_MSG_ERROR(Valid xpm library not found),$LIBS)
AC_CHECK_LIB(Xpm, XpmFree,, \
AC_MSG_ERROR(Valid xpm library not found),$LIBS)


Maybe I'll try it without running autoconf first...
Post by Frank Gießler
Regrds,
Frank.
--
Frank Giessler
Klinikum der Universitaet Jena Tel.: +49-3641-9 32 57 80
Biomagnetisches Zentrum Fax : +49-3641-9 32 57 72
--
John
John Poltorak
2004-05-12 12:56:47 UTC
Permalink
Post by John Poltorak
Maybe I'll try it without running autoconf first...
It works!

Autoconf must be introducing the error, so it isn't a XFree problem after
all.
Post by John Poltorak
Post by Frank Gießler
Regrds,
Frank.
--
Frank Giessler
Klinikum der Universitaet Jena Tel.: +49-3641-9 32 57 80
Biomagnetisches Zentrum Fax : +49-3641-9 32 57 72
--
John
Sebastian Wittmeier
2004-05-12 13:40:57 UTC
Permalink
Post by John Poltorak
configure:4797: gcc -o conftest.exe conftest.c -L/usr/X11R6/lib -lX11 -lXext >&5
g:\tmp\ccc20132: Undefined symbol _XpmReadFileToData referenced from text segment
you could try X_LIBS = -lXpm

Sebastian

Loading...