Thread View: news.software.readers
15 messages
15 total messages
Started by andrew
Mon, 15 Oct 2007 21:27
[slrn] Slackware compiling against slang?
Author: andrew
Date: Mon, 15 Oct 2007 21:27
Date: Mon, 15 Oct 2007 21:27
77 lines
3556 bytes
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 ...
Re: [slrn] Slackware compiling against slang?
Author: John E. Davis
Date: Mon, 15 Oct 2007 22:10
Date: Mon, 15 Oct 2007 22:10
22 lines
1686 bytes
1686 bytes
On 15 Oct 2007 21:27:13 GMT, andrew <andrew@ilium.invalid> wrote: > checking for the slang library and header files ... yes: /usr/lib and > /usr/include > > but then dies: [...] > ****** > 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 > ****** What do the following produce? # ldd slrn/src/objs/chkslang # grep SLANG_VERSION /usr/include/slang.h # ls -l /usr/lib/libslang* Thanks, --John
Re: [slrn] Slackware compiling against slang?
Author: andrew
Date: Mon, 15 Oct 2007 22:26
Date: Mon, 15 Oct 2007 22:26
47 lines
2862 bytes
2862 bytes
On 2007-10-15, John E. Davis <jed@jedsoft.org> wrote:
> On 15 Oct 2007 21:27:13 GMT, andrew <andrew@ilium.invalid>
> wrote:
[...]
> What do the following produce?
>
> # ldd slrn/src/objs/chkslang
andrew@ilium~/source$ ldd slrn/src/objs/chkslang
linux-gate.so.1 => (0xffffe000)
libslang.so.2 => /usr/lib/libslang.so.2 (0xb7e35000)
libc.so.6 => /lib/libc.so.6 (0xb7cf3000)
libdl.so.2 => /lib/libdl.so.2 (0xb7cef000)
libm.so.6 => /lib/libm.so.6 (0xb7cc8000)
/lib/ld-linux.so.2 (0xb7f05000)
> # grep SLANG_VERSION /usr/include/slang.h
andrew@ilium~$ grep SLANG_VERSION /usr/include/slang.h
#define SLANG_VERSION 20007
#define SLANG_VERSION_STRING "2.0.7"
/* # define SLANG_VERSION_STRING SLANG_VERSION_STRING0 " " __DATE__ */
/* # define SLANG_VERSION_STRING SLANG_VERSION_STRING0 */
SL_EXPORT int SLmodule_##name##_api_version = SLANG_VERSION
SL_EXPORT int SLmodule_##name##_api_version = SLANG_VERSION
> # ls -l /usr/lib/libslang*
andrew@ilium~$ ls -l /usr/lib/libslang*
lrwxrwxrwx 1 root root 17 2007-10-08 04:45 /usr/lib/libslang.so ->libslang.so.2.0.7
lrwxrwxrwx 1 root root 17 2007-10-15 19:27 /usr/lib/libslang.so.1 -> libslang.so.1.4.9
-rwxr-xr-x 1 root root 376024 2007-10-15 19:26 /usr/lib/libslang.so.1.4.9
lrwxrwxrwx 1 root root 17 2007-10-08 04:45 /usr/lib/libslang.so.2 -> libslang.so.2.0.7
-rwxr-xr-x 1 root root 655936 2007-04-02 12:54 /usr/lib/libslang.so.2.0.7
lrwxrwxrwx 1 root root 17 2007-10-15 19:27 /usr/lib/libslang1.so -> libslang.so.1.4.9
Thanks for this!
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 ...
Re: [slrn] Slackware compiling against slang?
Author: John E. Davis
Date: Mon, 15 Oct 2007 23:28
Date: Mon, 15 Oct 2007 23:28
22 lines
1761 bytes
1761 bytes
Try this patch to chkversion.c. It may shed some light on what is
going on. Thanks, --John
#v+
Index: chkslang.c
===================================================================
--- chkslang.c (revision 228)
+++ chkslang.c (working copy)
@@ -70,6 +70,10 @@
as a shared library? Did you run ldconfig? You have an installation problem\n\
and you will need to check the SLANG variables in the Makefile and properly\n\
set them. Also try: make clean; make\n******\n\n"));
+
+ fprintf (stderr, "slang.h version: %d\nlibslang version %d\n",
+ SLANG_VERSION, SLang_Version);
+
return FAILURE;
}
#endif
#v-
Re: [slrn] Slackware compiling against slang?
Author: andrew
Date: Tue, 16 Oct 2007 00:30
Date: Tue, 16 Oct 2007 00:30
49 lines
2886 bytes
2886 bytes
On 2007-10-15, John E. Davis <jed@jedsoft.org> wrote:
> Try this patch to chkversion.c. It may shed some light on what is
> going on. Thanks, --John
I am very grateful for your assistance. Results:
slang.h version: 20006
libslang version 20007
make[1]: *** [slangversion] Error 1
make[1]: Leaving directory `/home/andrew/source/slrn/src'
make: *** [all] Error 2
I post the preceding compile process below.
I have a lingering suspicion that unless I have a made an error (= likely)
this could be a problem encountered with Slackware 12 before:
<slrnf9u5hp.1s7.invalid@yomomma.example.net>
and I duplicated the problem with a fresh 'full' slackware install on
another disk.
Thanks for your trouble,
Andrew
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 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
******
--
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 ...
Re: [slrn] Slackware compiling against slang?
Author: John E. Davis
Date: Tue, 16 Oct 2007 00:50
Date: Tue, 16 Oct 2007 00:50
20 lines
1663 bytes
1663 bytes
On 16 Oct 2007 00:30:57 GMT, andrew <andrew@ilium.invalid> wrote: > slang.h version: 20006 > libslang version 20007 > make[1]: *** [slangversion] Error 1 > make[1]: Leaving directory `/home/andrew/source/slrn/src' > make: *** [all] Error 2 This shows that the compiler is picking up another slang.h. Try # find /usr -name slang.h -print or # find / -name slang.h -print Good luck, --John
Re: [slrn] Slackware compiling against slang?
Author: andrew
Date: Tue, 16 Oct 2007 01:00
Date: Tue, 16 Oct 2007 01:00
30 lines
1976 bytes
1976 bytes
On 2007-10-16, John E. Davis <jed@jedsoft.org> wrote:
[...]
> This shows that the compiler is picking up another slang.h. Try
>
> # find /usr -name slang.h -print
>
> or
>
> # find / -name slang.h -print
root@ilium/home/andrew# find / -name slang.h -print
/usr/include/slang.h
/usr/include/slang1/slang.h
/usr/local/libslang/include/slang.h
/usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h
/usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang1/slang.h
/home/andrew/source/slang-2.1.2/src/slang.h
Thanks again,
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 ...
Re: [slrn] Slackware compiling against slang?
Author: John E. Davis
Date: Tue, 16 Oct 2007 01:26
Date: Tue, 16 Oct 2007 01:26
15 lines
1832 bytes
1832 bytes
On 16 Oct 2007 01:00:58 GMT, andrew <andrew@ilium.invalid> wrote: > root@ilium/home/andrew# find / -name slang.h -print > /usr/include/slang.h > /usr/include/slang1/slang.h > /usr/local/libslang/include/slang.h > /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h > /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang1/slang.h > /home/andrew/source/slang-2.1.2/src/slang.h My guess is that you are picking up one of the gcc-specific versions of slang.h. Grepping one of those for SLANG_VERSION will identify the culprit. --John
Re: [slrn] Slackware compiling against slang?
Author: andrew
Date: Tue, 16 Oct 2007 04:44
Date: Tue, 16 Oct 2007 04:44
49 lines
2625 bytes
2625 bytes
On 2007-10-16, andrew <andrew@ilium.invalid> wrote:
[...]
> root@ilium/home/andrew# find / -name slang.h -print
> /usr/include/slang.h
> /usr/include/slang1/slang.h
> /usr/local/libslang/include/slang.h
> /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h
> /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang1/slang.h
> /home/andrew/source/slang-2.1.2/src/slang.h
As you predicted:
$ grep SLANG_VERSION /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h
#define SLANG_VERSION 20006
#define SLANG_VERSION_STRING "2.0.6"
While the other:
grep SLANG_VERSION /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang1/slang.h
#define SLANG_VERSION 10409
#define SLANG_VERSION_STRING "1.4.9"
And for the sake of completion:
grep SLANG_VERSION /usr/include/slang.h
#define SLANG_VERSION 20007
#define SLANG_VERSION_STRING "2.0.7"
grep SLANG_VERSION /usr/include/slang1/slang.h
#define SLANG_VERSION 10409
#define SLANG_VERSION_STRING "1.4.9"
grep SLANG_VERSION /usr/local/libslang/include/slang.h
#define SLANG_VERSION 20102
#define SLANG_VERSION_STRING "2.1.2"
So this is an error in the Slackware install?
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 ...
Re: [slrn] Slackware compiling against slang?
Author: John E. Davis
Date: Tue, 16 Oct 2007 05:36
Date: Tue, 16 Oct 2007 05:36
19 lines
1992 bytes
1992 bytes
On 16 Oct 2007 04:44:35 GMT, andrew <andrew@ilium.invalid> wrote: > $ grep SLANG_VERSION /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h > #define SLANG_VERSION 20006 > #define SLANG_VERSION_STRING "2.0.6" [...] > So this is an error in the Slackware install? I believe so. Here is what that directory contains on my debian-etch system: #v+ # ls /usr/lib/gcc/i486-linux-gnu/4.1.2/include/ asm/ limits.h mm_malloc.h stdarg.h unwind.h emmintrin.h linux/ pmmintrin.h stdbool.h varargs.h float.h mm3dnow.h README stddef.h xmmintrin.h iso646.h mmintrin.h ssp/ syslimits.h #v- --John
Re: [slrn] Slackware compiling against slang?
Author: andrew
Date: Tue, 16 Oct 2007 21:42
Date: Tue, 16 Oct 2007 21:42
30 lines
2542 bytes
2542 bytes
On 2007-10-16, John E. Davis <jed@jedsoft.org> wrote:
> On 16 Oct 2007 04:44:35 GMT, andrew <andrew@ilium.invalid>
> wrote:
>> $ grep SLANG_VERSION /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h
>> #define SLANG_VERSION 20006
>> #define SLANG_VERSION_STRING "2.0.6"
> [...]
>> So this is an error in the Slackware install?
>
> I believe so. Here is what that directory contains on my debian-etch
> system:
> #v+
> # ls /usr/lib/gcc/i486-linux-gnu/4.1.2/include/
> asm/ limits.h mm_malloc.h stdarg.h unwind.h
> emmintrin.h linux/ pmmintrin.h stdbool.h varargs.h
> float.h mm3dnow.h README stddef.h xmmintrin.h
> iso646.h mmintrin.h ssp/ syslimits.h
> #v-
This may be bad news for users with a default install of Slackware 12
although obviously there is a workaround with a local install of
S-Lang. Mind you I have seen more enthusiasm for slrn in the ubuntu
newsgroup than amongst the slackware fraternity. Odd...
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 ...
Re: [slrn] Slackware compiling against slang?
Author: andrew
Date: Thu, 18 Oct 2007 13:42
Date: Thu, 18 Oct 2007 13:42
63 lines
3159 bytes
3159 bytes
On 2007-10-16, andrew <andrew@ilium.invalid> wrote:
> On 2007-10-16, John E. Davis <jed@jedsoft.org> wrote:
>> On 16 Oct 2007 04:44:35 GMT, andrew <andrew@ilium.invalid>
>> wrote:
>>> $ grep SLANG_VERSION /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h
>>> #define SLANG_VERSION 20006
>>> #define SLANG_VERSION_STRING "2.0.6"
>> [...]
>>> So this is an error in the Slackware install?
>>
>> I believe so.
[...]
> This may be bad news for users with a default install of Slackware 12
> although obviously there is a workaround with a local install of
> S-Lang. Mind you I have seen more enthusiasm for slrn in the ubuntu
> newsgroup than amongst the slackware fraternity. Odd...
This problem niggled at me for a while so I examined the file in
greater detail:
/usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h
and saw the tell-tale signs of automation gone wrong:
/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"/usr/include/slang.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
Changed:
#define SLANG_VERSION 20006
#define SLANG_VERSION_STRING "2.0.6"
to:
#define SLANG_VERSION 20007
#define SLANG_VERSION_STRING "2.0.7"
and recompiled:
andrew@ilium~$ slrn --version
slrn pre0.9.9-16
* Note: This version is a developer preview.
S-Lang Library Version: 2.0.7
Compiled at: Oct 18 2007 23:25:07
Operating System: Linux
'auto-edit' always fills me with suspicion :-)
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 ...
Re: [slrn] Slackware compiling against slang?
Author: Thomas Dickey
Date: Tue, 30 Oct 2007 12:24
Date: Tue, 30 Oct 2007 12:24
21 lines
1971 bytes
1971 bytes
John E. Davis <jed@jedsoft.org> wrote: > On 16 Oct 2007 04:44:35 GMT, andrew <andrew@ilium.invalid> > wrote: >> $ grep SLANG_VERSION /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h >> #define SLANG_VERSION 20006 >> #define SLANG_VERSION_STRING "2.0.6" > [...] >> So this is an error in the Slackware install? > I believe so. Here is what that directory contains on my debian-etch > system: Technically it's a conflict between slang and gcc. gcc's fixincludes looks for types and functions which it "knows" are in need of fixing. Since fixincludes won't change, the way to correct the problem is to see what symbol in slang.h is being "fixed" and alter it. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
Re: [slrn] Slackware compiling against slang?
Author: andrew
Date: Tue, 30 Oct 2007 21:03
Date: Tue, 30 Oct 2007 21:03
29 lines
2448 bytes
2448 bytes
On 2007-10-30, Thomas Dickey <dickey@saltmine.radix.net> wrote:
> John E. Davis <jed@jedsoft.org> wrote:
>> On 16 Oct 2007 04:44:35 GMT, andrew <andrew@ilium.invalid>
>> wrote:
>>> $ grep SLANG_VERSION /usr/lib/gcc/i486-slackware-linux/4.1.2/include/slang.h
>>> #define SLANG_VERSION 20006
>>> #define SLANG_VERSION_STRING "2.0.6"
>> [...]
>>> So this is an error in the Slackware install?
>
>> I believe so. Here is what that directory contains on my debian-etch
>> system:
>
> Technically it's a conflict between slang and gcc. gcc's fixincludes
> looks for types and functions which it "knows" are in need of fixing.
> Since fixincludes won't change, the way to correct the problem is to
> see what symbol in slang.h is being "fixed" and alter it.
Thanks for that Thomas. In fact I altered 20006 to 20007 and 2.0.6 to
2.0.7 and all was well.
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 ...
Re: [slrn] Slackware compiling against slang?
Author: John E. Davis
Date: Wed, 31 Oct 2007 01:12
Date: Wed, 31 Oct 2007 01:12
15 lines
1917 bytes
1917 bytes
On 30 Oct 2007 21:03:53 GMT, andrew <andrew@ilium.invalid> wrote: > Thanks for that Thomas. In fact I altered 20006 to 20007 and 2.0.6 to > 2.0.7 and all was well. Andrew, would you mind performing a diff of the 2.0.6 version of slang.h that is on your system with that from the slang-2.0.6 distribution? For your convenience, the latter file is available from <ftp://space.mit.edu/pub/davis/misc/slang.h-2.0.6> The diff will show what fix-includes "fixed". Thanks, --John
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads