gomd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gomd-devel] commoncpp2 problems -> and fix :)


From: Matthias Rechenburg
Subject: Re: [gomd-devel] commoncpp2 problems -> and fix :)
Date: Tue, 24 Jun 2003 22:23:37 +0200
User-agent: KMail/1.4.3

On Dienstag 24 Juni 2003 21:14, Gian Paolo Ghilardi wrote:
> Hi all.
>
> Thanks a lot Matt: headers-related errors was one of my hypothesis but I
> didn't succeed fixing them. :)

hehehehe, it was more luck + trying than exactly to know where to fix.
... i was happy that i found the error, it was laying in my "inbox"
for too long.

> Now we need to extend the library... ;)

yep, should be easy with your first approach of
the libgomd now :))) Very nice again.

>
> Mirko: site update? ;)
>
> Byez.
>
> <rejected>
>
>
> ----- Original Message -----
> From: "Matthias Rechenburg" <address@hidden>
> To: "Gian Paolo Ghilardi" <address@hidden>; "gomd developers mailing list"
> <address@hidden>; "Johnny Cache" <address@hidden>
> Sent: Tuesday, June 24, 2003 5:15 PM
> Subject: Re: [gomd-devel] commoncpp2 problems -> and fix :)
>
> > Hi my friends,
> >
> > i checked the gomd + libgomd again and got the
> > /usr/local/include/cc++2/cc++/thread.h:318: syntax error before `;'
> > again. I checked diffrent version of commoncpp but nothing helps ;)
> >
> > so ............ i found out the reason of the problem.
> > It is the sequence of the header files, hehehehe.
> > commoncpp headers must come first.
> > I fixed it in the cvs for the gomd + libgomd and compiled
> > everything with the latest commoncpp and ......
> > ........ tested the example ............... and .....
> >
> >  :)))))) it works perfect as advertised by JP :)))))
> >
> > here it the output of the test on my system.
> >
> > address@hidden examples]$ ./cppclient.app
> > - C++ CLASS LOADING EXAMPLE
> > - Trying to open the library...
> > - Trying to load symbols from the library...
> > - Ok: all symbols were found and loaded successfully!!!
> > -- LIBGOMD: Created netCode object
> >    NETCODE: opening socket for host: 192.168.88.4:9889
> >    NETCODE: received gomd banner: Welcome to generic openMosix daemon at
>
> node4
>
> > from socket 8
> >    NETCODE: received gomd banner: Here is node #22532
> >    NETCODE: received gomd banner: Timeout set to: 60 s
> > - This is libgomd instance #1234
> > -- LIBGOMD: requesting load for node [1]...
> >    NETCODE: request will be: get load
> >    NETCODE: received gomd reply: address@hidden # (22532:12)
> > - Value returned by the library:  (22532:12)
> > - Ok: exiting...
> > address@hidden examples]$
> >
> >
> > MANY thanks to JP for his hard work on the code !!
> > Really nice ! It is exactly how it should be !
> > I am VERY satisfied rigth now  :)))
> >
> > stay tuned,
> >
> > Matt
> >
> > On Sonntag 15 Juni 2003 23:37, Johnny Cache wrote:
> > > Looks like i forgot to include one of the gcc errors damnig cc++:
> > >
> > > /usr/lib/libccext2.so: undefined reference to
> > > `std::__default_alloc_template<true, 0>::allocate(unsigned)'
> > >
> > > This is what makes me think something is wrong with commoncpp, should
> > > have included it in the first mail
> > > -jc
> > >
> > > On Sun, 15 Jun 2003, Johnny Cache wrote:
> > > > Hey guys. I have the same problem with the thread.h syntax error
>
> thing.
>
> > > > After hours of mucking around i still cant get anything to compile.
> > > > i tweaked the Makefile a little to get psat the syntax errors (i
> > > > think the important two lines were these:)
> > > > Old
> > > > INCFLAGS=-I. -I/usr/local/include/cc++2/ -I/usr/include/cc++2/
> > > > LDFLAGS=-L/urs/lib -lccext2 -lccgnu2 -lm -lz -ldl -lxml2 -pthread
> > > > New:
> > > > INCFLAGS=-I. -I`ccgnu2-config --includes` -pipe -D_GNU_SOURCE
> > > > LDFLAGS=-L/usr/lib -lccext2 -lccgnu2 -lm -lz -ldl -lxml2 -pthread
> > > >
> > > > That gets beyond the syntax issues. Now i am greeted with alot of
>
> this:
> > > > g++ -O3 -g -Wall -pedantic -L/urs/lib -lccext2 -lccgnu2 -lm -lz -ldl
> > > > -lxml2 -pthread -I. -I/usr/local/include/cc++2/ -I/usr/include/cc++2/
> > > > main.cpp syslogger.o utils.o requestRule.o requestHistory.o
> > > > security.o gomd2gomd.o gomd.o  -o gomd
> > > >
> > > > /tmp/ccx7qXKC.o(.text+0x128c): In function `main':
> > > > /home/johnycsh/code/projects/gomd/daemon/security.h:36: undefined
> > > > reference to `ost::InetAddress::InetAddress(ost::InetAddrValidator
>
> const
>
> > > > *)'
>
> /tmp/ccx7qXKC.o(.text+0x129d):/home/johnycsh/code/projects/gomd/daemon/se
>
> > > >curity.h:36: undefined reference to
> > > > `ost::InetAddress::InetAddress(ost::InetAddrValidator const *)'
> > > >
> > > > I dont really understand what is causing this problem. I could be
> > > > entirely wrong but it looks like a problem with my commoncpp2 build.
>
> I've
>
> > > > tried no less that 2 gentoo ebuilds and rolling my own once. They all
> > > > seem to work successfully (although for somereason when i built my
> > > > own
>
> it
>
> > > > didnt come with that handy ccgnu2-config program i referenced in the
> > > > makefile)
> > > >
> > > > Any suggestions ?
> > > > t.i.a.
> > > > -jc
> > > >
> > > > On Sun, 15 Jun 2003, CaloRE wrote:
> > > > > Hi all, ...also i've the same problem :(
> > > > >
> > > > > Ciao, marco
> > > > > -----------------------------
> > > > > Linux Registered User #268548
> > > > > -----------------------------
> > > > > Per favore evitate l'uso di allegati in formato Word o PowerPoint.
> > > > > Si veda: http://www.fsf.org/philosophy/no-word-attachments.it.html
> > > > >
> > > > > On Fri, 13 Jun 2003 12:05:22 +0200
> > > > >
> > > > > address@hidden (Matthias Rechenburg) wrote:
> > > > > > Hi JP,
> > > > > >
> > > > > > i checked out the new code right now but
> > > > > > currently got an error while compiling the gomd.
> > > > > >
> > > > > > ...e/cc++2/ security.cpp -o security.o
> > > > > > In file included from /usr/local/include/cc++2/cc++/socket.h:54,
> > > > > >                  from security.h:18,
> > > > > >                  from security.cpp:16:
> > > > > > /usr/local/include/cc++2/cc++/thread.h:318: syntax error before
>
> `;'
>
> > > > > > make: *** [security.o] Fehler 1
> > > > > >
> > > > > > I also updated my commoncpp to the latest commoncpp2-1.0.12 but
> > > > > > the same result. Any hints for stupid Matt ?
> > > > > > (the commoncpp is installed correctly in /usr/loca/lib +
> > > > > > /usr/local/include and at least the error message points that the
>
> bug
>
> > > > > > is in the commoncpp) Maybe the node i am developing on is "too
>
> bad"
>
> > > > > > ;)
> > > > > >
> > > > > >
> > > > > > have a nice day,
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > > On Freitag 13 Juni 2003 00:29, Gian Paolo Ghilardi wrote:
> > > > > > > Hi all.
> > > > > > >
> > > > > > > I've reworked a lot of code for libgomd.
> > > > > > >
> > > > > > > How to test the new code (just an oM node is required).
> > > > > > >
> > > > > > > - Update your local CVS.
> > > > > > > - Enter $CVSROOT/gomd/daemon, compile the daemon and launch it
> > > > > > > (make clean && make && ./gomd -nd)
> > > > > > > - Enter $CVSROOT/gomd/lib
> > > > > > > - Edit file libgomd.cpp: at line 22 replace this IP with the IP
>
> of
>
> > > > > > > an host that's running gomd (in this case, the same pc). Do not
> > > > > > > enter "127.0.0.1"!
> > > > > > >
> > > > > > > :)
> > > > > > >
> > > > > > > - make
> > > > > > > - Enter  $CVSROOT/gomd/lib/examples
> > > > > > > - make
> > > > > > > - ./cppclient.app [NODE_ID]   (NODE_ID is the id of an oM
> > > > > > > node).
> > > > > > >
> > > > > > > If all goes right, the client connects to a gomd (via teh
>
> library)
>
> > > > > > > and returns the value for a node.
> > > > > > > Please test it. (NOTE: this is experimental code!!! :))) )
> > > > > > >
> > > > > > > BTW, I've found a bug for gomd: it uses a lot of resources!
> > > > > > > I'll investigate and look for a fix... :)
> > > > > > >
> > > > > > > Byez.
> > > > > > >
> > > > > > > <rejected>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > gomd-devel mailing list
> > > > > > > address@hidden
> > > > > > > http://mail.nongnu.org/mailman/listinfo/gomd-devel
> > > > > >
> > > > > > --
> > > > > > E-mail :  address@hidden
> > > > > > www : http://www.openmosixview.com
> > > > > > an openMosix-cluster management GUI
> > > > > >
> > > > > > "keyboard not found!  Press F1 to continue."
> > > > > >
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > gomd-devel mailing list
> > > > > > address@hidden
> > > > > > http://mail.nongnu.org/mailman/listinfo/gomd-devel
> > > > >
> > > > > _______________________________________________
> > > > > gomd-devel mailing list
> > > > > address@hidden
> > > > > http://mail.nongnu.org/mailman/listinfo/gomd-devel
> > > >
> > > > _______________________________________________
> > > > gomd-devel mailing list
> > > > address@hidden
> > > > http://mail.nongnu.org/mailman/listinfo/gomd-devel
> > >
> > > _______________________________________________
> > > gomd-devel mailing list
> > > address@hidden
> > > http://mail.nongnu.org/mailman/listinfo/gomd-devel
> >
> > --
> > E-mail :  address@hidden
> > www : http://www.openmosixview.com
> > an openMosix-cluster management GUI
> >
> > for n in `ps -eo pid`; do migrate $n balance"; done;
> > have fun
>
> _______________________________________________
> gomd-devel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/gomd-devel

-- 
E-mail  :  address@hidden
www     : http://www.openmosixview.com
an openMosix-cluster management GUI

Since I have learned from my mistakes, why do I not know everything?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]