🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #208806

[slrn] Slackware compiling against slang?

#208806
From: andrew
Date: Mon, 15 Oct 2007 21:27
77 lines
3556 bytes
Hi,

 I am hoping that there are some Slackware users here who have also
compiled slrn. I have never been able to compile slrn against the
version of slang that is installed with Slackware 12 and have had to
install a local version instead. Works fine but it is a problem that
has bothered me.The compiler finds the required libraries:

checking for the slang library and header files ... yes: /usr/lib and
/usr/include

but then dies:

andrew@ilium~/source/slrn$ make
cd src; make all
make[1]: Entering directory `/home/andrew/source/slrn/src'
cd /home/andrew/source/slrn/src/objs; gcc -c -g -O2  -Dunix
-DSLRN_SLANG_DIR=\"/usr/local/lib/slrn/slang\"
-DSLRN_LIB_DIR=\"/usr/local/lib/slrn\" -DSLRN_CONF_DIR=\"\"
-DNLS_LOCALEDIR=\"/usr/local/share/locale\"
/home/andrew/source/slrn/src/chkslang.c
gcc /home/andrew/source/slrn/src/objs/chkslang.o  -o
/home/andrew/source/slrn/src/objs/chkslang  -lslang     
/home/andrew/source/slrn/src/objs/chkslang slrn 10003

******
slang.h does not match slang library version.  Did you install slang
as as a shared library?  Did you run ldconfig?  You have an installation
problem and you will need to check the SLANG variables in the Makefile and
properly set them.  Also try: make clean; make
******

make[1]: *** [slangversion] Error 1
make[1]: Leaving directory `/home/andrew/source/slrn/src'
make: *** [all] Error 2

 have asked this question on a slackware newsgroup with an echoing
silence so I thought I would try here :-)

 The script that installs slang 2.0.7 runs the following:

rm -rf slang-$VERSION
tar xjvf $CWD/slang-$VERSION.tar.bz2 || exit 1
cd slang-$VERSION
chown -R root:root .
CFLAGS="$SLKCFLAGS" \
  ./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --includedir=/usr/include \
  --disable-static \
  $ARCH-slackware-linux

make -j4 || exit 1
make install DESTDIR=$PKG
make -j4 elf || exit 1
make install-elf DESTDIR=$PKG

chmod 755 $PKG/usr/lib/libslang.so.$VERSION
# --disable-static doesn't always work, but this is guaranteed:
rm -f $PKG/usr/lib/*.a

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : |
xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d
: | xargs strip --strip-unneeded 2> /dev/null
)

 My apologies for such a long post :-)

            Andrew
-- 
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Technical Details
Message-ID: <slrnfh7mmb.69o.andrew@ilium.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrnfh7mmb.69o.andrew@ilium.invalid>
Subject: [slrn] Slackware compiling against slang?
Date: Mon, 15 Oct 2007 21:27:13 +0000
From: andrew <andrew@ilium.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: Thersites Enterprises
Lines: 77
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 5yqt6oRbYxGSBm77aaBnMQbTUXdMdb+6RL4zNSzgsP1MDOg3er
Cancel-Lock: sha1:N/tu5kf8vlgzhrSo5uE1hw9ZPdE=
User-Agent: slrn/pre0.9.9-9 (Linux)