Luigi,
There are a few hacks I've done in the past to get OpenPBX to build
on FreeBSD. To be honest, it involves a lot of symlinks due to the
way the ports collection manages multiple versions of the auto* and
libtool bits.
This is all from memory, so correct where necessary; it'll give you
a pretty good starting point, and yes it is definitely a poor hack.
I too do not understand the auto* tools well enough to do it properly,
even after spending a few hours wading through info(1) pages, I'm
still not getting it.
You will need libtiff installed, and you will need to grab the proper
version of spandsp and install that, at least.
The general idea is like this:
----------------------------------------------------------------------
ln -s /usr/local/bin/bash /bin/bash
cd /usr/local/share
mkdir aclocal.backup
cp -Rp aclocal aclocal.backup/
cp -Rp aclocal19 aclocal.backup/
mv aclocal19/* aclocal/
ln -s /usr/local/bin/aclocal19 /usr/local/bin/aclocal
ln -s /usr/local/bin/autoconf259 /usr/local/bin/autoconf
ln -s /usr/local/bin/autoheader259 /usr/local/bin/autoheader
ln -s /usr/local/bin/automake19 /usr/local/bin/automake
ln -s /usr/local/bin/libtool15 /usr/local/bin/libtool
ln -s /usr/local/bin/libtoolize15 /usr/local/bin/libtoolize15
[cd ...../OpenPBX-From-SVN]
./bootstrap.sh
export CFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib"
./configure --prefix=/usr/local
----------------------------------------------------------------------
That should get you close. I'll retry it later on one of my dev
machines and make corrections to the list if I'm not swamped.
-- Jonathan Towne
On Sun, Jan 08, 2006 at 10:47:57AM -0800, Luigi Rizzo scribbled:
# On Sun, Jan 08, 2006 at 07:35:34PM +0100, Armin Schindler wrote:
# > On Sun, 8 Jan 2006, Luigi Rizzo wrote:
# > > Followup to my previous message.. I am a bit ashamed to ask, but
# > > can whoever came up with the configure.ac file in openpbx
# > > contact me via email ?
# > >
# > > I am trying to fix the FreeBSD case, and i am not too
# > > confident about the configure.ac coming from svn.
# > >
# > > In particular, the os-check based on the ${host} variable fails on
# > > FreeBSD - a quick web search (see e.g.
# > >
# > > http://roo.no-ip.org/howtos/autoconf.php
# > >
# > > seems to suggest that os-specific tweaks should be done based on
# > > AC_CANONICAL_TARGET
# > > and resulting $target_os etc macros.
# >
# > I don't know much about FreeBSD, but maybe your auto* tools are with wrong
# > version.
#
# autoconf 2.59
#
# > Have you tried my provided package which includes necessary tools and can
# > build without installing teh auto* tools:
# > ftp://ftp.sysgo.com/OpenPBX/OpenPBX-complete.tgz
#
# haven't tried, and i'd rather not reinsall a lot of machinery
# just because i don't understand what is wrong in the .ac file.
#
# FWIW this is my major concern with auto* tools - more often than
# not, they are copied and modified without understanding well what
# happens there, and the result tends to be unmanageable.
#
# FWIW this cut&paste programming approach is also giving us (or at
# least me) a lot of work to try and clean up asterisk sources.
#
# cheers
# luigi
#
# > Armin
# >
# > > Besides, most configure.ac files i have seen are very
# > > short, not the 1900+ lines that we have here.
# > > Maybe some things can be optimized a lot ?
# > >
# > > cheers
# > > luigi
# > >
# > >
# > > On Sun, Jan 08, 2006 at 04:21:46PM +0100, Mikael Magnusson wrote:
# > > > On Sun, Jan 08, 2006 at 07:03:06AM -0800, Luigi Rizzo wrote:
# > > > > did anyone succeed on compiling openpbx on FreeBSD ?
# > > > > There is no configure script in svn, and i am not
# > > > > familiar with the auto* tools, so even if i managed
# > > > > to run the 'bootstrap.sh' script, it still fails to
# > > > > find some libraries (e.g. tiff if i remember well)
# > > > > that on FreeBSD are under /usr/local.
# > > > > Makes me think that the paths are not properly set.
# > > > >
# > > > > If someone can help, even contacting me offline, i'd be grateful
# > > > >
# > > > > thanks
# > > > > luigi
# > > >
# > > > Have you tried to use --with-tiff-includes and --with-tiff-libs
parameters
# > > > to configure?
# > > >
# > > > Maybe --with-tiff-includes=/usr/local/include
# > > > --with-tiff-libs=/usr/local/lib
# > > >
# > > > ./configure --help|grep tiff
# > > > --with-tiff-includes Location of libtiff include files.
# > > > --with-tiff-libs Location of libtiff library files.
# > > >
# > > > /Mikael
# > > >
# > > > _______________________________________________
# > > > Openpbx-dev mailing list
# > > > [email protected]
# > > > http://lists.openpbx.org/mailman/listinfo/openpbx-dev
# > > _______________________________________________
# > > Openpbx-dev mailing list
# > > [email protected]
# > > http://lists.openpbx.org/mailman/listinfo/openpbx-dev
# > >
# _______________________________________________
# Openpbx-dev mailing list
# [email protected]
# http://lists.openpbx.org/mailman/listinfo/openpbx-dev
--
/~\ The ASCII
\ / Ribbon Campaign
X Against HTML
/ \ Email!
_______________________________________________
Openpbx-dev mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-dev