Article View: news.software.readers
Article #80931[slrn] 0.9.7.1: IRIX compiling problem+solution
From: Daniel E. Macks
Date: Wed, 27 Jun 2001 23:51
Date: Wed, 27 Jun 2001 23:51
35 lines
2269 bytes
2269 bytes
Just thought I'd share my experience with compiling slrn-0.9.7.1 on my
SGI (IRIX 6.5.8), using the IRIX cc compiler:
./configure --disable-inews --enable-hardcode-libs
[everything looks normal]
make
cd src; make all
mkdir /usr/local/slrn-0.9.7.1/src/objs
/bin/cp /usr/local/slrn-0.9.7.1/src/sysconf.h config.h
touch config.h
cd /usr/local/slrn-0.9.7.1/src/objs; cc -c -g -Dunix -I/usr/local/include -DSLRN_MACRO_DIR=\"/usr/local/share/slrn\" /usr/local/slrn-0.9.7.1/src/chkslang.c
cc /usr/local/slrn-0.9.7.1/src/objs/chkslang.o -o /usr/local/slrn-0.9.7.1/src/objs/chkslang -L/usr/local/lib -Wl,-R/usr/local/lib -lslang -lm
(null): WARNING 1 : Unknown option: R/usr/local/lib (ignored).
/usr/local/slrn-0.9.7.1/src/objs/chkslang slrn 10003 10400
82411:/usr/local/slrn-0.9.7.1/src/objs/chkslang: rld: Fatal Error: Cannot Successfully map soname 'libslang.so.1.4.4' under any of the filenames /usr/lib32/libslang.so.1.4.4:/usr/lib32/internal/libslang.so.1.4.4:/lib32/libslang.so.1.4.4:/opt/lib32/libslang.so.1.4.4:
*** Error code 1 (bu21)
*** Error code 1 (bu21)
To solve, I modified src/Makefile:
SLANGLIB = -L/usr/local/lib -Wl,-R/usr/local/lib#
to
SLANGLIB = -L/usr/local/lib -Wl,-rpath,/usr/local/lib#
IRIX ld uses -rpath instead of -R, and leaving out the comma makes cc
think that the whole thing is the flag, vs. flag with an argument
Hope this helps someone,
dan
--
Daniel Macks
dmacks@sas.upenn.edu
dmacks@netspace.org
http://www.netspace.org/~dmacks
Technical Details
Message-ID:
<slrn9jkscp.lv2.dmacks@mail2.sas.upenn.edu>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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!info1.fnal.gov!nntp.upenn.edu!dmacksShow Full Headers
Complete Article Headers
Message-ID: <slrn9jkscp.lv2.dmacks@mail2.sas.upenn.edu> Subject: [slrn] 0.9.7.1: IRIX compiling problem+solution Date: Wed, 27 Jun 2001 23:51:54 +0000 From: dmacks@mail.sas.upenn.edu (Daniel E. Macks) 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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!info1.fnal.gov!nntp.upenn.edu!dmacks Newsgroups: news.software.readers Organization: University of Pennsylvania Lines: 34 NNTP-Posting-Host: mail2.sas.upenn.edu User-Agent: slrn/0.9.5.7 (UNIX)