libmicrohttpd.so.5: wrong ELF class: ELFCLASS64

268 views
Skip to first unread message

bkanuka

unread,
Nov 8, 2011, 1:00:45 PM11/8/11
to openDIAS
When trying to start openDIAS with "sudo /etc/init.d/clearscene-
opendias.sh start" I get the following error:

Starting opendias: /usr/local/sbin/opendias: error while loading
shared libraries: libmicrohttpd.so.5: wrong ELF class: ELFCLASS64

I am on Debian 64bit. I also get errors from "sudo make install" but
I think their unrelated. Anyway, I''m more interested in running
openDIAS than compiling it.

Wayne Booth

unread,
Nov 9, 2011, 7:56:40 AM11/9/11
to open...@googlegroups.com
Hi bkanuka,
Firstly, I'm sorry to hear you are having troubles.
The binary in the deb you have used was compiled on a 32-bit system, and all testing has been on 32-bit systems.
I think (at least in the sort to medium term), your going to resort to compiling from source for 64-bit systems. That being 
the case, what problems have you seen while build/installing from source? Maybe these will be easier to sort out than 
fixing the deb.
Regards
Wayne Booth

Bennett Kanuka

unread,
Nov 9, 2011, 10:23:04 PM11/9/11
to openDIAS
Thanks for the reply.

./configure and make actually seem to run smoothly, although this is
the last few lines of sudo make install:

make[3]: Leaving directory `/home/bkanuka/opendias-0.6.4/webcontent'
make[2]: Leaving directory `/home/bkanuka/opendias-0.6.4/webcontent'
make[1]: Leaving directory `/home/bkanuka/opendias-0.6.4/webcontent'
make[1]: Entering directory `/home/bkanuka/opendias-0.6.4'
make[2]: Entering directory `/home/bkanuka/opendias-0.6.4'
make install-exec-hook
make[3]: Entering directory `/home/bkanuka/opendias-0.6.4'
test ! -e /var/log/opendias && mkdir /var/log/opendias
make[3]: *** [install-exec-hook] Error 1
make[3]: Leaving directory `/home/bkanuka/opendias-0.6.4'
make[2]: *** [install-exec-am] Error 2
make[2]: Leaving directory `/home/bkanuka/opendias-0.6.4'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/bkanuka/opendias-0.6.4'
make: *** [install-recursive] Error 1
bkanuka@crunchbang:~/opendias-0.6.4$


I am running on Debian testing now but will be moving to stable in the
next few days.

-Bennett

Wayne Booth

unread,
Nov 12, 2011, 2:44:46 PM11/12/11
to open...@googlegroups.com
Hi Bennett,

You've hit a known problem of the install process.
This has been fixed in the 0.7 series.

You can therefore build from the current 'git master', or wait until this is series has been finalised and a tarball is cut.

Regards
Wayne Booth

Bennett Kanuka

unread,
Nov 24, 2011, 2:09:59 PM11/24/11
to openDIAS
Hi Wayne,

I attempted to build from git (today) but ran into this problem:

bkanuka@crunchbang:~/opendias/current_code$ make
make all-recursive
make[1]: Entering directory `/home/bkanuka/opendias/current_code'
Making all in src
make[2]: Entering directory `/home/bkanuka/opendias/current_code/src'
gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_LOCALE_DIR=\""/usr/local//
locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/local/
share"\" -I/usr/include/uuid -I/usr/include/libxml2 -I/usr/include/
libxml2 -Wall -g -g -O2 -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o
debug.o debug.c
debug.c: In function ‘o_log’:
debug.c:83: error: invalid initializer
make[2]: *** [debug.o] Error 1
make[2]: Leaving directory `/home/bkanuka/opendias/current_code/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bkanuka/opendias/current_code'
make: *** [all] Error 2

Wayne Booth

unread,
Nov 24, 2011, 4:53:08 PM11/24/11
to open...@googlegroups.com
Hi,

I thought that may cause some problems, and was going to remove it.
For now, you can just update the line:
va_list inargs = NULL; // so we can test it later
to
va_list inargs;


That should help things along for you.
Hope this helps.

Bennett Kanuka

unread,
Nov 24, 2011, 7:19:58 PM11/24/11
to open...@googlegroups.com
Yes, it does. So it built and installed (although it installed to /usr/local/sbin which is odd...but I added it to my path).

Now it doesn't run. opendias -d just dies with no message and nothing in ps.

???

I'm sorry if I'm bothering you - I'm really interested in getting this to work.

-Bennett

Wayne Booth

unread,
Dec 4, 2011, 4:53:21 PM12/4/11
to open...@googlegroups.com
Hi Bennett,

Sorry for the delay in getting back to you. I've bee buy preparing the next release. Please don't think you're bother me, I'd rather get someone working and so using the system, than let them igore them and miss out on the point of the project.

Before doing anything, you may want to 'git update' and compile again, as some big updates have gone in over the last few weeks.

If you can post as much of the log file as possible, it would really help in diagnosing any problems you are having.
If you're not getting a log file (default is at /var/log/opendias/opendias.log), then create a file in this location, then ensure it is writeable by the user who runs the opendias service.
If the log messages you are seeing, are really lacking, then you can bump the log verbosity using the opendiasconfig too:
opendiasconfig -s log_verbosity -v 5

Do, let me know how you get on.

Regards
Wayne

Bennett Kanuka

unread,
Dec 6, 2011, 5:06:16 PM12/6/11
to open...@googlegroups.com
Hi,

Sorry I won't be able to touch this for a few weeks. University exams,
and then a wedding in Florida...

-Bennett

Wayne Booth

unread,
Dec 7, 2011, 4:37:49 PM12/7/11
to open...@googlegroups.com
np.
good luck with both of them. :)

Wayne Booth

unread,
Jan 10, 2012, 5:32:19 PM1/10/12
to open...@googlegroups.com
Hi,
Were getting ready to release the 0.7 branch of development. You may want to see if this release solves your problems. Check out the latest code at: https://github.com/clearscene/opendias/tags
Let me know your feedback/findings.
Cheers
Reply all
Reply to author
Forward
0 new messages