syslog-ng-2.1.3: 'Configure' failed on Solaris 8 using --enable-static-linking
Hi, I have successfully build syslog-ng-2.1.3 with --enable-dynamic-linking on Solaris 8. While trying to build using --enable-static-linking option, it is not allowing me to configure syslog-ng-2.1.3 version on my Solaris 8 box (sparc). It is not able to find glib-2.0.a (Static library), though it is available in /usr/local/lib path. -rw-r--r-- 1 root 2822036 Jan 15 06:21 /usr/local/lib/libglib-2.0.a Here is error message while doing compilation: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- ./configure --enable-static-linking --prefix=/opt/syslog-ng-2.1.3 .... .... checking whether to enable TCP wrapper support... no checking whether to enable spoof source support... no checking whether to enable IPv6 support... yes checking whether to enable SQL support... no checking for pkg-config... (cached) /usr/local/bin/pkg-config checking pkg-config is at least version 0.14... yes checking for GLIB - version >= 2.4.0... yes (version 2.13.0) checking for static GLib libraries... no checking sanity checking Glib headers... yes configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- I have compiled glib-2.13.1 witn --enable-static option to get libglib-2.0.a library using gcc-3.4.6 compiler (same I am using for syslog-ng). Somehow syslog-ng is not able to find Static Glib during configure. Any help will be highly appreciated. Thanks, Chanchal Verma
I had the same issue, I enabled dynamic linking and it compiled. Regards Riza On Fri, Jan 16, 2009 at 9:13 AM, Chanchal Verma <cverma2@csc.com> wrote:
Hi,
I have successfully build syslog-ng-2.1.3 with --enable-dynamic-linking on Solaris 8. While trying to build using --enable-static-linking option, it is not allowing me to configure syslog-ng-2.1.3 version on my Solaris 8 box (sparc). It is not able to find glib-2.0.a (Static library), though it is available in /usr/local/lib path.
-rw-r--r-- 1 root 2822036 Jan 15 06:21 /usr/local/lib/libglib-2.0.a
Here is error message while doing compilation:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------- ./configure --enable-static-linking --prefix=/opt/syslog-ng-2.1.3 .... .... checking whether to enable TCP wrapper support... no checking whether to enable spoof source support... no checking whether to enable IPv6 support... yes checking whether to enable SQL support... no checking for pkg-config... (cached) /usr/local/bin/pkg-config checking pkg-config is at least version 0.14... yes checking for GLIB - version >= 2.4.0... yes (version 2.13.0) checking for static GLib libraries... no checking sanity checking Glib headers... yes configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have compiled glib-2.13.1 witn --enable-static option to get libglib-2.0.a library using gcc-3.4.6 compiler (same I am using for syslog-ng). Somehow syslog-ng is not able to find Static Glib during configure.
Any help will be highly appreciated.
Thanks, Chanchal Verma
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
Thanks Riza for your comment. I have also colpiles syslog-ng2.1.3 successfully using --enabledynamic-linking option. Here I want to compile syslog-ng-2.1.3 with --enable-static-linking option. With Regards, Chanchal Verma Riza Kamalie <sorted78@gmail.com> Sent by: syslog-ng-bounces@lists.balabit.hu 01/16/2009 01:35 PM Please respond to "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> To "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> cc Subject Re: [syslog-ng] syslog-ng-2.1.3: 'Configure' failed on Solaris 8 using --enable-static-linking I had the same issue, I enabled dynamic linking and it compiled. Regards Riza On Fri, Jan 16, 2009 at 9:13 AM, Chanchal Verma <cverma2@csc.com> wrote: Hi, I have successfully build syslog-ng-2.1.3 with --enable-dynamic-linking on Solaris 8. While trying to build using --enable-static-linking option, it is not allowing me to configure syslog-ng-2.1.3 version on my Solaris 8 box (sparc). It is not able to find glib-2.0.a (Static library), though it is available in /usr/local/lib path. -rw-r--r-- 1 root 2822036 Jan 15 06:21 /usr/local/lib/libglib-2.0.a Here is error message while doing compilation: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- ./configure --enable-static-linking --prefix=/opt/syslog-ng-2.1.3 .... .... checking whether to enable TCP wrapper support... no checking whether to enable spoof source support... no checking whether to enable IPv6 support... yes checking whether to enable SQL support... no checking for pkg-config... (cached) /usr/local/bin/pkg-config checking pkg-config is at least version 0.14... yes checking for GLIB - version >= 2.4.0... yes (version 2.13.0) checking for static GLib libraries... no checking sanity checking Glib headers... yes configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- I have compiled glib-2.13.1 witn --enable-static option to get libglib-2.0.a library using gcc-3.4.6 compiler (same I am using for syslog-ng). Somehow syslog-ng is not able to find Static Glib during configure. Any help will be highly appreciated. Thanks, Chanchal Verma ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
Somebody much more knowledgeable then me said here: https://lists.balabit.hu/pipermail/syslog-ng/2009-January/012392.html "Checking out the glib source, glib does not seem to be prepared to be used in static linking, but I may be wrong here." Seems you'll have to proof Bazsi wrong if you want this ;-) Joost Chanchal Verma schreef:
Thanks Riza for your comment. I have also colpiles syslog-ng2.1.3 successfully using --enabledynamic-linking option.
Here I want to compile syslog-ng-2.1.3 with --enable-static-linking option.
With Regards, Chanchal Verma
*Riza Kamalie <sorted78@gmail.com>* Sent by: syslog-ng-bounces@lists.balabit.hu
01/16/2009 01:35 PM Please respond to "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu>
To "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> cc
Subject Re: [syslog-ng] syslog-ng-2.1.3: 'Configure' failed on Solaris 8 using --enable-static-linking
I had the same issue, I enabled dynamic linking and it compiled.
Regards Riza
On Fri, Jan 16, 2009 at 9:13 AM, Chanchal Verma <_cverma2@csc.com_ <mailto:cverma2@csc.com>> wrote:
Hi,
I have successfully build syslog-ng-2.1.3 with --enable-dynamic-linking on Solaris 8. While trying to build using --enable-static-linking option, it is not allowing me to configure syslog-ng-2.1.3 version on my Solaris 8 box (sparc). It is not able to find glib-2.0.a (Static library), though it is available in /usr/local/lib path.
-rw-r--r-- 1 root 2822036 Jan 15 06:21 /usr/local/lib/libglib-2.0.a
Here is error message while doing compilation: -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
./configure --enable-static-linking --prefix=/opt/syslog-ng-2.1.3 .... .... checking whether to enable TCP wrapper support... no checking whether to enable spoof source support... no checking whether to enable IPv6 support... yes checking whether to enable SQL support... no checking for pkg-config... (cached) /usr/local/bin/pkg-config checking pkg-config is at least version 0.14... yes checking for GLIB - version >= 2.4.0... yes (version 2.13.0) checking for static GLib libraries... no checking sanity checking Glib headers... yes configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have compiled glib-2.13.1 witn --enable-static option to get libglib-2.0.a library using gcc-3.4.6 compiler (same I am using for syslog-ng). Somehow syslog-ng is not able to find Static Glib during configure.
Any help will be highly appreciated.
Thanks, Chanchal Verma ______________________________________________________________________________ Member info: _https://lists.balabit.hu/mailman/listinfo/syslog-ng_ Documentation: _http://www.balabit.com/support/documentation/?product=syslog-ng_ FAQ: _http://www.campin.net/syslog-ng/faq.html_
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
------------------------------------------------------------------------
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Fri, 2009-01-16 at 10:27 +0100, Joost De Cock wrote:
Somebody much more knowledgeable then me said here: https://lists.balabit.hu/pipermail/syslog-ng/2009-January/012392.html
"Checking out the glib source, glib does not seem to be prepared to be used in static linking, but I may be wrong here."
Seems you'll have to proof Bazsi wrong if you want this ;-)
Out-of-context here, glib does not work in static form on Windows. But should on Solaris. I'll answer the other mail with a possible solution. -- Bazsi
On Fri, 2009-01-16 at 12:43 +0530, Chanchal Verma wrote:
Hi,
I have successfully build syslog-ng-2.1.3 with --enable-dynamic-linking on Solaris 8. While trying to build using --enable-static-linking option, it is not allowing me to configure syslog-ng-2.1.3 version on my Solaris 8 box (sparc). It is not able to find glib-2.0.a (Static library), though it is available in /usr/local/lib path.
-rw-r--r-- 1 root 2822036 Jan 15 06:21 /usr/local/lib/libglib-2.0.a
Here is error message while doing compilation: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- ./configure --enable-static-linking --prefix=/opt/syslog-ng-2.1.3 .... .... checking whether to enable TCP wrapper support... no checking whether to enable spoof source support... no checking whether to enable IPv6 support... yes checking whether to enable SQL support... no checking for pkg-config... (cached) /usr/local/bin/pkg-config checking pkg-config is at least version 0.14... yes checking for GLIB - version >= 2.4.0... yes (version 2.13.0) checking for static GLib libraries... no checking sanity checking Glib headers... yes configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have compiled glib-2.13.1 witn --enable-static option to get libglib-2.0.a library using gcc-3.4.6 compiler (same I am using for syslog-ng). Somehow syslog-ng is not able to find Static Glib during configure.
Are you sure syslog-ng finds the proper glib? the configure script uses pkg-config to discover the available glib version, and pkg-config uses PKG_CONFIG_PATH environment variable to find the relevant .pc files. If you installed the static glib to /usr/local/lib, then your .pc file should have been installed in /usr/local/lib/pkgconfig/glib-2.0.pc You might have other glib installations, and provided your pkg-config finds those first, your glib library won't be found. I've found one suspicious thing that this is the case: you said you installed glib 2.13.1 and the configure script states that it has found 2.13.0 Try this: pkg-config --libs glib-2.0.pc what does it display for you, I guess it points to a directory different than /usr/local//lib -- Bazsi
Thanks Bazsi, with your valuable input I am successfully configure with --enable-static-linking option. While doing 'make' it is not able to find certain static libraries (*.a).
From where I can get these libraries. I have pasted the error message faced during 'make':
**********************************************************
make .. .. rm -f libsyslog-ng.a ar cru libsyslog-ng.a misc.o utils.o messages.o syslog-names.o cfg.o cfg-lex.o cfg-grammar.o macros.o filter.o logmsg.o logpipe.o logsource.o driver.o sgroup.o dgroup.o center.o templates.o logreader.o logwriter.o affile.o afstreams.o afuser.o afprog.o afsocket.o afunix.o afinet.o afinter.o children.o stats.o gsockaddr.o fdwrite.o fdread.o memtrace.o dnscache.o apphook.o serialize.o logqueue.o afsql.o alarms.o globals.o ranlib libsyslog-ng.a if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/opt/soe/local/syslog-ng-2.1.3/eventlog/include/eventlog -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi gcc -g -O2 -Wall -o syslog-ng main.o libsyslog-ng.a -static -lpthread -lresolv -lnsl -lrt -lsocket -ldoor -ll -L/usr/local/lib -lglib-2.0 -lintl -liconv -L/opt/soe/local/syslog-ng-2.1.3/eventlog/lib -levtlog ld: fatal: library -lpthread: not found ld: fatal: library -lresolv: not found ld: fatal: library -lrt: not found ld: fatal: library -ldoor: not found ld: fatal: File processing errors. No output written to syslog-ng collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/syslog-prereq/syslog-ng-2.1.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/syslog-prereq/syslog-ng-2.1.3' make: *** [all] Error 2
I have checked on my solaris 8 box, these libraries (libpthread.a, librt.a, libresolv, libdoor.a) are not available. From where can I get required libraries? I have used gcc-3.4.6 compiler. I tried to install gcc-4.2.3 on this Solaris box but not succeeded. :( With Regards, Chanchal Verma Balazs Scheidler <bazsi@balabit.hu> Sent by: syslog-ng-bounces@lists.balabit.hu 01/16/2009 07:05 PM Please respond to "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> To "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> cc Subject Re: [syslog-ng] syslog-ng-2.1.3: 'Configure' failed on Solaris 8 using --enable-static-linking On Fri, 2009-01-16 at 12:43 +0530, Chanchal Verma wrote:
Hi,
I have successfully build syslog-ng-2.1.3 with --enable-dynamic-linking on Solaris 8. While trying to build using --enable-static-linking option, it is not allowing me to configure syslog-ng-2.1.3 version on my Solaris 8 box (sparc). It is not able to find glib-2.0.a (Static library), though it is available in /usr/local/lib path.
-rw-r--r-- 1 root 2822036 Jan 15 06:21 /usr/local/lib/libglib-2.0.a
Here is error message while doing compilation:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
./configure --enable-static-linking --prefix=/opt/syslog-ng-2.1.3 .... .... checking whether to enable TCP wrapper support... no checking whether to enable spoof source support... no checking whether to enable IPv6 support... yes checking whether to enable SQL support... no checking for pkg-config... (cached) /usr/local/bin/pkg-config checking pkg-config is at least version 0.14... yes checking for GLIB - version >= 2.4.0... yes (version 2.13.0) checking for static GLib libraries... no checking sanity checking Glib headers... yes configure: error: static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have compiled glib-2.13.1 witn --enable-static option to get libglib-2.0.a library using gcc-3.4.6 compiler (same I am using for syslog-ng). Somehow syslog-ng is not able to find Static Glib during configure.
Are you sure syslog-ng finds the proper glib? the configure script uses pkg-config to discover the available glib version, and pkg-config uses PKG_CONFIG_PATH environment variable to find the relevant .pc files. If you installed the static glib to /usr/local/lib, then your .pc file should have been installed in /usr/local/lib/pkgconfig/glib-2.0.pc You might have other glib installations, and provided your pkg-config finds those first, your glib library won't be found. I've found one suspicious thing that this is the case: you said you installed glib 2.13.1 and the configure script states that it has found 2.13.0 Try this: pkg-config --libs glib-2.0.pc what does it display for you, I guess it points to a directory different than /usr/local//lib -- Bazsi ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Mon, 2009-01-19 at 14:27 +0530, Chanchal Verma wrote:
Thanks Bazsi, with your valuable input I am successfully configure with --enable-static-linking option. While doing 'make' it is not able to find certain static libraries (*.a). From where I can get these libraries. I have pasted the error message faced during 'make':
**********************************************************
make .. .. rm -f libsyslog-ng.a ar cru libsyslog-ng.a misc.o utils.o messages.o syslog-names.o cfg.o cfg-lex.o cfg-grammar.o macros.o filter.o logmsg.o logpipe.o logsource.o driver.o sgroup.o dgroup.o center.o templates.o logreader.o logwriter.o affile.o afstreams.o afuser.o afprog.o afsocket.o afunix.o afinet.o afinter.o children.o stats.o gsockaddr.o fdwrite.o fdread.o memtrace.o dnscache.o apphook.o serialize.o logqueue.o afsql.o alarms.o globals.o ranlib libsyslog-ng.a if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/opt/soe/local/syslog-ng-2.1.3/eventlog/include/eventlog -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi gcc -g -O2 -Wall -o syslog-ng main.o libsyslog-ng.a -static -lpthread -lresolv -lnsl -lrt -lsocket -ldoor -ll -L/usr/local/lib -lglib-2.0 -lintl -liconv -L/opt/soe/local/syslog-ng-2.1.3/eventlog/lib -levtlog ld: fatal: library -lpthread: not found ld: fatal: library -lresolv: not found ld: fatal: library -lrt: not found ld: fatal: library -ldoor: not found ld: fatal: File processing errors. No output written to syslog-ng collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/syslog-prereq/syslog-ng-2.1.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/syslog-prereq/syslog-ng-2.1.3' make: *** [all] Error 2
I have checked on my solaris 8 box, these libraries (libpthread.a, librt.a, libresolv, libdoor.a) are not available. From where can I get required libraries? I have used gcc-3.4.6 compiler.
I tried to install gcc-4.2.3 on this Solaris box but not succeeded. :(
Well, why do you want to compile syslog-ng completely statically? IIRC Sun does not endorse (or support) completely statically linked binaries. Low level libraries like the libc should be linked statically. Syslog-ng has a mixed linking option (--enable-mixed-linking) in which case user-level libraries like glib are linked statically, whereas system libraries (like the ones missing in your compilation output) are linked dynamically. Isn't that enough for you? -- Bazsi
I want to deploy syslog-ng-2.1.3 messageing tool on various Solaris OS (8,9,10). As per my understanding if I build it on Solaris 8 with --enable-static-linking option successfully, I would be able to run same program on any Solaris installation that is same version or later than the system on which it was created. Otherwise I have to build same tools (syslog-ng-2.1.3) on number of Solaris machines and that will take time and effort. I am not sure by doing --enable-dynamic-linking/--enable-mixed-linking option, I will be able to achieve same result. Any help will be highly appreciated. With Regards, Chanchal Verma Balazs Scheidler <bazsi@balabit.hu> Sent by: syslog-ng-bounces@lists.balabit.hu 01/19/2009 03:28 PM Please respond to "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> To "Syslog-ng users' and developers' mailing list" <syslog-ng@lists.balabit.hu> cc Subject Re: [syslog-ng] syslog-ng-2.1.3: 'Configure' failed on Solaris 8 using --enable-static-linking On Mon, 2009-01-19 at 14:27 +0530, Chanchal Verma wrote:
Thanks Bazsi, with your valuable input I am successfully configure with --enable-static-linking option. While doing 'make' it is not able to find certain static libraries (*.a). From where I can get these libraries. I have pasted the error message faced during 'make':
**********************************************************
make .. .. rm -f libsyslog-ng.a ar cru libsyslog-ng.a misc.o utils.o messages.o syslog-names.o cfg.o cfg-lex.o cfg-grammar.o macros.o filter.o logmsg.o logpipe.o logsource.o driver.o sgroup.o dgroup.o center.o templates.o logreader.o logwriter.o affile.o afstreams.o afuser.o afprog.o afsocket.o afunix.o afinet.o afinter.o children.o stats.o gsockaddr.o fdwrite.o fdread.o memtrace.o dnscache.o apphook.o serialize.o logqueue.o afsql.o alarms.o globals.o ranlib libsyslog-ng.a if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/opt/soe/local/syslog-ng-2.1.3/eventlog/include/eventlog -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi gcc -g -O2 -Wall -o syslog-ng main.o libsyslog-ng.a -static -lpthread -lresolv -lnsl -lrt -lsocket -ldoor -ll -L/usr/local/lib -lglib-2.0 -lintl -liconv -L/opt/soe/local/syslog-ng-2.1.3/eventlog/lib -levtlog ld: fatal: library -lpthread: not found ld: fatal: library -lresolv: not found ld: fatal: library -lrt: not found ld: fatal: library -ldoor: not found ld: fatal: File processing errors. No output written to syslog-ng collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/syslog-prereq/syslog-ng-2.1.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/syslog-prereq/syslog-ng-2.1.3' make: *** [all] Error 2
I have checked on my solaris 8 box, these libraries (libpthread.a, librt.a, libresolv, libdoor.a) are not available. From where can I get required libraries? I have used gcc-3.4.6 compiler.
I tried to install gcc-4.2.3 on this Solaris box but not succeeded. :(
Well, why do you want to compile syslog-ng completely statically? IIRC Sun does not endorse (or support) completely statically linked binaries. Low level libraries like the libc should be linked statically. Syslog-ng has a mixed linking option (--enable-mixed-linking) in which case user-level libraries like glib are linked statically, whereas system libraries (like the ones missing in your compilation output) are linked dynamically. Isn't that enough for you? -- Bazsi ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Mon, 2009-01-19 at 15:43 +0530, Chanchal Verma wrote:
I want to deploy syslog-ng-2.1.3 messageing tool on various Solaris OS (8,9,10).
As per my understanding if I build it on Solaris 8 with --enable-static-linking option successfully, I would be able to run same program on any Solaris installation that is same version or later than the system on which it was created. Otherwise I have to build same tools (syslog-ng-2.1.3) on number of Solaris machines and that will take time and effort.
I am not sure by doing --enable-dynamic-linking/--enable-mixed-linking option, I will be able to achieve same result.
Any help will be highly appreciated.
As far as I know, later Solaris versions wouldn't necessarily work with statically linked libc. http://www.sun.com/software/solaris/programs/abi/appcert_faq.xml#q10 -- Bazsi
participants (4)
-
Balazs Scheidler
-
Chanchal Verma
-
Joost De Cock
-
Riza Kamalie