On Fri, 17 Jan 1997, Eddy J. Gurney wrote:
: On Jan 17, 23:25, Albrecht Kadlec wrote:
:
: ....stuff deleted.
:
: Finally, something that needs to be fixed in Fvwm.tmpl: in order for
: the Solaris dynamic linker to find the X libraries, I needed to change
: the FvwmModuleTarget and FvwmProgramTarget from '$(CC) -o $_at_...' to
: '$(CCLINK) -o $_at_...'. This is very important! It makes sure the
: LD_LIBRARY_PATH gets set before the link so the dynamic linker can find
: the X libraries. Prior to making this change, 'fvwm2' would not run,
: with the linker complaining about not be able to find the X libraries,
: and 'ldd' confirmed it. I tracked it down to this oversight in 'Fvwm.tmpl'.
: Can this be fixed?
:
: ....stuff deleted.
:
: Eddy
: --
This is indeed a problem with CC=cc. It is also true with some versions of
gcc. I have just upgraded from gcc 2.7.0 which did not have this problem to
2.7.2 which does as well as older gcc 2.6.*. In the gcc case it is not
LD_LIBRARY_PATH that gets set but rather LD_RUN_PATH, but the end result is
the same. Either of thses are supposed to get set to $(USRLIBDIR). In my
case this would be USRLIBDIR = /usr/local/X11R6/lib. Imake of corse thakes
care of this part.
The following command shows the problem with out the fix;
ldd fvwm/fvwm2
libXpm.so.4.3 => (unknown)
libXext.so.6.0 => (unknown)
libX11.so.6.0 => (unknown)
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libintl.so.1 => /usr/lib/libintl.so.1
libmp.so.1 => /usr/lib/libmp.so.1
I looked at the source to xdm and the builds on my various platforms, and
that all use a line like;
$(CCLINK) -o $_at_ $(LDOPTIONS).......
with;
CCLINK = $(CC)
automaticaly by imake for the non trivial case.
Thus I believe the following patch to Fvwm.tmpl should be in fvwm-2.0.45.
Would the fvwm-workers please try this on their platforms, if they are not
using X11R6.
Randall
diff -u -r1.1 Fvwm.tmpl
--- 1.1 1997/01/21 20:01:00
+++ Fvwm.tmpl 1997/01/21 22:25:30
_at_@ -466,7 +466,7 @@
_at_@\
program: $(OBJS) $(DEPLIBS) _at_@\
RemoveTargetProgram($_at_) @@\
- $(CC) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
+ $(CCLINK) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
_at_@\
InstallProgram(program,$(FVWMDIR)) _at_@\
InstallManPage(program,$(MANDIR)) _at_@\
_at_@ -491,7 +491,7 @@
_at_@\
program: $(OBJS) $(DEPLIBS) _at_@\
RemoveTargetProgram($_at_) @@\
- $(CC) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
+ $(CCLINK) -o $_at_ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
_at_@\
InstallProgram(program,$(FVWMBINDIR)) _at_@\
InstallManPage(program,$(MANDIR)) _at_@\
--
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 Tue Jan 21 1997 - 16:37:35 GMT