<br><font size=2 face="sans-serif">I want to deploy syslog-ng-2.1.3 messageing
tool on various Solaris OS (8,9,10). </font>
<br>
<br><font size=2 face="sans-serif">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.</font>
<br>
<br><font size=2 face="sans-serif">I am not sure by doing --enable-dynamic-linking/--enable-mixed-linking
option, I will be able to achieve same result.</font>
<br>
<br><font size=2 face="sans-serif">Any help will be highly appreciated.</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">With Regards,<br>
Chanchal Verma</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Balazs Scheidler <bazsi@balabit.hu></b>
</font>
<br><font size=1 face="sans-serif">Sent by: syslog-ng-bounces@lists.balabit.hu</font>
<p><font size=1 face="sans-serif">01/19/2009 03:28 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
"Syslog-ng users' and developers' mailing list"
<syslog-ng@lists.balabit.hu></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">"Syslog-ng users' and developers'
mailing list" <syslog-ng@lists.balabit.hu></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [syslog-ng] syslog-ng-2.1.3: 'Configure'
failed on Solaris 8 using --enable-static-linking</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>On Mon, 2009-01-19 at 14:27 +0530, Chanchal Verma
wrote:<br>
> <br>
> Thanks Bazsi, with your valuable input I am successfully configure<br>
> with --enable-static-linking option. While doing 'make' it is not
able<br>
> to find certain static libraries (*.a). <br>
> From where I can get these libraries. I have pasted the error message<br>
> faced during 'make': <br>
> <br>
> ********************************************************** <br>
> >make <br>
> .. <br>
> .. <br>
> rm -f libsyslog-ng.a <br>
> ar cru libsyslog-ng.a misc.o utils.o messages.o syslog-names.o cfg.o<br>
> cfg-lex.o cfg-grammar.o macros.o filter.o logmsg.o logpipe.o<br>
> logsource.o driver.o sgroup.o dgroup.o center.o templates.o<br>
> logreader.o logwriter.o affile.o afstreams.o afuser.o afprog.o<br>
> afsocket.o afunix.o afinet.o afinter.o children.o stats.o gsockaddr.o<br>
> fdwrite.o fdread.o memtrace.o dnscache.o apphook.o serialize.o<br>
> logqueue.o afsql.o alarms.o globals.o <br>
> ranlib libsyslog-ng.a <br>
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0<br>
> -I/usr/local/lib/glib-2.0/include<br>
> -I/opt/soe/local/syslog-ng-2.1.3/eventlog/include/eventlog<br>
> -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g
-O2 -Wall<br>
> -MT main.o -MD -MP -MF ".deps/main.Tpo" \ <br>
> -c -o main.o `test -f 'main.c'
|| echo './'`main.c; \ <br>
> then mv -f ".deps/main.Tpo"
".deps/main.Po"; \ <br>
> else rm -f ".deps/main.Tpo";
exit 1; \ <br>
> fi <br>
> gcc -g -O2 -Wall -o syslog-ng main.o libsyslog-ng.a
-static<br>
> -lpthread -lresolv -lnsl -lrt -lsocket -ldoor -ll -L/usr/local/lib<br>
> -lglib-2.0 -lintl -liconv<br>
> -L/opt/soe/local/syslog-ng-2.1.3/eventlog/lib -levtlog <br>
> ld: fatal: library -lpthread: not found <br>
> ld: fatal: library -lresolv: not found <br>
> ld: fatal: library -lrt: not found <br>
> ld: fatal: library -ldoor: not found <br>
> ld: fatal: File processing errors. No output written to syslog-ng
<br>
> collect2: ld returned 1 exit status <br>
> make[2]: *** [syslog-ng] Error 1 <br>
> make[2]: Leaving directory `/syslog-prereq/syslog-ng-2.1.3/src' <br>
> make[1]: *** [all-recursive] Error 1 <br>
> make[1]: Leaving directory `/syslog-prereq/syslog-ng-2.1.3' <br>
> make: *** [all] Error 2 <br>
> ********************************************************* <br>
> <br>
> I have checked on my solaris 8 box, these libraries (libpthread.a,<br>
> librt.a, libresolv, libdoor.a) are not available. From where can I
get<br>
> required libraries? I have used gcc-3.4.6 compiler. <br>
> <br>
> I tried to install gcc-4.2.3 on this Solaris box but not<br>
> succeeded. :( <br>
<br>
Well, why do you want to compile syslog-ng completely statically? IIRC<br>
Sun does not endorse (or support) completely statically linked binaries.<br>
Low level libraries like the libc should be linked statically.<br>
<br>
Syslog-ng has a mixed linking option (--enable-mixed-linking) in which<br>
case user-level libraries like glib are linked statically, whereas<br>
system libraries (like the ones missing in your compilation output) are<br>
linked dynamically.<br>
<br>
Isn't that enough for you?<br>
<br>
-- <br>
Bazsi<br>
<br>
______________________________________________________________________________<br>
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<br>
FAQ: http://www.campin.net/syslog-ng/faq.html<br>
<br>
</tt></font>
<br>