I have found that specifying CPPFLAGS was not necessary.
Specifying /usr/sfw/include in CFLAGS is required for expat as expat.h
is in /usr/sfw/include.
Specifying -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ in CFLAGS is required to
compile avahi-core/socket.c.
Specifying LDFLAGS is required because libexpat.so is in /usr/sfw/lib.
-lnsl -lsocket is required to make domain-test build because of
unresolved references to inet_pton and inet_ntop.
Padraig
Lennart Poettering wrote:
On Tue, 02.05.06 15:35, Padraig O'Briain ([EMAIL PROTECTED]) wrote:
I have been looking at building avahi 0.6.9 on Solaris.
The attached patch allows me to build with the following configure command:
CPPFLAGS="-I/usr/sfw/include" CFLAGS="-I/usr/sfw/include
-D_XOPEN_SOURCE=500 -D__EXTENSIONS__" LDFLAGS="-lsocket -lnsl
-L/usr/sfw/lib" ./configure --prefix=/usr --localstatedir=/var
--sysconfdir=/etc --with-distro=none --disable-qt3 --disable-qt4
--disable-mono --disable-monodoc --enable-tests --disable-compat-howl
--disable-compat-libdns_sd -enable-expat --disable-gdbm
Could this patch be applied?
Is there any good reason why you chose to pass those CPPFLAGS and
LDFLAGS values manually to configure instead of adding proper autoconf
checks to add them automatically if required?
Lennart
_______________________________________________
avahi mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/avahi