Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Ladna

Linux Poll

Recommended Posts

Hey Linux users! I'm not sure if this goes in the Source Ports forum, but it is kinda technical. Mods feel free to move around and yell at me :).

I would like to know:

  • Linux distro name & version
  • glibc version
You can check glibc version by running:
/lib/libc.so.6
It looks like a library, but will also print a line like:
GNU C Library stable release version 2.5, by Roland McGrath et al.
So that's 2.5 there.

The reason I want this stuff is so that I can try & get away with distributing 1 static Linux binary instead of 17.

Thanks in advance.

Share this post


Link to post

Debian Wheezy (Testing) - AMD64
GNU C Library (Debian EGLIBC 2.13-16) stable release version 2.13

EDIT: also, I had to run either /lib32/libc.so.6 or /lib/x86_64-linux-gnu/libc.so.6 because I don't have /lib/libc.so.6

Share this post


Link to post

Thanks guys. For fairness' sake, here's my info:

Slackware 13.1 32-bit
GNU C Library stable release version 2.11.1, by Roland McGrath et al.

And if you can believe it, that 2.5 is from CentOS 5.6! That is, by any definition, EXTREMELY old. Big WTF there. Well, probably it's to preserve binary compatibility throughout the (ancient) 5 series. But still....

And good call exp(x), I forgot about the lib32 stuff in Debian.

Share this post


Link to post

Unless he's changed recently, last time I heard, exp(x) was actually using Debian/i386 with the amd64 kernel (so 64-bit kernel with a 32-bit userland).. my regular Debian/amd64 system just has a plain /lib/libc.so.6

As for myself, I actually have four distros installed that I can give you info for :P

Arch Linux x86_64 (it's rolling release, no version number)
GNU C Library stable release version 2.14

Debian 6.0, Squeeze, x86_64
GNU C Library (Debian EGLIBC 2.11.2-10) stable release version 2.11.2

Fedora 15 x86_64
GNU C Library stable release version 2.14

CentOS 6 x86_64
GNU C Library stable release version 2.12

For both Fedora and CentOS, I had to use /lib64 since /lib is strictly for 32-bit libraries (even on 64-bit).

Share this post


Link to post

> cat /etc/debian_version 
wheezy/sid
> uname -a
Linux ubuntu.home 2.6.38-2-686-bigmem #1 SMP Sun May 8 15:43:39 UTC 2011 i686 GNU/Linux
> LANG="C";/lib/libc.so.5
Segmentation fault
> /lib/i386-linux-gnu/libc-2.13.so
GNU C Library (Debian EGLIBC 2.13-10) stable release version 2.13, by Roland McGrath et al.

Share this post


Link to post

For what it's worth:

GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.8) stable release version 2.11.1, by Roland McGrath et al.
but read on:

Ladna said:

The reason I want this stuff is so that I can try & get away with distributing 1 static Linux binary instead of 17.


I take that you mean making a single binary, that will run on everything marked "Linux for Intel and Compatibles"?

As much as I'd like to see that getting done myself (for an application more complex than "Hello World") this is a kind of Columbus Egg for the Linux world.

From my experience, at best you'll get a "yeah, maybe, but" kind of civil response.

More probably, just mentioning "cross-distro Linux binary compatibility" will open several cans of worms, start flaming Holy Wars, cause a bazillion crackpot philosophers and wannabe Linux-intellectuals to mention things like the LSB, the evils of static linking, how this is "not the proper way to do things on Linux", "it depends on the repo maintainers", "Stallman will sodomize your ass if you don't distribute from source" etc. etc.

It's kinda like a woman asking you "Do I look fat?", only worse. And good luck with that ;-)

[flame shields on]

ETA to impact in 3...2...1....

Share this post


Link to post
chungy said:

Unless he's changed recently, last time I heard, exp(x) was actually using Debian/i386 with the amd64 kernel (so 64-bit kernel with a 32-bit userland).. my regular Debian/amd64 system just has a plain /lib/libc.so.6

