Compiled libFileSystem.so for AMD64

Java & general development

Moderator: developers

Compiled libFileSystem.so for AMD64

Postby fr0w » Thu Mar 09, 2006, 5:37 pm

Well, I got a 64bit system and I had to compile libFileSystem.so to fit the x86_64 OS requirements.
As it was a "not so simple" proccess, I decided to share that here.

System Specs:
Dual Core AMD Opteron(tm) Processor 170 @ 2.0Ghz


OS Information:
$ uname -a
Linux hostname 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue
Red Hat Enterprise Linux ES release 4 (Nahant Update 3)


I hope this should help some people.
I don't know if it does work on other plataforms but it does worth a try.
I'd love to see some feedback about testing it on some other systems/kernels/processors.
You do not have the required permissions to view the files attached to this post.
Distributed File Transfer Protocol Daemon
fr0w
 
Posts: 95
Joined: Wed Feb 16, 2005, 11:14 pm
Location: .BR

Postby CyBeR » Thu Mar 09, 2006, 5:46 pm

just 1 question....who uses zip/unzip in linux :P
CyBeR
Node's little helper
 
Posts: 728
Joined: Fri Nov 19, 2004, 6:44 pm

Postby zubov » Thu Mar 09, 2006, 8:11 pm

CyBeR wrote:just 1 question....who uses zip/unzip in linux :P

I use it when I'm dealing with a zip file :roll: :D

Nice fr0w, we'll have to add this to the dependencies package when 2.1 rolls out
zubov
Node's little helper
 
Posts: 1172
Joined: Sat Nov 20, 2004, 7:31 pm
Location: USA

Postby k2r » Fri Mar 10, 2006, 8:02 am

whooot, really nice fr0w, tks.
The drFTPD French Touch ...
k2r
drFTPD French Touch
 
Posts: 488
Joined: Fri Nov 04, 2005, 5:36 pm
Location: .FR

Postby erich » Fri Mar 10, 2006, 11:58 am

If you have an AMD64, do you then really need a wrapper for 64bit and dependancies for 64bit or are we talking about optimizations here???



PS:
I never had a AMD64, so sorry for my lack of knowledge :oops:
erich
Node's little helper
 
Posts: 574
Joined: Mon Nov 29, 2004, 12:50 pm

Postby fr0w » Fri Mar 10, 2006, 1:06 pm

Actually Im using the default libs, no 64bit libs.
The unique thing I changed was the libFileSystem.so.
Don't know if updating wrapper to a 64bit version I will get some better performance, which I don't think is needed anyway.
Distributed File Transfer Protocol Daemon
fr0w
 
Posts: 95
Joined: Wed Feb 16, 2005, 11:14 pm
Location: .BR

Postby tjoho » Wed May 30, 2007, 1:11 pm

Thanks m8

Working fine on my box

OS:
Debian Amd64 4.x
Linux 2.6.21.3 #3 Tue May 29 22:59:45 CEST 2007 x86_64 GNU/Linux

Specs:

AMD 64 3000+ 1GB DDR400
tjoho
 
Posts: 6
Joined: Tue Apr 10, 2007, 5:05 am

Postby Karv » Thu May 31, 2007, 2:23 am

Did you see any diff in performances ?

Thanks
Karv
 
Posts: 87
Joined: Wed May 31, 2006, 10:46 am

Postby vinc3 » Wed Apr 16, 2008, 6:41 pm

I know this file is for *NIX machines, I was wondering if there is anyone who has a x64 version of FileSystem.dll

I have recently upgraded my system and switched to 2003 x64 and now my slaves won't run... :(

Have spent some hours on trying to compile the file myself, however without any success. Hope there is someone who can help me with this issue so I can run the slave.
vinc3
 
Posts: 6
Joined: Tue Aug 29, 2006, 10:07 am

Postby nX » Fri May 30, 2008, 12:12 pm

Gentoo 64bit
Linux 2.6.25.4 #2 SMP Thu May 29 22:55:27 CEST 2008 x86_64 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz GenuineIntel GNU/Linux

Works like a charm :)
nX
 
Posts: 57
Joined: Mon May 12, 2008, 5:28 pm

Postby fr0w » Fri May 30, 2008, 12:52 pm

