[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linrad] Re: Linrad 02.01/compilation with Suse 9.2 and Suse9.3
- Subject: [linrad] Re: Linrad 02.01/compilation with Suse 9.2 and Suse9.3
- From: "sm5bsz.com; leif@xxxxxxxxxxxxxxxx>
- Date: Mon, 20 Feb 2006 23:44:33 +0100
Hi Pierre and all,
The kernver program is a fix I made to handle the resource
usage function properly. The definition has been changed
and the change presumably goes with the gcc version.
I have just assumed kernels 2.5.xx and older use the old
linux definition while newer kernels follow the posix standard.
If someone on this list cares to make it properly I would be
happy to replace the kernver program with something else.
For the reason for failure , please look at kernver.c, line 51.
I have assumed that a Linux version has this format:
2.6.11-xxx
The minus sign after 11 is replaced by a point in Suse 9.3.
You might just make a file called rusage.h containing
#define RUSAGE_OLD 0 (followed by a carriage return.)
73
Leif
> Hi Leif,
>
> The compilation of Linrad 02.01 with Suse 9.2 went flawless.
>
> The Kernelversion is:
> Linux linux 2.6.8-24.16-default #1 Thu Jun 2 12:09:57 UTC 2005 i686 i686 i386
> GNU/Linux
> The Compiler version is:
> pierre@xxxxx:~> gcc -v
> Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs
> Configured with: ../configure --enable-threads=posix --prefix=/usr
> --with-local-prefix=/usr/local --infodir=/usr/share/info
> --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
> --disable-checking --libdir=/usr/lib --enable-libgcj
> --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib
> --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
> Thread model: posix
> gcc version 3.3.4 (pre 3.3.5 20040809)
> pierre@xxxxx:~>
>
>
> With Suse 9.3 however I got following error message:
>
> pierre@xxxxx:~/linrad/linrad-02.01> make linrad
> gcc kernver.c -c -o kernver.ol
> gcc -okernver -lm -Wl -s kernver.ol
> ./kernver
> err=3
> UNKNOWN KERNEL VERSION NUMBER:[2.6.11.4-21.10-default]
> make: *** [rusage.h] Error 1
>
> The Kernel version is:
> Linux linux 2.6.11.4-21.10-default #1 Tue Nov 29 14:32:49 UTC 2005 i686 i686
> i386 GNU/Linux
>
> The compiler version is:
> Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.5/specs
> Configured with: ../configure --enable-threads=posix --prefix=/usr
> --with-local-prefix=/usr/local --infodir=/usr/share/info
> --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
> --disable-checking --libdir=/usr/lib --enable-libgcj --with-slibdir=/lib
> --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
> Thread model: posix
> gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
>
> The file rusage.h was empty
>
> 73,
> Pierre/ON5GN
>
> -------------------------------------------------------
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
> To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
> To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
> To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
> Send administrative queries to <linrad-request@xxxxxxxxxxxxxxxxxxxxx>
>
#############################################################
This message is sent to you because you are subscribed to
the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to <linrad-request@xxxxxxxxxxxxxxxxxxxxx>
LINRADDARNIL