Re: FVWM: compiling fvwm 2.1.7 for xpm support

From: Paul D. Smith <psmith_at_baynetworks.com>
Date: 19 Jan 1999 10:29:18 -0500

%% aaron_at_pcez.com writes:

  a> I have /usr/X11R6/lib/libXpm.so.4.10 and libXpm.so.4 (sym link to
  a> first lib) so I don't know why it is failing. I'm doing everything as
  a> root so it is not a permissions issue.

  a> Here is the output from config.log I think you are talking about :

  a> configure:2769: gcc -o conftest -g -O2 -L/usr/X11R6/lib conftest.c
  a> -lICE 1>&5
  a> configure:2832: checking for XpmReadFileToXpmImage in -lXpm
  a> configure:2851: gcc -o conftest -g -O2 conftest.c -lXpm -lXpm
  a> -L/usr/X11R6/lib -lSM -lICE -lX11 1>&5
  a> ld: cannot open -lXpm: No such file or directory
  a> configure: failed program was:
  a> #line 2840 "configure"
  a> #include "confdefs.h"
  a> /* Override any gcc2 internal prototype to avoid an error. */
  a> /* We use char because int might match the return type of a gcc2
  a> builtin and then its argument prototype would still apply. */
  a> char XpmReadFileToXpmImage();
  a> int main() {
  a> XpmReadFileToXpmImage()
  a> ; return 0; }

Yes, that's it. Extremely strange. I'm going to go with an initial
opinion that something in your system config is messed up :)

Try this; create a foo.c:

 char XpmReadFileToXpmImage();
 int main() { XpmReadFileToXpmImage(); return 0; }

Now run the compile with the -v option:

  $ gcc -v -o foo -g -O2 foo.c -lXpm -lXpm -L/usr/X11R6/lib -lSM -lICE -lX11

and tell us what it prints. Check where it is looking for things for
any oddities. Although this absolutely shouldn't make any difference,
try rearranging things to look a little more "normal":

  $ gcc -v -o foo -g -O2 foo.c -L/usr/X11R6/lib -lXpm -lSM -lICE -lX11

Does that work better? I hope not, because if it does I'm not sure what
to do about it :-/.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith_at_baynetworks.com>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.
--
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 Tue Jan 19 1999 - 09:30:30 GMT

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