Author |
Message |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 2:03 am Post subject: FreeBSD and Python problems |
 |
|
|
|
I dont know what the best way is to fix this, but heres the problem I am having with the precompiled binarys..
ImportError: /usr/local/lib/python2.4/lib-dynload/cPickle.so: ELF file OS ABI invalid
D <net> listening on 0.0.0.0:5000 (0)
I <directory> server on port 5000 using name 'SSN Forever Dying'
I <directory> using 'sscentral.ds98.com' at 66.116.109.62 as a directory server
I <directory> using 'sscentral.subspace.inet.fi' at 62.65.37.101 as a directory server
I <directory> using 'sscentral.subspacehq.com' at 216.8.177.28 as a directory server
I <directory> using 'sscentral.subspace.net' at 216.157.150.64 as a directory server
E <pymod> can't import cPickle
D <main> entering main loop
I <billing_ssc> connecting to user database server at 75.19.89.78:900
I <billing_ssc> connected to user database server, logging in
D <mapnewsdl> news file 'news.txt' reread
Anyone that has already gone through this can give me an easy fix, or if I have to compile it myself for FreeBSD, I got it to compile, but for some reason it wont put the files into the asss folder, so if anyone knows anything about the compiling part would be great, thank you _________________
|
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sun Sep 10, 2006 10:34 am Post subject: |
 |
|
|
|
At a guess the precompiled binaries were made against a different version of python to what is installed on your machine.
I think cPickle is only for persist, which in english means a non-essential part of the turf module won't work.
Also the default compile option for asss is "symlink_bins" which means symlinks (shortcuts) are put in the bin directory to point at the compiled files in the build directory.
BTW you might want to edit the directory settings in global.conf, only sscentral.subspace.inet.fi and ssdir.getsubspace.com work.
(oh, and welcome back).
|
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Sun Sep 10, 2006 11:10 am Post subject: |
 |
|
|
|
Smong wrote: | BTW you might want to edit the directory settings in global.conf, only sscentral.subspace.inet.fi and ssdir.getsubspace.com work. |
He might also want to add sscentral.sscuservers.net which works, too.
Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... _________________ It's a shark! Oh my god! Unbelievable!
|
|
Back to top |
|
 |
Maverick

Age:41 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Sun Sep 10, 2006 11:36 am Post subject: |
 |
|
|
|
Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... wrote: | He might also want to add sscentral.sscuservers.net which works, too. | sscentral.sscuservers.net and sdir.getsubspace.com only then
(sscentral.subspace.inet.fi is the same as sscentral.sscuservers.net and I doubt the inet.fi domain still works since the stats already went down) _________________
|
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sun Sep 10, 2006 12:34 pm Post subject: |
 |
|
|
|
The DNS still works, even sscentral.sscx.net still works (but it points to the same IP as sscu/inet).
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 3:04 pm Post subject: |
 |
