[Time] Name | Message |
[05:03] oscar
|
hi all, I have a simple question, but can't find the answer from the offical website. Is zeromq a super-socket? can it be used as a message queue?
|
[05:09] driethr
|
it is like a super-socket or a meta socket construct, but also you have to think about how you assemble the various pieces based on what you want to do.
|
[05:12] oscar
|
thanks. so, you mean that I need to implement message queue base on 0mq, right?
|
[05:13] driethr
|
actually I have only played with the zmq_forwarder utility which is used to publish and subscribe to messages. it comes with a zmq_queue binary so maybe that's what you'll be using?
|
[05:13] driethr
|
http://kfsone.wordpress.com/2010/07/21/zeromq-and-scalability/
|
[05:23] oscar
|
ok, thank you very mush.
|
[05:24] driethr
|
well so just to continue, you actually leverage the queue that is built into zeromq
|
[05:24] driethr
|
i dug up the example you can look at, hwclient.c and mtserver.c if you don't mind C code
|
[05:25] oscar
|
I love c code, thank you^^
|
[05:26] oscar
|
that's what i'm looking for:D
|
[05:26] driethr
|
yes I'll paste the github.com location for that from the zguide
|
[05:26] driethr
|
http://github.com/imatix/zguide/tree/master/examples/C/
|
[05:27] oscar
|
get it:)
|
[05:28] driethr
|
the queue is kind of like a forwarder that just listens to requests and then just sits there until it gets a corresponding response. so you would potentially have many requests just pending completion, and thus in-queue, individually, until they get their response.
|
[10:13] mikko
|
g'morning
|
[10:49] sustrik
|
mikko: hi, are you there?
|
[10:49] mikko
|
yes
|
[10:49] mikko
|
i added an irc bot to hudson
|
[10:49] sustrik
|
how does that work?
|
[10:49] mikko
|
#zeromq.build receives irc notifications
|
[10:49] mikko
|
05:05 <@dailybuild> Project ZeroMQ2_master build (90): SUCCESS in 3 min 35 sec: http://build.valokuva.org/job/ZeroMQ2_master/90/
|
[10:50] sustrik
|
ah, it's a different channel from #zeromq
|
[10:50] mikko
|
etc
|
[10:50] sustrik
|
wouldn't it make sense to channel it directly to #zeromq
|
[10:50] mikko
|
it looks like that i wont be in amsterdam on sunday (the work went too well last week and no need to return next week)
|
[10:50] sustrik
|
?
|
[10:50] sustrik
|
ok
|
[10:50] mikko
|
it produces a bit of flood on 5 am and pm
|
[10:50] sustrik
|
i see
|
[10:50] mikko
|
as every build notifies atm
|
[10:51] sustrik
|
it should be mentioned somewhere...
|
[10:51] sustrik
|
i mean that the irc channel exists
|
[10:51] mikko
|
i also found this http://wiki.hudson-ci.org/display/HUDSON/ChuckNorris+Plugin
|
[10:51] sustrik
|
:)
|
[10:52] sustrik
|
ha
|
[10:52] sustrik
|
is it possible to modify the main page?
|
[10:52] sustrik
|
if there's a notice saying "join #zeromq.builds" to see notficiations
|
[10:52] sustrik
|
people may actually find out that the channel exists
|
[10:53] sustrik
|
mikko: anyway, i had a different question; i am going to have a look at sun studio issues, how do switch the compiler to make it build with sunstudio?
|
[10:54] mikko
|
sustrik: http://build.valokuva.org/
|
[10:54] mikko
|
should be now on the front page
|
[10:54] sustrik
|
nice, but too small
|
[10:54] sustrik
|
easy to miss
|
[10:55] mikko
|
might require a CSS change for that
|
[10:55] mikko
|
ill look into it
|
[10:55] sustrik
|
and mention it is at freenode
|
[10:55] sustrik
|
it's not obvious
|
[10:55] mikko
|
you need to set CC and CXX env variables
|
[10:55] mikko
|
CC=/opt/sunstudio12.1/bin/cc CXX=/opt/sunstudio12.1/bin/CC
|
[10:55] sustrik
|
anything else?
|
[10:55] mikko
|
shouldn't need more than that
|
[10:56] sustrik
|
ok, thanks
|
[10:57] mikko
|
i submitted a patch for ZFL last night
|
[10:57] mikko
|
did that come through?
|
[10:59] sustrik
|
it's on the mailing list, pieter maintains zfl, so it's up to him
|
[10:59] mikko
|
ok
|
[10:59] sustrik
|
but his kid is ill, so he's kind of busy now
|
[11:01] mikko
|
gdb should be installed on the box as well
|
[11:07] sustrik
|
thanks
|
[11:19] sustrik
|
hm, anyone any idea what this error means:
|
[11:19] sustrik
|
Dwarf Error: Cannot find DIE at 0x14660 referenced from DIE at 0x40cbb [in module /home/martin/zeromq2/tests/test_pair_inproc]
|
[11:19] sustrik
|
?
|
[11:20] mikko
|
http://www.mail-archive.com/digitalmars-d-bugs@puremagic.com/msg04002.html
|
[11:20] mikko
|
first reference in google
|
[11:20] mikko
|
never seen that before
|
[11:23] mikko
|
hmm.. googling suggests that compiler might generate Dwarf 2 information that gdb doesn't understand
|
[11:24] mikko
|
http://mail-index.netbsd.org/port-arm/2004/09/08/0000.html
|
[11:24] sustrik
|
ok, it looks like it's only gdb complaining about debug format
|
[11:24] sustrik
|
has nothing to do with the failure itself
|
[11:27] mikko
|
/opt/sunstudio12.1/bin/dbx and http://blogs.sun.com/dbx/entry/gdb_vs_dbx_commands_mapping
|
[11:27] mikko
|
maybe?
|
[11:28] sustrik
|
nice
|
[11:28] sustrik
|
i've used dbx before
|
[11:28] sustrik
|
completely forgot about it in the meantime :)
|
[11:35] sustrik
|
mikko: got the problem, it's caused by different STL implementation
|
[11:35] sustrik
|
thanks for the help
|
[11:37] mikko
|
sustrik: nice!
|
[11:51] CIA-14
|
zeromq2: 03Martin Sustrik 07maint * r21b0c0b 10/ src/object.cpp :
|
[11:51] CIA-14
|
zeromq2: SunStudio fixed.
|
[11:51] CIA-14
|
zeromq2: With SunStudio's implementation of STL basic_string constructor
|
[11:51] CIA-14
|
zeromq2: doesn't accept NULL as a parameter even though size of string
|
[11:51] CIA-14
|
zeromq2: is set to zero. Fixed.
|
[11:51] CIA-14
|
zeromq2: Signed-off-by: Martin Sustrik <sustrik@250bpm.com> - http://bit.ly/bU6OuE
|
[11:52] CIA-14
|
zeromq2: 03Martin Sustrik 07master * r21b0c0b 10/ src/object.cpp :
|
[11:52] CIA-14
|
zeromq2: SunStudio fixed.
|
[11:52] CIA-14
|
zeromq2: With SunStudio's implementation of STL basic_string constructor
|
[11:52] CIA-14
|
zeromq2: doesn't accept NULL as a parameter even though size of string
|
[11:52] CIA-14
|
zeromq2: is set to zero. Fixed.
|
[11:52] CIA-14
|
zeromq2: Signed-off-by: Martin Sustrik <sustrik@250bpm.com> - http://bit.ly/bU6OuE
|
[11:52] CIA-14
|
zeromq2: 03Martin Sustrik 07master * rda59f8d 10/ src/object.cpp :
|
[11:52] CIA-14
|
zeromq2: Merge branch 'maint'
|
[11:52] CIA-14
|
zeromq2: * maint:
|
[11:52] CIA-14
|
zeromq2: SunStudio fixed. - http://bit.ly/c7vBnk
|
[12:43] CIA-14
|
zeromq2: 03Steven McCoy 07master * r8d69799 10/ (src/pgm_socket.cpp src/pgm_socket.hpp src/zmq.cpp):
|
[12:43] CIA-14
|
zeromq2: Changes for MSVC OpenPGM build.
|
[12:43] CIA-14
|
zeromq2: Signed-off-by: Steven McCoy <steven.mccoy@miru.hk> - http://bit.ly/bBiye2
|
[14:43] Sirupsen
|
I'm simply trying to make the first example from the guide compile in C, I run `gcc hwserver.c` and get a good bunch of "undefined reference to `zmq_*`" errors.
|
[14:46] Sirupsen
|
nvm
|
[14:48] sustrik
|
you have to include the header file
|
[14:54] Sirupsen
|
I
|
[14:55] Sirupsen
|
I try to run "./build all" from the zguides, however I get "gcc *.o: No such file or directory" on each file
|
[14:55] Sirupsen
|
Shouldn't that handle the "header file" you are talking about?
|
[14:57] sustrik
|
you should complain about zquide build system not working on the mailing list
|
[14:57] Sirupsen
|
I will
|
[15:44] DerGuteMoritz
|
can you guys explain to me wht the purpose of zmq_msg_copy?
|
[15:44] DerGuteMoritz
|
+is
|
[15:45] oscar
|
sirupsen, I met the same problem, and I'm debuging.....
|
[15:48] oscar
|
<sustrik>, I have the same problem with sirupsen, and I tried to include the zmq.h file, but it still can't find zmq_*....
|
[16:09] oscar
|
hi all......I'm trying to compile the hwserver.c file, but get "undefined reference to zmq_*" errors...Any help is appreciate.
|
[16:10] oscar
|
I've include the zmq.h file
|
[16:10] oscar
|
and zmq.h is exist.
|
[17:04] sustrik
|
DerGuteMoritz: It creates a copy of the message
|
[17:05] sustrik
|
oscar: can you paste the whole error text?
|
[17:06] oscar
|
ok
|
[17:06] DerGuteMoritz
|
sustrik: hm, according to the docs that is implementation dependent and that one should not modify a message after copying
|
[17:06] sustrik
|
not the whole log, just the line in question
|
[17:06] DerGuteMoritz
|
so I wonder what one could use read-only copies of messages for
|
[17:07] sustrik
|
send them to multiple destinations
|
[17:07] sustrik
|
zmq_send nullifies the message after it's sent
|
[17:07] DerGuteMoritz
|
ah I can't re-use the same message?
|
[17:07] DerGuteMoritz
|
alright
|
[17:07] oscar
|
s.c:(.text+0x23): undefined reference to `zmq_init'
|
[17:07] oscar
|
s.c:(.text+0x63): undefined reference to `zmq_socket'
|
[17:07] sustrik
|
and the command line?
|
[17:08] oscar
|
gcc s.c -o s
|
[17:08] sustrik
|
you have to link it with libzmq
|
[17:08] oscar
|
ohhh...I'll have a try
|
[17:08] oscar
|
./s: error while loading shared libraries: libzmq.so.0: cannot open shared object file: No such file or directory
|
[17:10] oscar
|
it compiled successful with libzmq, but after run it, it give this error
|
[17:10] sustrik
|
you have to have the paths set accordingly
|
[17:13] oscar
|
I installed 0mq as default path, why it give this error...
|
[17:14] DerGuteMoritz
|
oscar: why don't you use another language? the examples are given in different languages AFAIR
|
[17:15] oscar
|
<DerGuteMoritz>, I'm use c for now, and later will use php...
|
[17:19] kylezoa
|
oscar: have you tried 'export LD_LIBRARY_PATH=<path to zmq lib dir>'
|
[17:20] oscar
|
<kylezoa>thanks. I'm working in linux, I think I should to export that lib dir
|
[17:23] DerGuteMoritz
|
oscar: how do you call gcc
|
[17:24] DerGuteMoritz
|
?
|
[17:24] DerGuteMoritz
|
I mean now that you are linking to zmq
|
[17:25] oscar
|
<DerGuteMoritz> just call gcc directly
|
[17:25] DerGuteMoritz
|
what are the exact arguments?
|
[17:25] oscar
|
gcc sc.c -o s -lzmq
|
[17:26] DerGuteMoritz
|
that exact command line works for me here
|
[17:26] DerGuteMoritz
|
there must be something wrong with your path
|
[17:26] DerGuteMoritz
|
or your zmq installation
|
[17:27] oscar
|
I checked the file are in /usr/local/lib/ and /usr/local/lib/ folders. I think it should be right.
|
[17:28] oscar
|
I configure, make & make install in default
|
[17:28] DerGuteMoritz
|
well try adding -L/usr/local/lib/
|
[17:29] DerGuteMoritz
|
if that works, something is not set up as you think it is ;-)
|
[17:30] oscar
|
I added -L/usr/local/lib/, it still give this error:error while loading shared libraries: libzmq.so.0: cannot open shared object file: No such file or directory
|
[17:30] oscar
|
T_T
|
[17:30] sustrik
|
it's the issue or runtime path to shared libraries
|
[17:31] sustrik
|
some systems don't have /usr/local/lib on the path by default
|
[17:31] sustrik
|
set your LD_LIBRARY_PATH accordingly
|
[17:31] oscar
|
I type: whereis libzmq.so.0. it shows: libzmq.so: /usr/local/lib/libzmq.so.0 /usr/local/lib/libzmq.so
|
[17:32] sustrik
|
export LD_LIBRARY_PATH=/usr/local/lib
|
[17:33] oscar
|
ok...it works!! thank you very much ;-)
|
[17:33] sustrik
|
np
|
[17:35] oscar
|
will 0mq keep a message in memory until it be got?
|
[17:36] oscar
|
or a message wll be sent out immediately when it arrives 0mq server
|