FVWM: Where do I specify -rpath?

From: <bard.saadatnejad_at_astro.uio.no>
Date: Mon, 15 Apr 1996 19:03:37 +0200

Paul Lange writes:
-------> > 4. 7546: /mn/vega/u1/bards/bin/fvwm2: /sbin/loader: Fatal Error: cannot
-------> > map libXpm.so
------->
-------> Yes, the loader is having a problem trying to find libXpm.so. It may compile
-------> fine, but that is probably because you compiled with the
-------> option, "-L/path/to/libXpm.so". This is fine for compiling, but when fvwm
-------> is executed, the loader doesn't know where to look anymore.
------->
-------> As mentioned before, you can fix this by setting the environment variable,
-------> LD_LIBRARY_PATH to the location of the file, -or-, and better yet, you can
-------> send a flag to the loader to create a path record in the executable so it
-------> knows where to look. On the system I am on (Digital Unix), that flag is
-------> -rpath <path>, on others it may be different. If you think multiple people
-------> might be using the fvwm that you compile, this would be a better fix, that
-------> way everybody who uses it doesn't have to set their LD_LIBRARY_PATH's.
------->
-------> And a word of warning to everybody on Digital Unix. It appears that vendor
-------> supplied loader does not allow for a space between -rpath and its argument.
-------> Also, there is no compiler option to send a flag to the loader. Thus, the
-------> compiler cannot handle the space, and thinks the argument to -rpath an object
-------> file. As of yet, I haven't found a good workaround, other than to change
-------> Makefiles so that the loader is called separately, or to make until it breaks,
-------> run the load line by hand, and make again. If anybody knows of a solution to
-------> this, I would be more than happy to know it.
-------> --
------->
-------> Paul Lange 5 Paul vs Data 0 pel_at_uts.cc.utexas.edu
-------> ---------------------------------------------------------------------------
-------> "Blest is the nation whose silent course of happiness furnishes nothing for
-------> history to say. This is what I ambition for my own country."
-------> - Thomas Jefferson to Comte Diodati, 1807
-------> ---------------------------------------------------------------------------
        Dear Paul!
        Thanks very much for your e-mail and the advice on how to
spoon feed the loader - it worked like a charm. I did, however, use the
pedestrian solution and simply defined the "LD_LIBRARY_PATH"
variable. I would like to make use of the more elegant solution which
you suggest (using the -rpath flag) but, I am not sure where this
should go. Can you help? I am also running fvwm on Digital Unix.

        Cheerio just now,
                        
                                Bard
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
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 Mon Apr 15 1996 - 12:01:19 BST

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