[syslog-ng] syslog-ng 2.0.0 compile problem

Balazs Scheidler bazsi at balabit.hu
Thu Nov 16 15:16:58 CET 2006


On Thu, 2006-11-16 at 12:55 +0100, Buozis, Martynas wrote:
> Hello
> 
> I tried to compile syslog-ng on Solaris 10 with Sun Studio 11 using
> following configure line :
> 
> PKG_CONFIG_PATH=/opt/eventlog/lib/pkgconfig/ GLIB_LIBS=/opt/glib/lib/
> CC=cc CXX=CC  ./configure --prefix=/opt/syslog-ng
> --sysconfdir=/opt/syslog-ng/
> 
> I have compiled Eventlog and GLIB (statistically) with same compiler.
> Alas configure returns error:
> 
> error: static GLib libraries not found (a file named libglib-2.0.a),
> either link GLib dynamically using the --enable-dynamic-linking or insta
> ll a static Glib
> 
> What I found in config.log is a syntax problem in test code? Can this be
> fixed somehow by some patch or workaround? I also think, that compile
> line is also not correct :

Thanks for the hint. I've committed a patch that should address this
issue. Can you check the latest snapshot or this patch?

--- orig/configure.in
+++ mod/configure.in
@@ -201,12 +201,9 @@ AC_CACHE_CHECK(for static GLib libraries
 [AC_TRY_LINK([], [
 extern void g_hash_table_new(void);
 
-int main()
-{
-  void (*fn)(void) = g_hash_table_new;
+void (*fn)(void) = g_hash_table_new;
 
-  return (int) fn;
-}
+return (int) fn;
 
 ],
 blb_cv_static_glib=yes,





-- 
Bazsi



More information about the syslog-ng mailing list