Article View: news.software.readers
Article #70181[slrn] make Failure (Solaris + gcc)
From: Garry Williams
Date: Sat, 06 Jan 2001 21:08
Date: Sat, 06 Jan 2001 21:08
39 lines
2291 bytes
2291 bytes
This is a small irritation, but since I fixed it, I thought I'd post
the fix.
Building slrn on Solaris 2.7 with gcc 2.95.2 will fail, if
LD_LIBRARY_PATH is not set to identify the slang library directory.
To me, setting LD_LIBRARY_PATH is distasteful. Here's the fix:
LDFLAGS=-R/usr/local/lib ./configure
Now the slrn executable will be built with the path to the slang
libraries, but the chkslang program isn't built that way. Patch
src/Makefile.in to build the chkslang executable with the -R option:
$ diff -c slrn-0.9.6.3/src/Makefile.in.orig
slrn-0.9.6.3/src/Makefile.in
*** slrn-0.9.6.3/src/Makefile.in.orig Sat Jan 6 15:53:30 2001
--- slrn-0.9.6.3/src/Makefile.in Sat Jan 6 15:55:14 2001
***************
*** 133,139 ****
$(OBJDIR)/chkslang $(EXEC) 10003
#
$(OBJDIR)/chkslang: $(OBJDIR)/chkslang.o
! $(CC) $(OBJDIR)/chkslang.o -o $(OBJDIR)/chkslang $(EXECLIBS)
uudecode: uudecode.c $(UUDECODE_OBJS)
$(CC) $(ALL_CFLAGS) -DSTANDALONE $(LDFLAGS) -o uudecode uudecode.c $(UUDECODE_OBJS) $(EXECLIBS)
touch uudecode.c
--- 133,139 ----
$(OBJDIR)/chkslang $(EXEC) 10003
#
$(OBJDIR)/chkslang: $(OBJDIR)/chkslang.o
! $(CC) $(LDFLAGS) $(OBJDIR)/chkslang.o -o $(OBJDIR)/chkslang $(EXECLIBS)
uudecode: uudecode.c $(UUDECODE_OBJS)
$(CC) $(ALL_CFLAGS) -DSTANDALONE $(LDFLAGS) -o uudecode uudecode.c $(UUDECODE_OBJS) $(EXECLIBS)
touch uudecode.c
$
--
Garry Williams
Technical Details
Message-ID:
<1PL56.67$UQ5.3737@eagle.america.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!eagle.america.net.POSTED!garryShow Full Headers
Complete Article Headers
Message-ID: <1PL56.67$UQ5.3737@eagle.america.net> Subject: [slrn] make Failure (Solaris + gcc) Date: Sat, 06 Jan 2001 21:08:13 GMT From: garry@zvolve.com (Garry Williams) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!eagle.america.net.POSTED!garry Newsgroups: news.software.readers Organization: Zvolve Systems, Inc. User-Agent: slrn/0.9.6.3 (SunOS) Lines: 38 NNTP-Posting-Host: 216.3.26.18 X-Trace: eagle.america.net 978815293 216.3.26.18 (Sat, 06 Jan 2001 16:08:13 EST) NNTP-Posting-Date: Sat, 06 Jan 2001 16:08:13 EST