Re: plugin example problem under linux

Marc Szymanski <[email protected]> Tue, 7 Dec 2004 14:36:48 +0100
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
Am Dienstag, 7. Dezember 2004 14:19 schrieb jon klein:
> On Dec 7, 2004, at 11:06 AM, Marc Szymanski wrote:
> > Dear all,
> >
> > I would like to write a plugin for breve. But as I compiled the plugin
> > example
> > and tried to start it I got the following error messages.
> >
> > error loading plugin c++Sample_plugin.o:
> > /home/szymansk/workspace/extern/
> > breve/breve_2.0/plugins/samples/c++Sample_plugin.o: ELF file's
> > phentsize not
> > the expected size
> > Unknown Function Error: Internal function "cppSampleMakeTestClass" not
> > found
> > at line 27 of file "c++SampleDemo.tz"
>
> I haven't seen this error before.  What flavor of Linux do you run?  The
> Linux machine I do my compiles on is Debian.

I am currently using an old SuSE version 8.x. Maybe it´s a version problem 
with the shared libraries you compiled it for and the shared libraries I 
have. That´s why I tried to compile Breve on my own. I have an other pc with 
Suse 9.0 I will try if it will work there. Searching google for this message 
I just encountered a lot of java stuff. I try to get deeper into it.

>
> > I thought may be I need to link the object-file with the original breve
> > libraries so I tried to compile the breve source version. But I got
> > stuck.
>
> The changes you mentioned have all now been fixed in the source.
>
> > After all that changes I was able to compile everything, but than I
> > got the
> > following messages while linking
>
> ...
>
> > ../lib/libbrsimulation.a(link.o)(.text+0xf77): In function
> > `slLinkApplyJointControls':
> > /home/szymansk/workspace/extern/breve/breve_source/simulation/link.c:
> > 405:
> > undefined reference to `dJointAddHingeTorque'
>
> This particular error probably means you need to update the version of
> ODE you have installed.

Yes, I think the same. That´s why I am currently compiling a new ode version. 
I hope it will work.

>
> As for the other errors listed below, as far as I can tell, it's
> something
> in the pthreads library, and not anything in breve.  Have you
> successfully
> linked other programs against this version of pthreads?  Perhaps there's
> another library that needs to be linked with this pthreads library...
>
> - jon klein

Usually we are using zthread but I think this is based on the pthread library.

I will try my very best to find the error. I´ll report you back if I found it. 
I thought that someone maybe encountered the same problems.

>
> > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../
> > libpthread.a(pthread.o)
> > (.text+0x10f): In function `pthread_initialize':
> > /usr/src/packages/BUILD/glibc-2.3.2/linuxthreads/pthread.c:506:
> > undefined
> > reference to `_res'
> > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../
> > libpthread.a(pthread.o)
> > (.text+0xa19): In function `__pthread_reset_main_thread':
> > /usr/src/packages/BUILD/glibc-2.3.2/linuxthreads/pthread.c:1072:
> > undefined
> > reference to `_res'
> > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../
> > libpthread.a(pthread.o)
> > (.text+0xa1e):/usr/src/packages/BUILD/glibc-2.3.2/linuxthreads/
> > pthread.c:1070: undefined reference to `_errno'
>
> _______________________________________________
> breve mailing list
> [email protected]
> http://lists.spiderland.org/mailman/listinfo/breve

Thanks for your response and best regards,
	Marc.

-- 
--------------------------------------------------------------------------
Dipl.-Inform. Marc Szymanski
Institute for Process Control and Robotics(IPR), Universität Karlsruhe(TH)
Kaiserstr. 12, D-76128 Karlsruhe, Germany
Phone: +49 721 608 6694, Fax: +49 721 608 7141
WWW http://wwwipr.ira.uka.de/~szymansk


_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve