Hi Niko, On Freitag, 23. Januar 2015, Niko Tyni wrote: > A quick search indicates that there's no separate namespace for other > uname(2) information than the host name and domain name. This suggests > that something like http://www.bstern.org/libuname/ is needed. I'm not > aware of anything in Debian already that does that. Time for an RFP maybe > :)
it builds fine but doesn't work:
jenkins@jenkins:~/u/libuname-1.0.0$ make
gcc -Wall -Werror -O2 -fPIC -c -o libuname.o libuname.c
if [ "`uname -s`" = "SunOS" ]; then \
ld -G -dy -z text -Qn -o libuname.so libuname.o; \
else \
ld -shared -fPIC -o libuname.so libuname.o; \
fi
jenkins@jenkins:~/u/libuname-1.0.0$ LD_PRELOAD=$PWD/libuname.so
LIBUNAME='Linux;bar;2.6.15;#1;Mon Feb 37 22:33:44 UTC 2006;i686;unknown' uname
-a
uname: symbol lookup error: /var/lib/jenkins/u/libuname-1.0.0/libuname.so:
undefined symbol: dlsym
cheers,
Holger
signature.asc
Description: This is a digitally signed message part.