Great to hear that it still works even some years after I've compiled it.
Distributed File Transfer Protocol Daemon
fr0w
 
Posts: 95
Joined: Wed Feb 16, 2005, 11:14 pm
Location: .BR

Re: Compiled libFileSystem.so for AMD64

Postby danny » Fri Nov 14, 2008, 3:30 pm

Linux ubuntu 2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64 GNU/Linux
Ubuntu 8.04.1
Works like a charm :)
danny
Node's little helper
 
Posts: 117
Joined: Tue Jan 03, 2006, 11:50 pm

Re: Compiled libFileSystem.so for AMD64

Postby elcheffe » Tue Feb 10, 2009, 1:44 am

Still like a charm
on Debian Lenny @ 2.6.26-1-amd64
Java 1.6.0_07-b06
elcheffe
 
Posts: 54
Joined: Sat Jan 31, 2009, 12:52 am

Re: Compiled libFileSystem.so for AMD64

Postby nustyle » Mon Jul 27, 2009, 12:36 pm

Don't work here :-(

./slave.sh console
Running DrFTPD Slave...
wrapper | --> Wrapper Started as Console
wrapper | Java Service Wrapper Community Edition 64-bit 3.3.5
wrapper | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved.
wrapper | http://wrapper.tanukisoftware.org
wrapper |
wrapper | Launching a JVM...
jvm 1 | WrapperManager: Initializing...
jvm 1 | DrFTPD Slave starting, further logging will be done through log4j
jvm 1 | 1 [WrapperSimpleAppMain] INFO org.drftpd.slave.Slave - Connecting to master at localhost/127.0.0.1:2299
jvm 1 | 49 [WrapperSimpleAppMain] INFO org.drftpd.slave.Slave - slave.root.1: /home/sash/dl
jvm 1 | WrapperSimpleApp:
jvm 1 | WrapperSimpleApp: Encountered an error running main:
jvm 1 | WrapperSimpleApp: java.lang.UnsatisfiedLinkError: /home/sash/drftpd/drftpd/lib/libFileSystem.so: /home/sash/drftpd/drftpd/lib/libFileSystem.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
jvm 1 | WrapperSimpleApp: at java.lang.ClassLoader$NativeLibrary.load(Native Method)
jvm 1 | WrapperSimpleApp: at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
jvm 1 | WrapperSimpleApp: at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
jvm 1 | WrapperSimpleApp: at java.lang.Runtime.loadLibrary0(Runtime.java:823)
jvm 1 | WrapperSimpleApp: at java.lang.System.loadLibrary(System.java:1030)
jvm 1 | WrapperSimpleApp: at se.mog.io.FileSystem.<clinit>(FileSystem.java:31)
jvm 1 | WrapperSimpleApp: at se.mog.io.File.<clinit>(File.java:31)
jvm 1 | WrapperSimpleApp: at org.drftpd.slave.Root.<init>(Root.java:37)
jvm 1 | WrapperSimpleApp: at org.drftpd.slave.Slave.getDefaultRootBasket(Slave.java:210)
jvm 1 | WrapperSimpleApp: at org.drftpd.slave.Slave.<init>(Slave.java:167)
jvm 1 | WrapperSimpleApp: at org.drftpd.slave.Slave.main(Slave.java:229)
jvm 1 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
jvm 1 | WrapperSimpleApp: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
jvm 1 | WrapperSimpleApp: at java.lang.reflect.Method.invoke(Method.java:597)
jvm 1 | WrapperSimpleApp: at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:238)
jvm 1 | WrapperSimpleApp: at java.lang.Thread.run(Thread.java:619)
wrapper | on_exit trigger matched. Restarting the JVM. (Exit code: 1)
^Cwrapper | INT trapped. Shutting down.
wrapper | <-- Wrapper Stopped
nustyle
 
Posts: 5
Joined: Fri Jul 24, 2009, 6:46 am

Re: Compiled libFileSystem.so for AMD64

Postby fr0w » Mon Jul 27, 2009, 3:53 pm

Try issuing a:

Code: Select all
$ file /home/sash/drftpd/drftpd/lib/libFileSystem.so


An paste the output.
Distributed File Transfer Protocol Daemon
fr0w
 
Posts: 95
Joined: Wed Feb 16, 2005, 11:14 pm
Location: .BR

Next

Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest

cron