[openamq-dev] FreeBSD port of OpenAMQ has been submitted
Denn Sporcic
denn at opensrcsystems.com
Wed Jan 9 13:19:51 CET 2008
Building OpenAMQ fails the sysvipc_allowed test when not in a jail.
If I remove the check-sysvipc_allowed check from the Makefile it builds on a
FreeeBSD 7.0 install (no jail)
On Wed, 9 Jan 2008 10:11:00 pm Jacobus Geluk wrote:
> I have to admit that I only tested the port in a jail on my own
> server, a FreeBSD 7 (latest beta) amd64 (intel quadcore) server.
>
> The sysvipic check was necessary since OpenAMQ uses the shmem calls in
> the APR library, which are by default not allowed in a jail.
Yes. I agree with this. You must have the sysctl set within a jail. I have
encountered this with PostgresQL in a jail as well.
> And in a non-jail environment, if someone has set sysvipc_allowed=0,
> the build of OpenAMQ would also fail. It is not just a runtime issue.
default options for 6.X and 7.X has SYSV enabled.
/usr/src/sys/i386/conf/GENERIC
/usr/src/sys/amd64/conf/GENERIC
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
In a non jail environment there is no sysctl option for sysvipc_allowed. This
is only for jails from my understanding.
Maybe a test to check if we are in a jail is needed first.
# sysctl security.jail.jailed
If we are in a jail then check for sysvipc_allowed otherwise continue.
>
> What error did you get on FreeBSD 6.2?
You have added an gcc option -Wno-pointer-sign. This is a new compiler option
added in gcc 4.X, FreeBSD default compiler is now 4.2.1. -Wno-pointer-sign
doesn't exist in gcc 3.4.X.
It fails to build straight away.
===> Building for openamq-1.2c4
===> Checking security.jail.sysvipc_allowed: 1
===> Creating build script
===> Executing build script...
/bin/sh /usr/ports/net/openamq/work/portbuild.sh
Executing /usr/ports/net/openamq/work/portbuild.sh in
directory /usr/ports/net/openamq...
boom I: [foreign]: Processing project in c...
boom I: [c]: Building C compile scripts...
boom I: [c]: Installing C compile scripts
into /usr/ports/net/openamq/work/OpenAMQ-1.2c4/foreign-1.1d7/_install...
boom I: [foreign]: Processing project in zlib...
boom I: [zlib]: Building Zlib...
cc1: error: unrecognized command line option "-Wno-pointer-sign"
boom E:
[zlib]: "c -q -li /usr/ports/net/openamq/work/OpenAMQ-1.2c4/foreign-1.1d7/_install/include -ll /usr/ports/net/openamq/work/OpenAMQ-1.2c4/foreign-1.1d7/_install/lib
adler32" failed - stop
boom E: [foreign]: stop
>
> On Jan 9, 2008 11:41 AM, Denn Sporcic <denn at opensrcsystems.com> wrote:
> > pardon me,
> >
> > I was able to build this on a x86 FreeBSD 7.0 PRERELEASE install.
> > Failed building on a 6.2 RELEASE AMD64
> >
> > looking into it...
> >
> > cheers
> > Denn
> >
> > On Tue, 8 Jan 2008 11:09:13 pm Denn Sporcic wrote:
> > > Thats great news Jacobus :)
> > >
> > > I have been away on holidays for the last month.
> > > I have reviewed your work...
> > >
> > > I noticed a check for sysvipc_allowed in an jail environment.
> > > I was able to build openamq with this sysctl set to 1 successfully.
> > > This is on FreeBSD6.2 AMD64
> > >
> > > On Wed, 2 Jan 2008 08:25:06 pm Martin Sustrik wrote:
> > > > Great! Thanks!
> > > >
> > > > Martin
> > > >
> > > > Jacobus Geluk wrote:
> > > > > OpenAMQ users using FreeBSD:
> > > > >
> > > > > I just created a port for OpenAMQ. It has been submitted to "GNATS"
> > > > > with PR number 119224.
> > > > > See http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/119224 to view
> > > > > its status or to download the shar file to use and test the port.
> > > > >
> > > > > The port uses the "boomake" based build system, but is does not use
> > > > > the APR and PCRE libraries included in the OpenAMQ distribution. It
> > > > > now just depends on the ports devel/apr and devel/pcre.
> > > > > The "BOOM_MODEL" used is "mt,release".
> > > > >
> > > > > Happy new year.
> > > > > Jacobus Geluk
> > > > > _______________________________________________
> > > > > openamq-dev mailing list
> > > > > openamq-dev at lists.openamq.org
> > > > > http://lists.openamq.org/mailman/listinfo/openamq-dev
> > > >
> > > > _______________________________________________
> > > > openamq-dev mailing list
> > > > openamq-dev at lists.openamq.org
> > > > http://lists.openamq.org/mailman/listinfo/openamq-dev
> > >
> > > _______________________________________________
> > > openamq-dev mailing list
> > > openamq-dev at lists.openamq.org
> > > http://lists.openamq.org/mailman/listinfo/openamq-dev
> >
> > _______________________________________________
> > openamq-dev mailing list
> > openamq-dev at lists.openamq.org
> > http://lists.openamq.org/mailman/listinfo/openamq-dev
More information about the openamq-dev
mailing list