posix_mq RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* posix_mq : Problem installing on HPUX
@ 2011-02-23 12:40 tad.bochan
  2011-02-23 12:56 ` Iñaki Baz Castillo
  2011-02-23 19:53 ` Eric Wong
  0 siblings, 2 replies; 5+ messages in thread
From: tad.bochan @ 2011-02-23 12:40 UTC (permalink / raw)
  To: ruby.posix.mq



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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: posix_mq : Problem installing on HPUX
  2011-02-23 12:40 posix_mq : Problem installing on HPUX tad.bochan
@ 2011-02-23 12:56 ` Iñaki Baz Castillo
  2011-02-23 19:58   ` Eric Wong
  2011-02-23 19:53 ` Eric Wong
  1 sibling, 1 reply; 5+ messages in thread
From: Iñaki Baz Castillo @ 2011-02-23 12:56 UTC (permalink / raw)
  To: ruby.posix.mq

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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: posix_mq : Problem installing on HPUX
  2011-02-23 12:40 posix_mq : Problem installing on HPUX tad.bochan
  2011-02-23 12:56 ` Iñaki Baz Castillo
@ 2011-02-23 19:53 ` Eric Wong
  1 sibling, 0 replies; 5+ messages in thread
From: Eric Wong @ 2011-02-23 19:53 UTC (permalink / raw)
  To: ruby.posix.mq

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: posix_mq : Problem installing on HPUX
  2011-02-23 12:56 ` Iñaki Baz Castillo
@ 2011-02-23 19:58   ` Eric Wong
  2011-02-23 20:13     ` Iñaki Baz Castillo
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Wong @ 2011-02-23 19:58 UTC (permalink / raw)
  To: ruby.posix.mq

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: posix_mq : Problem installing on HPUX
  2011-02-23 19:58   ` Eric Wong
@ 2011-02-23 20:13     ` Iñaki Baz Castillo
  0 siblings, 0 replies; 5+ messages in thread
From: Iñaki Baz Castillo @ 2011-02-23 20:13 UTC (permalink / raw)
  To: ruby.posix.mq

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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-23 20:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-23 12:40 posix_mq : Problem installing on HPUX tad.bochan
2011-02-23 12:56 ` Iñaki Baz Castillo
2011-02-23 19:58   ` Eric Wong
2011-02-23 20:13     ` Iñaki Baz Castillo
2011-02-23 19:53 ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/ruby_posix_mq.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).