|
|
|
[tehsu@tsunade ~/asss-1.4.3/src]$ gmake
Makefile:110: ../build/deps.mk: No such file or directory
python ../scripts/makedeps.py -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -I/usr/local/BerkeleyDB.4.4/include -I/usr/local/include -I/usr/local/include/python2.4 \
*/*.c -P '$(BUILDDIR)/' -o ../build/deps.mk
makedeps: ignoring option: -D_REENTRANT
makedeps: ignoring option: -D_GNU_SOURCE
makedeps: ignoring option: -fPIC
makedeps: ignoring option: -I/usr/local/BerkeleyDB.4.4/include
makedeps: ignoring option: -I/usr/local/include
makedeps: ignoring option: -I/usr/local/include/python2.4
makedeps: warning: "pthread.h" not found
makedeps: warning: "zlib.h" not found
makedeps: warning: "mysql.h" not found
makedeps: warning: "db.h" not found
makedeps: warning: "errno.h" not found
makedeps: warning: "Python.h" not found
makedeps: warning: "structmember.h" not found
^^ Any ideas if thats important,
the directories are correct, but i dunno why it does that, it compiles
then it hits this
core/unixsignal.c:11:22: execinfo.h: No such file or directory
core/unixsignal.c: In function `handle_sigsegv':
core/unixsignal.c:90: warning: implicit declaration of function `fcloseall'
gmake: *** [../build/unixsignal.o] Error 1
I comment out fcloseall, and it keeps compiling and then it does the symlink
ln -sf ../bin
but when i look in the dir, nothing is there
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Sun Sep 10, 2006 3:58 pm Post subject: |
 |
|
|
|
I ran into this as well for the past few versions because for some reason grel's dependency python script wouldn't find the system libraries on my system even when defined. I had to manually create deps.mk
You can use the following to edit a diff/patch for deps.mk for wherever the libraries are, and then patch. _________________ Oldbie Server Help
patch for 1.4.3 deps.mk
deps.mk.txt - 7.07 KB
File downloaded or viewed 61 time(s)
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 5:37 pm Post subject: |
 |
|
|
|
I patched the file, but I still get the same error
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 6:16 pm Post subject: |
 |
|
|
|
what am i using to patch, should i use patch -p1 < ?
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 6:26 pm Post subject: |
 |
|
|
|
Ok I got the patch file going, now I get gcc -std=gnu99 -pipe -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -c -o ../build/pwcache.o
gcc: No input files specified
gmake: *** [../build/pwcache.o] Error 1
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 7:29 pm Post subject: |
 |
|
|
|
I can't get it to patch :-\
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Sun Sep 10, 2006 7:39 pm Post subject: |
 |
|
|
|
you may want to make sure your paths for db.h, mysql.h, etc... are correct, which is why I mentioned to edit it.
This second file i made is for 1.4.3. 1.4.2 doesn't have the pwcache if you're using that.
for patching all I did was patch deps.mk deps.mk.txt.
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 7:41 pm Post subject: |
 |
|
|
|
exactly, and this is what i get
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- deps.mk 2006-09-10 15:44:52.000000000 -0400
|+++ deps.mk.new 2006-09-10 15:53:53.000000000 -0400
--------------------------
Patching file deps.mk using Plan A...
Hunk #1 succeeded at 39.
Hunk #2 succeeded at 135.
patch: **** malformed patch at line 30: @@ -276,7 +277,7 @@
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Sun Sep 10, 2006 7:54 pm Post subject: |
 |
|
|
|
Oh well, I guess I messed up and you have to edit it manually.
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 8:19 pm Post subject: |
 |
|
|
|
Alright, I patched it by hand.. any ideas about unixsignal?
core/unixsignal.c:11:22: execinfo.h: No such file or directory
core/unixsignal.c: In function `handle_sigsegv':
core/unixsignal.c:90: warning: implicit declaration of function `fcloseall'
gmake: *** [../build/unixsignal.o] Error 1
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 8:31 pm Post subject: |
 |
|
|
|
well, i finish building, but the link at the end to ../bin theres no files in there
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 9:34 pm Post subject: |
 |
|
|
|
Ok, I got it workin, only thing I am missing now is the security.so, anyone anyone?
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 9:39 pm Post subject: |
 |
|
|
|
Well, I got it working for the most part, everything works just need the security.so, security:security works but security:enc_cont doesnt, so im just using enc_null
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Sun Sep 10, 2006 10:19 pm Post subject: |
 |
|
|
|
unfortunately, the source-only files don't include security.so. So you'll have to download the full one.
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Sun Sep 10, 2006 11:00 pm Post subject: |
 |
|
|
|
yeah, well, where can i find it, the one i downloaded is from 1.3.x
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Mon Sep 11, 2006 12:22 am Post subject: |
 |
|
|
|
asss.yi.org?
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Mon Sep 11, 2006 1:10 am Post subject: |
 |
|
|
|
you got me on this one, ive gone through everything and i see no security.so download
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Mon Sep 11, 2006 10:07 am Post subject: |
 |
|
|
|
I have it and I downloaded it yesterday. It wasn't so much of a real question as a polite question.
|
|
Back to top |
|
 |
TeHsU Seasoned Helper

Joined: Mar 20 2003 Posts: 101 Offline
|
Posted: Mon Sep 11, 2006 3:14 pm Post subject: |
 |
|
|
|
ill go look again, thanx alot! for your help, and everyone elses help, thanks very mcuh
|
|
Back to top |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
|
Back to top |
|
 |
|