3.0 build error

Generic questions and request for help of DrFTPD 3.0

Moderator: developers

3.0 build error

Postby elcheffe » Fri Aug 14, 2009, 1:48 pm

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: /mnt/dr3/trunk/lib/libTerminal.so: /mnt/dr3/trunk/lib/libTerminal.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1030)
        at charva.awt.Toolkit.<clinit>(Toolkit.java:896)
        at org.drftpd.tools.installer.console.ConsoleInstaller.<clinit>(ConsoleInstaller.java:55)
        at org.drftpd.tools.installer.Wrapper.main(Wrapper.java:65)


got on debian etch & etch-n-half & lenny
anyone have a solution for this?
elcheffe
 
Posts: 54
Joined: Sat Jan 31, 2009, 12:52 am

Re: 3.0 build error

Postby djb61 » Fri Aug 14, 2009, 5:05 pm

You'll need to compile yourself a libTerminal.so, it is part of charva which is included in the extsources dir of the deps, so you should be able to extract that source and build it
djb61
Node's little helper
 
Posts: 160
Joined: Fri Oct 06, 2006, 6:50 pm

Re: 3.0 build error

Postby elcheffe » Sat Aug 15, 2009, 1:38 am

sry no chance
of course i already tried...
but these makefiles have bugs...
cant compile for any debian 64bit

tried ant compile...
Code: Select all
makeDLL:
    [input] Enter the operating system type:  (aix, beos, freebsd, gcj, hpux, linux, mac_osx, solaris, win32)
linux
     [echo] Compiling the shared library using "Makefile.linux.txt"

BUILD FAILED
/mnt/dr3/charva/build.xml:202: exec returned: 2


and tried manually make
Code: Select all
someone@i152:~/mnt/dr3/charva/c/src$ make -f Makefile.linux.txt
gcc -fpic -shared -D_USE_NCURSESW_ -I/usr/lib/jvm/java-6-sun-1.6.0.12//include -I/usr/lib/jvm/java-6-sun-1.6.0.12//include/linux -I../include Toolkit.c -lncursesw -o ../lib/libTerminal.so
Toolkit.c:40:33: error: ncursesw/curses.h: No such file or directory
Toolkit.c: In function 'Java_charva_awt_Toolkit_getAttribute':
Toolkit.c:80: error: 'A_NORMAL' undeclared (first use in this function)
Toolkit.c:80: error: (Each undeclared identifier is reported only once
Toolkit.c:80: error: for each function it appears in.)
Toolkit.c:82: error: 'A_STANDOUT' undeclared (first use in this function)
Toolkit.c:89: error: 'A_UNDERLINE' undeclared (first use in this function)
Toolkit.c:92: error: 'A_REVERSE' undeclared (first use in this function)
Toolkit.c:94: error: 'A_BLINK' undeclared (first use in this function)
Toolkit.c:96: error: 'A_DIM' undeclared (first use in this function)
Toolkit.c:98: error: 'A_BOLD' undeclared (first use in this function)
Toolkit.c:100: error: 'A_ALTCHARSET' undeclared (first use in this function)
Toolkit.c:102: error: 'A_INVIS' undeclared (first use in this function)
Toolkit.c: In function 'Java_charva_awt_Toolkit_getACSchar':


another hint?
elcheffe
 
Posts: 54
Joined: Sat Jan 31, 2009, 12:52 am

Re: 3.0 build error

Postby exoa » Sat Aug 15, 2009, 5:31 am

apt-get install libcharva1-jni
cp /var/lib/jni/libTerminal.so /path/to/dr3/lib/libTerminal.so

I haven't finished compile yet but that brings up the build menu in terminal in amd64.

PS: you may need to add contrib non-free on your /etc/apt/sources.list repo url.. I'm not sure as I already had them in there before attempting to install the libcharva1-jni package.. let me know if you need help..

EDIT: I didn't mention this before, but this was for Debian Lenny amd64.. also it solved my issues with libTerminal.so from then on out..
exoa
 
Posts: 3
Joined: Fri Jul 31, 2009, 6:20 am

Re: 3.0 build error

Postby Dexter » Sun Aug 23, 2009, 2:43 pm

In this link you guys have the libTerminal.so compile for 64bit system.

Check this link if you want to compile by yourself*

@elcheffe

and tried manually make
Code: Select all
someone@i152:~/mnt/dr3/charva/c/src$ make -f Makefile.linux.txt
gcc -fpic -shared -D_USE_NCURSESW_ -I/usr/lib/jvm/java-6-sun-1.6.0.12//include -I/usr/lib/jvm/java-6-sun-1.6.0.12//include/linux -I../include Toolkit.c -lncursesw -o ../lib/libTerminal.so
Toolkit.c:40:33: error: ncursesw/curses.h: No such file or directory
Toolkit.c: In function 'Java_charva_awt_Toolkit_getAttribute':
Toolkit.c:80: error: 'A_NORMAL' undeclared (first use in this function)
Toolkit.c:80: error: (Each undeclared identifier is reported only once
Toolkit.c:80: error: for each function it appears in.)
Toolkit.c:82: error: 'A_STANDOUT' undeclared (first use in this function)
Toolkit.c:89: error: 'A_UNDERLINE' undeclared (first use in this function)
Toolkit.c:92: error: 'A_REVERSE' undeclared (first use in this function)
Toolkit.c:94: error: 'A_BLINK' undeclared (first use in this function)
Toolkit.c:96: error: 'A_DIM' undeclared (first use in this function)
Toolkit.c:98: error: 'A_BOLD' undeclared (first use in this function)
Toolkit.c:100: error: 'A_ALTCHARSET' undeclared (first use in this function)
Toolkit.c:102: error: 'A_INVIS' undeclared (first use in this function)
Toolkit.c: In function 'Java_charva_awt_Toolkit_getACSchar':


another hint?


*you need to have the ncurses-devel installed
Dexter
Node's little helper
 
Posts: 128
Joined: Wed Nov 21, 2007, 10:02 pm
Location: Waving Around

Re: 3.0 build error

Postby EvilMoe » Tue Jan 01, 2013, 10:23 am

Someone have the x64 libTerminal.so for me?
All links are offline and i have problems with the compile of it.

Thank you
EvilMoe
 
Posts: 16
Joined: Tue Jan 01, 2013, 9:19 am

Re: 3.0 build error

Postby daromer » Wed Jan 02, 2013, 7:56 am

Here is a file that i Used. I zipped it.

Code: Select all
file libTerminal.so
libTerminal.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
You do not have the required permissions to view the files attached to this post.
daromer
 
Posts: 17
Joined: Sun Sep 14, 2008, 1:25 pm


Return to General questions

Who is online

Users browsing this forum: No registered users and 1 guest