Re: Building qpid 0.34 on Solaris

2016-04-18 Thread Andrew Stitcher
On Fri, 2016-04-15 at 16:16 +0200, Adel Boutros wrote:
> Hello Andrew,
> We finally decided to stop trying to compile it on Solaris. We
> estimate it will take a lot of time to make it work on Solaris (To
> make the unit tests pass at least).

Adel,

That sounds very pragmatic.

In the past I have built qpidd with Solaris, if I get a little spare
time I may run up a Solaris descendant and try again.

I will very likely try with OmniOS (as that seems like the best
supported free Solaris currently) and the GNU tools. The (as was then)
Sun compilers were very much harder to get to compile qpid. This will
be x86 not sparc (I don't have access to any of those), so it may not
reflect your issues anyway.

I do have a Solaris 11 VM sitting around, but bit rot has set in (in my
memory!) and I can't remember how to start it!

Andrew


-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



RE: Building qpid 0.34 on Solaris

2016-04-15 Thread Adel Boutros
Hello Andrew,
We finally decided to stop trying to compile it on Solaris. We estimate it will 
take a lot of time to make it work on Solaris (To make the unit tests pass at 
least).
Regards,Adel

> Subject: Re: Building qpid 0.34 on Solaris
> From: astitc...@redhat.com
> To: users@qpid.apache.org
> Date: Fri, 15 Apr 2016 08:51:23 -0400
> 
> On Tue, 2016-04-12 at 14:06 +0200, Adel Boutros wrote:
> > Hello Raphael,
> > I had checked the stackoverflow link before and it seemed the only
> > way to fix it was to comment "__thread" but I don't find it as a good
> > solution as it might have side-effects. Were you able to find
> > something else that worked?
> 
> commenting out the __thread will definitely cause problems unless you
> are running with a single worker thread as that variable *must* be
> thread local or bad things will happen!
> 
> Andrew
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
> 
  

Re: Building qpid 0.34 on Solaris

2016-04-15 Thread Andrew Stitcher
On Tue, 2016-04-12 at 14:06 +0200, Adel Boutros wrote:
> Hello Raphael,
> I had checked the stackoverflow link before and it seemed the only
> way to fix it was to comment "__thread" but I don't find it as a good
> solution as it might have side-effects. Were you able to find
> something else that worked?

commenting out the __thread will definitely cause problems unless you
are running with a single worker thread as that variable *must* be
thread local or bad things will happen!

Andrew


-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



RE: Building qpid 0.34 on Solaris

2016-04-12 Thread Adel Boutros
Hello Raphael,
I had checked the stackoverflow link before and it seemed the only way to fix 
it was to comment "__thread" but I don't find it as a good solution as it might 
have side-effects. Were you able to find something else that worked?
Regards,Adel

> From: raphael.fuc...@gmail.com
> Date: Tue, 12 Apr 2016 11:12:20 +0200
> Subject: Re: Building qpid 0.34 on Solaris
> To: users@qpid.apache.org
> 
> Hi Adel,
> 
> check here:
> 
> http://stackoverflow.com/questions/31543701/what-does-relocation-illegal-when-not-bound-to-object-being-created-mean
> 
> this solved my problem.
> 
> Cheers
> Raphael
> 
> 
> 2016-04-06 17:03 GMT+02:00 Adel Boutros :
> 
> > Hello Raphael,
> >
> > I am experiencing the same issue. I would like to know if you were able to
> > provide a workaround or a patch other than just commenting out the
> > "__thread"?
> >
> > Regards,
> > Adel Boutros
> > www.murex.com
> >
> >
> >
> > --
> > View this message in context:
> > http://qpid.2158936.n2.nabble.com/Building-qpid-0-34-on-Solaris-tp7628470p7641494.html
> > Sent from the Apache Qpid users mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> > For additional commands, e-mail: users-h...@qpid.apache.org
> >
> >
  

Re: Building qpid 0.34 on Solaris

2016-04-12 Thread Raphael Fuchs
Hi Adel,

check here:

http://stackoverflow.com/questions/31543701/what-does-relocation-illegal-when-not-bound-to-object-being-created-mean

this solved my problem.

Cheers
Raphael


2016-04-06 17:03 GMT+02:00 Adel Boutros :

> Hello Raphael,
>
> I am experiencing the same issue. I would like to know if you were able to
> provide a workaround or a patch other than just commenting out the
> "__thread"?
>
> Regards,
> Adel Boutros
> www.murex.com
>
>
>
> --
> View this message in context:
> http://qpid.2158936.n2.nabble.com/Building-qpid-0-34-on-Solaris-tp7628470p7641494.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
>
>


Re: Building qpid 0.34 on Solaris

2016-04-06 Thread Adel Boutros
Hello Raphael,

I am experiencing the same issue. I would like to know if you were able to
provide a workaround or a patch other than just commenting out the
"__thread"?

Regards,
Adel Boutros
www.murex.com



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Building-qpid-0-34-on-Solaris-tp7628470p7641494.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Building qpid 0.34 on Solaris

2015-07-28 Thread Raphael Fuchs
Update: it compiles if I remove all the thread-local __thread qualifiers. I
will replace them with a posix implementation.

2015-07-23 18:21 GMT+02:00 Raphael Fuchs :

> Hello!
>
> I am trying to build Apache Qpid on a SPARC running Solaris 10. By now
> libqpidtypes.so builds, but libqpidcommon.so does not link. I am running
> out of ideas...
>
> After compilation the linker creates a lot of error messages like this:
>
> ld: fatal: relocation error: R_SPARC_TLS_LDO_ADD: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: 
> *relocation
> illegal when not bound to object being created*
>
> I have built the required boost library program_options like this:
>
>  ./b2 install address-model=64 cxxflags="-fPIC" --with-program_options
>
> Google produces two unhelpful search results
> 
> to "relocation illegal when not bound to object being created"
>
> *Question*: can you give me a hint how to get Qpid to build?
>
> Thank you very much for your support.
>
> Cheers,
>
> Raphael
>
> PS: I have asked the same question on stack overflow:
> http://stackoverflow.com/questions/31543701/what-does-relocation-illegal-when-not-bound-to-object-being-created-mean
>
>
>
> --
>
> Here is the complete error message:
>
> ld: warning: file /usr/local/lib/libboost_program_options.so: attempted
> multiple inclusion of file ld: fatal: relocation error:
> R_SPARC_TLS_LDM_HI22: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDM_HI22: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDO_HIX22: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDM_LO10: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDM_ADD: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDM_CALL: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDO_LOX10: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDO_ADD: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDM_LO10: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
> _ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
> bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
> relocation illegal when not bound to object being created ld: fatal:
> relocation error: R_SPARC_TLS_LDM_ADD: file
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/Posix

Building qpid 0.34 on Solaris

2015-07-23 Thread Raphael Fuchs
Hello!

I am trying to build Apache Qpid on a SPARC running Solaris 10. By now
libqpidtypes.so builds, but libqpidcommon.so does not link. I am running
out of ideas...

After compilation the linker creates a lot of error messages like this:

ld: fatal: relocation error: R_SPARC_TLS_LDO_ADD: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
*relocation
illegal when not bound to object being created*

I have built the required boost library program_options like this:

 ./b2 install address-model=64 cxxflags="-fPIC" --with-program_options

Google produces two unhelpful search results

to "relocation illegal when not bound to object being created"

*Question*: can you give me a hint how to get Qpid to build?

Thank you very much for your support.

Cheers,

Raphael

PS: I have asked the same question on stack overflow:
http://stackoverflow.com/questions/31543701/what-does-relocation-illegal-when-not-bound-to-object-being-created-mean



--

Here is the complete error message:

ld: warning: file /usr/local/lib/libboost_program_options.so: attempted
multiple inclusion of file ld: fatal: relocation error:
R_SPARC_TLS_LDM_HI22: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDM_HI22: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDO_HIX22: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDM_LO10: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDM_ADD: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDM_CALL: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDO_LOX10: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDO_ADD: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDM_LO10: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDM_ADD: file
CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o: symbol
_ZZN4qpid3sys15DeletionManagerINS0_19PollerHandlePrivateEE15getThreadStatusEvE12threadStatus:
bound to: CMakeFiles/qpidcommon.dir/qpid/sys/posix/PosixPoller.cpp.o:
relocation illegal when not bound to object being created ld: fatal:
relocation error: R_SPARC_TLS_LDM_CALL: file
CMakeFiles/qpidcommon.dir/qpid/s