posix_mq : Problem installing on HPUX
- From:
-
- Date:
- 2011-02-23 @ 12:40
Hi Eric,
I tried a 'gem install posix_mq --pre' as you suggested, and the compile
failed as indicated below.
Regards,
Tad
This is my log of installing posix_mq on HPUX :
//*
u91134@tiths303>/home/acore/workarea/tb/www# gem install --pre posix_mq
Building native extensions. This could take a while...
ERROR: Error installing posix_mq:
ERROR: Failed to build gem native extension.
/home/acore/ruby/bin/ruby extconf.rb
checking for sys/select.h... no
checking for signal.h... yes
checking for mqueue.h... yes
checking for __mq_oshandle()... no
checking for pthread.h... yes
checking for rb_str_set_len()... no
checking for rb_thread_blocking_region()... no
checking for main() in -lm... yes
checking for main() in -lrt... yes
checking for main() in -lpthread... yes
checking for mq_timedsend()... no
checking for mq_timedreceive()... no
creating Makefile
make
Make: Don't know how to make ruby.h. Stop.
Gem files will remain installed
in /home/acore/ruby/lib/ruby/gems/1.8/gems/posix_mq-0.6.0.7.g3a8a for
inspection.
Results logged
to
/mtitres/rec/acore/ruby/lib/ruby/gems/1.8/gems/posix_mq-0.6.0.7.g3a8a/ext/posix_mq/gem_make.out
u91134@tiths303>/home/acore/workarea/tb/www#
*//
@@@ At this stage I copied ruby.h & defines.h (I don't understand why I
have to do this)
from /home/acore/ruby/lib/ruby/1.8/hppa2.0w-hpux11.1
to
/mtitres/rec/acore/ruby/lib/ruby/gems/1.8/gems/posix_mq-0.6.0.7.g3a8a/ext/posix_mq
and followed with a gmake.
//*
u91134@tiths303>/mtitres/rec/acore/ruby/lib/ruby/gems/1.8/gems/posix_mq-0.6.0.7.g3a8a/ext/posix_mq#
gmake
cc -I. -I /home/acore/ruby/lib/ruby/1.8/hppa2.0w-hpux11.11 -DHAVE_SIGNAL_H
-DHAVE_MQUEUE_H -DHAVE_PTHREAD_H
-I /home/acore/ruby/lib/ruby/1.8/hppa2.0w-hpux11.11 -I /usr/include
-I /usr/local/include +Z -g +Z -c posix_mq.c
cc: "posix_mq.c", line 284: error 1547: "&&" operator requires scalar
operands.
cc: "posix_mq.c", line 284: error 1563: Expression in if must be scalar.
cc: "posix_mq.c", line 737: error 1558: The ! operator takes a scalar
operand.
gmake: *** [posix_mq.o] Error 1
*//
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
Do not print this message unless it is necessary,
consider the environment.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.
Re: [ruby.posix.mq] posix_mq : Problem installing on HPUX
- From:
- Eric Wong
- Date:
- 2011-02-23 @ 19:53
tad.bochan@externe.bnpparibas.com wrote:
> @@@ At this stage I copied ruby.h & defines.h (I don't understand why I
> have to do this)
There's probably a Ruby development package you didn't install or your
install is incomplete in some way.
>
u91134@tiths303>/mtitres/rec/acore/ruby/lib/ruby/gems/1.8/gems/posix_mq-0.6.0.7.g3a8a/ext/posix_mq#
> gmake
> cc -I. -I /home/acore/ruby/lib/ruby/1.8/hppa2.0w-hpux11.11 -DHAVE_SIGNAL_H
> -DHAVE_MQUEUE_H -DHAVE_PTHREAD_H
> -I /home/acore/ruby/lib/ruby/1.8/hppa2.0w-hpux11.11 -I /usr/include
> -I /usr/local/include +Z -g +Z -c posix_mq.c
> cc: "posix_mq.c", line 284: error 1547: "&&" operator requires scalar
> operands.
> cc: "posix_mq.c", line 284: error 1563: Expression in if must be scalar.
> cc: "posix_mq.c", line 737: error 1558: The ! operator takes a scalar
> operand.
> gmake: *** [posix_mq.o] Error 1
Oops, can you try the 0.6.0.11.g634a gem I just pushed out?
Trivial diff here:
--- a/ext/posix_mq/posix_mq.c
+++ b/ext/posix_mq/posix_mq.c
@@ -31,8 +31,8 @@
#else
# define MQ_IO_MARK(mq) ((void)(0))
# define MQ_IO_SET(mq,val) ((void)(0))
-# define MQ_IO_CLOSE(mq) ((void)(0))
-# define MQ_IO_NIL_P(mq) ((void)(1))
+# define MQ_IO_CLOSE(mq) ((int)(0))
+# define MQ_IO_NIL_P(mq) ((int)(1))
#endif
struct posix_mq {
---
ref: http://bogomips.org/ruby_posix_mq.git/commit?id=72171f4
> This message and any attachments (the "message") is
Can you avoid these things? Total waste of bandwidth/storage,
same with your HTML attachment. Thanks!
--
Eric Wong
Re: [ruby.posix.mq] posix_mq : Problem installing on HPUX
- From:
- Iñaki Baz Castillo
- Date:
- 2011-02-23 @ 12:56
2011/2/23 <tad.bochan@externe.bnpparibas.com>:
> I tried a 'gem install posix_mq --pre' as you suggested
Hi, what does "--pre" option mean? is it an option for posix_mq
itself? I don't think it's a gem command parameter.
Thanks.
--
Iñaki Baz Castillo
<ibc@aliax.net>
Re: [ruby.posix.mq] posix_mq : Problem installing on HPUX
- From:
- Eric Wong
- Date:
- 2011-02-23 @ 19:58
Iñaki Baz Castillo <ibc@aliax.net> wrote:
> 2011/2/23 <tad.bochan@externe.bnpparibas.com>:
> > I tried a 'gem install posix_mq --pre' as you suggested
>
> Hi, what does "--pre" option mean? is it an option for posix_mq
> itself? I don't think it's a gem command parameter.
It's a "gem install" parameter. Install options for posix_mq
come after a "--"
gem install posix_mq --pre --no-rdoc -- --with-cflags=-O1 ...
--
Eric Wong
Re: [ruby.posix.mq] posix_mq : Problem installing on HPUX
- From:
- Iñaki Baz Castillo
- Date:
- 2011-02-23 @ 20:13
2011/2/23 Eric Wong <normalperson@yhbt.net>:
> Iñaki Baz Castillo <ibc@aliax.net> wrote:
>> 2011/2/23 <tad.bochan@externe.bnpparibas.com>:
>> > I tried a 'gem install posix_mq --pre' as you suggested
>>
>> Hi, what does "--pre" option mean? is it an option for posix_mq
>> itself? I don't think it's a gem command parameter.
>
> It's a "gem install" parameter. Install options for posix_mq
> come after a "--"
>
> gem install posix_mq --pre --no-rdoc -- --with-cflags=-O1 ...
Thanks a lot.
--
Iñaki Baz Castillo
<ibc@aliax.net>