Urza9814 Posted January 4, 2007 Report Share Posted January 4, 2007 (edited) Ok, so I'm not having much luck on the Freenet mailing list, so I figured I'd try here. I just upgraded from Mandriva 2006 to 2007, and Freenet no longer works. Here's the error I'm getting: [root@localhost fnet2]# sh start-freenet.sh Detected freenet-ext.jar Detected freenet.jar Sun java detected. head: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory sed: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Sun Java 1.4.2 detected. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Starting Freenet now: Command line: java -Xmx128m freenet.node.Main nice: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Done One of the suggestions given to me was to comment out the following lines in the start-freenet.sh script: if test -f /etc/redhat-release then LD_ASSUME_KERNEL=2.2.5 export LD_ASSUME_KERNEL gentoo however dies with 2.2.5 elif test -f /etc/gentoo-release -o -f /etc/SuSE-release then LD_ASSUME_KERNEL=2.4.1 export LD_ASSUME_KERNEL else LD_ASSUME_KERNEL=2.2.5 export LD_ASSUME_KERNEL fi That made it appear to work, but it wouldn't actually load. I also tried replacing it with 'LD_ASSUME_KERNEL=2.6.17', but that did the saem thing. My final attempt was to copy over the libc.so.6 and the glibc-2.3.5.so from my old mandriva install, but as expected, that failed too, with the following error: [root@localhost fnet2]# sh start-freenet.sh Detected freenet-ext.jar Detected freenet.jar Sun java detected. start-freenet.sh: line 132: gentoo: command not found head: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference sed: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference grep: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference grep: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference grep: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference Sun Java 1.4.2 detected. uname: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference Starting Freenet now: Command line: java -Xmx128m freenet.node.Main nice: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference Done Any ideas what I can do to get this thing working? Edited January 4, 2007 by Urza9814 Quote Link to comment Share on other sites More sharing options...
Ixthusdan Posted January 5, 2007 Report Share Posted January 5, 2007 I have found these sorts of oddities with upgrades rather than fresh installs. Try to force an install of the current rpm containing the driver, and see if it gets happy. But, it is possible that something else is creating the error, and all we are seeing is a symptom. :unsure: Quote Link to comment Share on other sites More sharing options...
Urza9814 Posted January 5, 2007 Author Report Share Posted January 5, 2007 (edited) It wasn't an upgrade, it was a fresh install. My old system had too many problems and was on a separate drive. heh What package contains libc.so.6? glibc? I downloaded 2.5 source (I currently have 2.4), but I dunno what options to pass to configure it. I also can't find any RPMs for Mandriva 2007. Would it screw it up if I used a 2006 RPM? Might fix my Freenet problem, but would it screw up other stuff? Probably if it was an older version I guess.... :( edit: Ah, here's an '07 RPM on rpm.pbone.net/. I'll try forcing that, see how it works. Got it installed, but still no luck. Edited January 5, 2007 by Urza9814 Quote Link to comment Share on other sites More sharing options...
mystified Posted January 6, 2007 Report Share Posted January 6, 2007 What package contains libc.so.6? glibc? Yes, it's glibc. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted January 7, 2007 Report Share Posted January 7, 2007 Are you REALLY running freenet as root? This is ummm, brave... :P The problem is surely enough the start-freenet.sh script, and the "export LD_ASSUME_KERNEL" commands it contains. Can you post the whole of it here? (shouldn't be more than 200 lines) Quote Link to comment Share on other sites More sharing options...
Urza9814 Posted January 7, 2007 Author Report Share Posted January 7, 2007 (edited) Yup, here ya go. 150 lines. Probably should post as an attachment, but I'm lazy. lol #!/bin/sh # Check to see whether we use echo -n or echo "\c" to suppress newlines. case "`echo 'hi there\c'; echo ' '`" in *c*) n='-n'; c='';; *) n=''; c='\c';; esac # and get java implementation too, Sun JDK or Kaffe JAVA_IMPL=`java -version 2>&1 | head -n 1 | cut -f1 -d' '` SEEDURL="http://www.freenetproject.org/snapshots/seednodes.ref.bz2" if test -f lib/freenet-ext.jar; then CLASSPATH=lib/freenet-ext.jar:$CLASSPATH echo Detected freenet-ext.jar in lib/ elif test -f freenet-ext.jar; then CLASSPATH=freenet-ext.jar:$CLASSPATH echo Detected freenet-ext.jar else echo freenet-ext.jar not found. It can be downloaded from echo http://freenetproject.org/snapshots/freenet-ext.jar echo echo $n "Would you like me to download it now? [Y/n] $c" read resp case "$resp" in [Nn]*) exit 0;; esac wget http://freenetproject.org/snapshots/freenet-ext.jar if test ! -f freenet-ext.jar; then echo "Sorry, I couldn't download it. Aborting." exit 1 fi fi if test -f freenet.jar; then CLASSPATH=freenet.jar:$CLASSPATH echo Detected freenet.jar elif test -f lib/freenet.jar; then CLASSPATH=lib/freenet.jar:$CLASSPATH echo Detected freenet.jar in lib/ elif test -f build/freenet/node/Node.class; then CLASSPATH=build/:$CLASSPATH echo Detected built tree in build/ else echo freenet.jar not found. It can be downloaded from echo http://freenetproject.org/snapshots/freenet-latest.jar echo echo $n "Would you like me to download it now? [Y/n/u] (type u to have me download the unstable jar, otherwise I will fetch the stable jar) $c" read resp case "$resp" in [Nn]*) exit 0;; [Uu]*) wget http://freenetproject.org/snapshots/freenet-unstable-latest.jar -O freenet.jar SEEDURL="http://www.freenetproject.org/snapshots/unstable.ref.bz2";; [Yy]*) wget http://freenetproject.org/snapshots/freenet-latest.jar -O freenet.jar;; esac if test ! -f freenet.jar; then echo "Sorry, I couldn't download it. Aborting." exit 1 fi fi CLASSPATH=freenet.jar:freenet-ext.jar:$CLASSPATH export CLASSPATH # why are we permanently altering the environment? # because bourne shell needs it! if test ! -f seednodes.ref; then echo seednodes.ref not found, would you like to download some seeds echo from $SEEDURL ? echo $n "[y/N] $c" read resp case "$resp" in [yY]*) wget $SEEDURL -O new-seednodes.ref.bz2 if test -s new-seednodes.ref.bz2; then bzcat new-seednodes.ref.bz2 >seednodes.ref; rm -f new-seednodes.ref.bz2 fi ;; esac fi if test ! -f freenet.conf; then echo It appears that this is your first time running Freenet. You echo should read the README file as it contains important instructions echo and advice. echo echo First we must generate a freenet.conf file. I will now run echo Freenet in configure mode, and it will ask you a number of echo questions. If you don\'t understand the question, hitting "enter" echo without typing anything will go with the default which is likely echo to be the right thing. echo if test ! -f preconfig.sh; then if test -f scripts/preconfig.sh; then sh scripts/preconfig.sh else echo Could not find preconfig.sh or scripts/preconfig.sh exit 23 fi else sh preconfig.sh fi java freenet.node.Main --config fi # if Sun JDK set -server option as suggested on mailing list #if java -help 2>&1 | grep "[-]server" >/dev/null; #then # JAVA_ARGS="-server" #else # JAVA_ARGS="" #fi # multiple reports that -server option seems to cause crashes # sun specific options if [ "$JAVA_IMPL" = "java" ]; then echo Sun java detected. # Tell it not to use NPTL. # BAD THINGS happen if it uses NPTL. # Specifically, at least on 1.4.1. and 1.5.0b2, we get hangs # where many threads are stuck waiting for a lock to be # unlocked but no thread owns it. if test -f /etc/redhat-release then LD_ASSUME_KERNEL=2.2.5 export LD_ASSUME_KERNEL gentoo however dies with 2.2.5 elif test -f /etc/gentoo-release -o -f /etc/SuSE-release then LD_ASSUME_KERNEL=2.4.1 export LD_ASSUME_KERNEL else LD_ASSUME_KERNEL=2.2.5 export LD_ASSUME_KERNEL fi # 1.4.0? SUN_VERSION=`java -version 2>&1 | head -n 1 | sed "s/java version \"\(.*\)\"/\1/"` if echo $SUN_VERSION | grep "^1.[0-3]"; then echo Old version of java detected. echo Please install a 1.4.x JVM. exit fi if echo $SUN_VERSION | grep "^1.4.0"; then echo Sun java 1.4.0 detected. echo Not a good idea. Sun java 1.4.0 has some serious problems relating to NIO, which cause freenet not to run well on it. Please upgrade to a more recent JVM. exit fi if echo $SUN_VERSION | grep "^1.4.1"; then echo Sun java 1.4.1 detected, do not need to specify direct memory limit. OK. else echo Sun Java 1.4.2 detected. if test ! `uname` == "Darwin"; then JAVA_ARGS="-XX:MaxDirectMemorySize=128m $JAVA_ARGS" fi fi fi echo -n "Starting Freenet now: " echo Command line: java -Xmx128m $JAVA_ARGS freenet.node.Main "$@" nice -n 10 -- java -Xmx128m $JAVA_ARGS freenet.node.Main "$@" & echo $! > freenet.pid echo "Done" Edited January 7, 2007 by Urza9814 Quote Link to comment Share on other sites More sharing options...
Urza9814 Posted January 7, 2007 Author Report Share Posted January 7, 2007 holy crap, it appears that forcing the LD_ASSUME_KERNEL to 2.6.17 or whatever does actually fix it...it just takes a lot longer than usual to start up for some reason. (by a lot longer I mean around 5-10 minutes instead of under 1) Well, it works I suppose. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.