I changed recently, and the reason /lib/libc.so.6 is gone has to do with this: http://wiki.debian.org/Multiarch

Share this post


Link to post

Scientific Linux 6 64bit
GNU C Library stable release version 2.12

Debian 6 Squeeze 32bit
GNU C Library (Debian EGLIBC 2.11.2-10) stable release version 2.11.2

Share this post


Link to post

Arch Linux (64-bit)
Kernel 3.0.3
GNU C Library stable release version 2.14, by Roland McGrath et al.

Share this post


Link to post

Arch Linux x86_64

Yeah it's been listed twice already, but... here the full output in case you find it useful.

GNU C Library stable release version 2.14, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.6.1.
Compiled on a Linux 3.0.1 system on 2011-08-14.
Available extensions:
	crypt add-on version 2.1 by Michael Glad and others
	GNU Libidn by Simon Josefsson
	Native POSIX Threads Library by Ulrich Drepper et al
	BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

Share this post


Link to post

A little late, but:

Ubuntu 10.04 (lucid)

GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.8) stable release version 2.11.1, by Roland McGrath et al.
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.3.
Compiled on a Linux >>2.6.24-27-server<< system on 2011-01-21.
Available extensions:
	crypt add-on version 2.1 by Michael Glad and others
	GNU Libidn by Simon Josefsson
	Native POSIX Threads Library by Ulrich Drepper et al
	BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.

Share this post


Link to post

Debian Squeeze x86_64

Linux stevenversatile 2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011 x86_64 GNU/Linux
GNU C Library (Debian EGLIBC 2.11.2-10) stable release version 2.11.2, by Roland McGrath et al.
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.5.
Compiled on a Linux 2.6.32 system on 2011-01-23.
Available extensions:
	crypt add-on version 2.1 by Michael Glad and others
	GNU Libidn by Simon Josefsson
	Native POSIX Threads Library by Ulrich Drepper et al
	BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.
Please don't hack me now.

Share this post


Link to post

Sabayon gentoo Linux 2.4. Linux sabayon 2.6.35-sabayon #1 SMP Sun Sep 19 16:45:08 UTC 2010 i686 Intel(R) Core(TM) i3 CPU 530 @ 2.93GHz GenuineIntel GNU/Linux

Glibc: GNU C Library stable release version 2.10.1, by Roland McGrath et al.

Gentoo FTW.

Share this post


Link to post

Ubuntu 11.04
GNU C Library (Ubuntu EGLIBC 2.13-0ubuntu13) stable release version 2.13, by Roland McGrath et al.

I don't mind having to compile from source, as long as your build scripts actually work. prboom-plus only distributes source and there's no big problem updating that every time Andrey releases a new version. I'd assume most Linux users are at least capable of typing "./configure" and "make".

Share this post


Link to post
Ladna said:

Yeah of course different CPU architectures will need separate binaries. I don't have a way to build SPARC or Itanium binaries, but I don't think anyone would try to play competitively on one of those machines anyway. ARM I can easily do (hey Ladna... is that a sexy Nokia N900 you have there....?1?!).

I'll create an official OpenPandora port!

(on that note I should fix up the compiled binaries for prboom-plus I made and release it to the OP repository, along with Odamex 0.5.4 when I finally get around to compiling the launcher)

I will get uname and libc details from my Pandora when I get home

Share this post


Link to post

From my OpenPandora running "Zaxxon Hotfix 5" (which is the official Angstrom-based distro)

nintendo-3ds:~$ uname -a
Linux nintendo-3ds 2.6.27.46-omap1 #1 Wed Feb 23 01:09:42 CET 2011 armv7l GNU/Linux

nintendo-3ds:~$ /lib/libc.so.6
GNU C Library stable release version 2.9, by Roland McGrath et al.

Share this post


Link to post

nothing exciting from my side:
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.8) stable release version 2.11.1

running on Ubuntu 10.04

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×