Building on FreeBSD 6.1

Aron Stansvik elvstone at gmail.com
Fri Oct 13 01:47:44 PDT 2006


2006/10/8, Aron Stansvik <elvstone at gmail.com>:
> 2006/10/8, Steev Klimaszewski <steev at steev.net>:
> > Aron Stansvik wrote:
> > > Hello DBus folks!
> > >
> > > Today I tried building 0.93 on FreeBSD 6.1 and bumped into two minor
> > > issues. The first is that on FreeBSD dirfd(2) is a macro, and not a
> > > function, and hence will not be found by the AC_CHECK_FUNCS() macro in
> > > configure.in. This results in a compilation error as on my system
> > > dbus-sysdeps-util-unix.c:518 is reached:
> > >
> > > #           error "buffer size for readdir_r cannot be determined"
> > >
> > > thiago suggested on IRC that AC_TRY_COMPILE should be used to check
> > > for dirfd(2) instead, but I'm an autotools illiterate so I don't quite
> > > know how to go about this (I also saw in autoconf manual that
> > > AC_TRY_COMPILE is deprecated in favor of AC_COMPILE_IFELSE(), which I
> > > guess should be used instead).
> > >
> > > The second problem is simpler; FreeBSD needs the -pthread link flag in
> > > order to find the POSIX threads symbols.
> > >
> > > These are the two things that are needed to get DBus to compile out of
> > > the box on FreeBSD, so if someone with their fingers deep in the build
> > > system could respond, that would be great.
> > >
> > > If access to a FreeBSD system would help, e-mail me privatly and you
> > > can get an account on my machine.
> > >
> > > Thanks for your great work on an important piece in the *NIX desktop
> > > puzzle.
> > >
> > > Best regards,
> > > Aron Stansvik
> > > _______________________________________________
> > > dbus mailing list
> > > dbus at lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/dbus
> > >
> > >
> > Hey Aron, list,
> >
> > Sorry for a super long time in replying, my networking at home has been
> > shoddy lately.  With regards to building on FreeBSD, could you have a
> > look at https://bugs.freedesktop.org/show_bug.cgi?id=8298 and see if
> > that patch works for you?  Also, Havoc, when you have some time, could
> > you review the patch as well?  This is a different version of the patch
> > that I had previously sent to the mailing list (Re: Compiling on
> > FreeBSD)  Thanks!
>
> Hi Steev.
>
> Thanks for replying. With the patch, I get this:
>
> ...
> checking dynamic linker characteristics... freebsd6.1 ld.so
> checking how to hardcode library paths into programs... immediate
> ./configure: line 19091: syntax error near unexpected token `,{'
> ./configure: line 19091: `ACX_PTHREAD(,{ { echo "$as_me:$LINENO:
> error: Missing POSIX Threads support" >&5'
>
> I'm not sure what the problem is. I did regenerate my 'configure' with
> the autotools, as I saw that configure.in was updated. I think we're
> closer to a working out-of-the box build though, as I looked at the
> changes in the patch and they make sense to me.
>
> Thanks for any advice on how to solve the above error.

Ping? :)

Aron


More information about the dbus mailing list