No subject


Mon Jun 16 21:29:23 CEST 2008


need  (some of them are glibc libraries, some not ).
So you must have thous libraries : libnsl.a (I saw linker error message 
that it can't find this library), librt.a, libfl.a, libevtlog.a, libnet.a, 
libwrap.a . Maybe you need to install glibc-devel package and/or others 
that contains such libraries.

-- 
Kostyantyn Gushtin 
Software engineer

Solutions for Your success
http://www.n-ix.com 

--=_alternative 004C95A165257539_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi Kostyantyn,</font>
<br>
<br><font size=2 face="sans-serif">I have checked that all required static
libraries (.a) are available at /usr/lib location. I also created linked
at /usr/local/lib for all requried libraries. It is giving same error messages.</font>
<br><font size=2 face="sans-serif">Following libraries are checked available
at /usr/lib:</font>
<br>
<br><font size=2 face="sans-serif">libnsl.a</font>
<br><font size=2 face="sans-serif">librt.a</font>
<br><font size=2 face="sans-serif">libfl.a</font>
<br><font size=2 face="sans-serif">libevtlog.a (Created linked from /opt/soe/local/syslog-ng-2.1.3/eventlog/lib/libevtlog.a)</font>
<br><font size=2 face="sans-serif">libnet.a</font>
<br><font size=2 face="sans-serif">libwrap.a</font>
<br>
<br><font size=2 face="sans-serif">Here below is error messages:</font>
<br>
<br><font size=2 face="sans-serif">-----------------------------------------------------------</font>
<br><font size=2 face="sans-serif"><b>Here below is error messge:</b></font>
<br>
<br><font size=2 face="sans-serif">Compilation option:</font>
<br><font size=2 color=#800080 face="sans-serif">[champ at ankit-lin syslog-ng-2.1.3]#
&nbsp;./configure --enable-static-linking &nbsp;--prefix=/opt/soe/local/syslog-ng-2.1.3</font>
<br>
<br><font size=2 color=#008000 face="sans-serif"><b>Make works fine uptill
(Pasted last few lines):</b></font>
<br><font size=2 color=#008000 face="sans-serif">..</font>
<br><font size=2 color=#008000 face="sans-serif">..</font>
<br><font size=2 color=#008000 face="sans-serif">if gcc -DHAVE_CONFIG_H
-I. -I. -I.. &nbsp; -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
&nbsp; -I/opt/soe/local/</font>
<br><font size=2 color=#008000 face="sans-serif">syslog-ng-2.1.3/eventlog/include/eventlog
&nbsp; -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
&nbsp;-D_GNU_SOUR</font>
<br><font size=2 color=#008000 face="sans-serif">CE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 &nbsp;-g -O2 -Wall -MT globals.o -MD -MP -MF &quot;.deps/globals.Tpo&quot;
\</font>
<br><font size=2 color=#008000 face="sans-serif">&nbsp; -c -o globals.o
`test -f 'globals.c' || echo './'`globals.c; \</font>
<br><font size=2 color=#008000 face="sans-serif">then mv -f &quot;.deps/globals.Tpo&quot;
&quot;.deps/globals.Po&quot;; \</font>
<br><font size=2 color=#008000 face="sans-serif">else rm -f &quot;.deps/globals.Tpo&quot;;
exit 1; \</font>
<br><font size=2 color=#008000 face="sans-serif">fi</font>
<br><font size=2 color=#008000 face="sans-serif">rm -f libsyslog-ng.a</font>
<br><font size=2 color=#008000 face="sans-serif">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 l</font>
<br><font size=2 color=#008000 face="sans-serif">ogpipe.o logsource.o driver.o
sgroup.o dgroup.o center.o templates.o logreader.o logwriter.o affile.o
afstreams.o afuser.</font>
<br><font size=2 color=#008000 face="sans-serif">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</font>
<br><font size=2 color=#008000 face="sans-serif">&nbsp;apphook.o serialize.o
logqueue.o afsql.o alarms.o globals.o</font>
<br><font size=2 color=#008000 face="sans-serif">ranlib libsyslog-ng.a</font>
<br><font size=2 color=#008000 face="sans-serif">if gcc -DHAVE_CONFIG_H
-I. -I. -I.. &nbsp; -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
&nbsp; -I/opt/soe/local/</font>
<br><font size=2 color=#008000 face="sans-serif">syslog-ng-2.1.3/eventlog/include/eventlog
&nbsp; -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
&nbsp;-D_GNU_SOUR</font>
<br><font size=2 color=#008000 face="sans-serif">CE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 &nbsp;-g -O2 -Wall -MT main.o -MD -MP -MF &quot;.deps/main.Tpo&quot;
\</font>
<br><font size=2 color=#008000 face="sans-serif">&nbsp; -c -o main.o `test
-f 'main.c' || echo './'`main.c; \</font>
<br><font size=2 color=#008000 face="sans-serif">then mv -f &quot;.deps/main.Tpo&quot;
&quot;.deps/main.Po&quot;; \</font>
<br><font size=2 color=#008000 face="sans-serif">else rm -f &quot;.deps/main.Tpo&quot;;
exit 1; \</font>
<br><font size=2 color=#008000 face="sans-serif">fi</font>
<br><font size=2 color=#008000 face="sans-serif">gcc &nbsp;-g -O2 -Wall
&nbsp; -o syslog-ng &nbsp;main.o libsyslog-ng.a -static -lnsl -lrt &nbsp;-lfl
-L/usr/local/lib -lglib-2.0 &nbsp; -L/opt/soe</font>
<br><font size=2 color=#008000 face="sans-serif">/local/syslog-ng-2.1.3/eventlog/lib
-levtlog &nbsp; -lnet -lwrap</font>
<br><font size=2 color=#008000 face="sans-serif">make[2]: Leaving directory
`/home/soetest1/syslog-ng-2.1.3/src'</font>
<br><font size=2 color=#008000 face="sans-serif">make[1]: Leaving directory
`/home/soetest1/syslog-ng-2.1.3'</font>
<br>
<br><font size=2 color=#800000 face="sans-serif"><b>Showing error message
on standard output device:</b></font>
<br>
<br><font size=2 color=#800000 face="sans-serif">main.o(.text+0x5ec): In
function `setup_creds':</font>
<br><font size=2 color=#800000 face="sans-serif">/home/soetest1/syslog-ng-2.1.3/src/main.c:324:
Using 'initgroups' in statically linked applications requires at runtime
t</font>
<br><font size=2 color=#800000 face="sans-serif">he shared libraries from
the glibc version used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">libsyslog-ng.a(misc.o)(.text+0x44d):
In function `resolve_group':</font>
<br><font size=2 color=#800000 face="sans-serif">/home/soetest1/syslog-ng-2.1.3/src/misc.c:283:
Using 'getgrnam' in statically linked applications requires at runtime
the</font>
<br><font size=2 color=#800000 face="sans-serif">&nbsp;shared libraries
from the glibc version used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libwrap.a(options.o)(.text+0x53c):
In function `group_option':</font>
<br><font size=2 color=#800000 face="sans-serif">: Using 'endgrent' in
statically linked applications requires at runtime the shared libraries
from the glibc version used</font>
<br><font size=2 color=#800000 face="sans-serif">&nbsp;for linking</font>
<br><font size=2 color=#800000 face="sans-serif">libsyslog-ng.a(misc.o)(.text+0x3ed):
In function `resolve_user':</font>
<br><font size=2 color=#800000 face="sans-serif">/home/soetest1/syslog-ng-2.1.3/src/misc.c:258:
Using 'getpwnam' in statically linked applications requires at runtime
the</font>
<br><font size=2 color=#800000 face="sans-serif">&nbsp;shared libraries
from the glibc version used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">/usr/local/lib/libglib-2.0.a(gutils.o)(.text+0xbd8):
In function `g_get_any_init_do':</font>
<br><font size=2 color=#800000 face="sans-serif">/home/soetest1/glib-2.16.0/glib/gutils.c:1646:
Using 'getpwuid' in statically linked applications requires at runtime
the</font>
<br><font size=2 color=#800000 face="sans-serif">&nbsp;shared libraries
from the glibc version used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">/usr/local/lib/libglib-2.0.a(gutils.o)(.text+0xbc8):/home/soetest1/glib-2.16.0/glib/gutils.c:1645:
Using 'setpwent' in st</font>
<br><font size=2 color=#800000 face="sans-serif">atically linked applications
requires at runtime the shared libraries from the glibc version used for
linking</font>
<br><font size=2 color=#800000 face="sans-serif">/usr/local/lib/libglib-2.0.a(gutils.o)(.text+0xbe3):/home/soetest1/glib-2.16.0/glib/gutils.c:1647:
Using 'endpwent' in st</font>
<br><font size=2 color=#800000 face="sans-serif">atically linked applications
requires at runtime the shared libraries from the glibc version used for
linking</font>
<br><font size=2 color=#800000 face="sans-serif">/usr/local/lib/libglib-2.0.a(gutils.o)(.text+0x9d1):/home/soetest1/glib-2.16.0/glib/gutils.c:1589:
Using 'getpwnam_r' in</font>
<br><font size=2 color=#800000 face="sans-serif">statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking</font>
<br><font size=2 color=#800000 face="sans-serif">/usr/local/lib/libglib-2.0.a(gutils.o)(.text+0xa10):/home/soetest1/glib-2.16.0/glib/gutils.c:1595:
Using 'getpwuid_r' in</font>
<br><font size=2 color=#800000 face="sans-serif">statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking</font>
<br><font size=2 color=#800000 face="sans-serif">libsyslog-ng.a(afinet.o)(.text+0x163):
In function `afinet_resolve_name':</font>
<br><font size=2 color=#800000 face="sans-serif">/home/soetest1/syslog-ng-2.1.3/src/afinet.c:103:
Using 'getaddrinfo' in statically linked applications requires at runtim</font>
<br><font size=2 color=#800000 face="sans-serif">e the shared libraries
from the glibc version used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">libsyslog-ng.a(misc.o)(.text+0x1d1):
In function `resolve_hostname':</font>
<br><font size=2 color=#800000 face="sans-serif">/home/soetest1/syslog-ng-2.1.3/src/misc.c:166:
Using 'gethostbyaddr' in statically linked applications requires at runtim</font>
<br><font size=2 color=#800000 face="sans-serif">e the shared libraries
from the glibc version used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">libsyslog-ng.a(misc.o)(.text+0xbd):
In function `getlonghostname':</font>
<br><font size=2 color=#800000 face="sans-serif">/home/soetest1/syslog-ng-2.1.3/src/misc.c:71:
Using 'gethostbyname' in statically linked applications requires at runtime</font>
<br><font size=2 color=#800000 face="sans-serif">&nbsp;the shared libraries
from the glibc version used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libnet.a(libnet_resolve.o)(.text+0x4dc):
In function `libnet_name2addr6</font>
<br><font size=2 color=#800000 face="sans-serif">':</font>
<br><font size=2 color=#800000 face="sans-serif">: Using 'gethostbyname2'
in statically linked applications requires at runtime the shared libraries
from the glibc versio</font>
<br><font size=2 color=#800000 face="sans-serif">n used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">libsyslog-ng.a(afinet.o)(.text+0xb2):
In function `afinet_set_port':</font>
<br><font size=2 color=#800000 face="sans-serif">/home/soetest1/syslog-ng-2.1.3/src/afinet.c:58:
Using 'getservbyname' in statically linked applications requires at runti</font>
<br><font size=2 color=#800000 face="sans-serif">me the shared libraries
from the glibc version used for linking</font>
<br><font size=2 color=#800000 face="sans-serif">/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libwrap.a(hosts_access.o)(.text+0x862):
In function `host_match':</font>
<br><font size=2 color=#800000 face="sans-serif">: undefined reference
to `yp_get_default_domain'</font>
<br><font size=2 color=#800000 face="sans-serif">collect2: ld returned
1 exit status</font>
<br><font size=2 color=#800000 face="sans-serif">make[2]: *** [syslog-ng]
Error 1</font>
<br><font size=2 color=#800000 face="sans-serif">make[1]: *** [all-recursive]
Error 1</font>
<br><font size=2 color=#800000 face="sans-serif">make: *** [all] Error
2</font>
<br><font size=2 face="sans-serif">----------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">With Regards,<br>
Chanchal Verma<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Kostyantyn Gushtin &lt;kgushtin at n-ix.com.ua&gt;</b>
</font>
<p><font size=1 face="sans-serif">01/09/2009 06:08 PM</font>
<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">Chanchal Verma/GIS/CSC at CSC</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] Error encountered while
building syslog-ng-2.1.3 on &nbsp; &nbsp; &nbsp; &nbsp;RHEL3</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Chanchal Verma wrote: </font>
<br><font size=2 face="sans-serif"><br>
Hi Kostyantyn,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Yes my compilation with --enable-dynamic-linking option works fine. I am
facing problem while doing static compilation. I have followed the given
steps but still getting error while doing 'make'.</font><font size=3> </font><font size=2 face="sans-serif"><br>
I am not sure how to use 'glib' option for compilation, I have libglib-2.0.a
in '/usr/lib'.</font><font size=3> </font>
<br><font size=3>Now you really have problems with glibc :) . glib is just
abstraction (on unix systems it use glibc). </font>
<br><font size=2 color=#008000 face="sans-serif">gcc &nbsp;-g -O2 -Wall
&nbsp; -o syslog-ng &nbsp;main.o libsyslog-ng.a -static -lnsl -lrt &nbsp;-lfl
-L/usr/local/lib -lglib-2.0 &nbsp; -L/opt/soe</font><font size=3> </font><font size=2 color=#008000 face="sans-serif"><br>
/local/syslog-ng-2.1.3/eventlog/lib -levtlog &nbsp; -lnet -lwrap</font><font size=3>
</font><font size=2 color=#008000 face="sans-serif"><br>
make[2]: Leaving directory `/home/soetest1/syslog-ng-2.1.3/src'</font><font size=3>
</font><font size=2 color=#008000 face="sans-serif"><br>
make[1]: Leaving directory `/home/soetest1/syslog-ng-2.1.3'</font><font size=3>
<br>
</font>
<br><font size=3>From this command line you can retrieve info which static
libraries you need &nbsp;(some of them are glibc libraries, some not ).<br>
So you must have thous libraries : libnsl.a (I saw linker error message
that it can't find this library), librt.a, libfl.a, libevtlog.a, libnet.a,
libwrap.a . Maybe you need to install glibc-devel package and/or others
that contains such libraries.<br>
</font>
<br><font size=3>-- </font><font size=3><tt><br>
Kostyantyn Gushtin <br>
Software engineer</tt></font><font size=3><br>
</font><img src=cid:_1_063125F406312310004C95A165257539 alt="N-iX LLC"><font size=3><tt><br>
Solutions for Your success</tt></font><font size=3 color=blue><tt><u><br>
</u></tt></font><a href="http://www.n-ix.com/"><font size=3 color=blue><tt><u>http://www.n-ix.com</u></tt></font></a><font size=3>
</font>
<br>
--=_alternative 004C95A165257539_=--
--=_related 004C95A165257539_=
Content-Type: image/gif
Content-ID: <_1_063125F406312310004C95A165257539>
Content-Transfer-Encoding: base64

R0lGODlhTQAfAKUgAGVlZW5ubnh4eIGBgYuLi5WVlZ6env+LGf+SJ6ioqP+ZNbKysv+gRP+oUru7
u/+vYP+2b8XFxf+9fc7Ozv/FjP/MmtjY2P/TqP/at+Li4v/ixevr6//p0//w4vX19f/38P//////
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////yH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lN
UAAsAAAAAE0AHwAABv5AkHBILBqPyKRyyWw6n9CodGq0LBwearNx6B4eSa53agGYCcKEec0GJIiR
QdscKYq9GuT9MF2w4QJtBVlGGQFmAnVGewcKel58Un5rRR5ya4pHgQOEi5BdFEd7Ux6BAAtGlmsC
nUR+nGGfXR2eY1QWG0gbh2ZvRWUBGUqMXQ21XVpLE2wWRB6HE0vEXRh2kMlLBaudcr7Dsl0KH0Sj
VBkLzUjPa74RAGhM010S5NdSEQRmqEnLa+mDWyAx4jCk3BMHvPRl2wZlTwcEAgvae2LBypp9Sdb1
aniNwqcLQgxGucikn5l0AW0pgIRgnEgoJJnkQ9Tqmy0NnyCAePkkpsSSMmy8SZsI4ZMGnk586jpk
gFlKZEI+QPTC4OXMOQCKKE0lB5U2mvEmgqgAztaQq3O0KkzSFJ5GN2HNhiwb6SxWM2pPJXHHaohJ
ACgfyQXBgS6VrUMyAAhW5CuAvrEGg5BQ9vDaSoEyDXkr9FjdIR9WyrKs10g+A0j+RhMMtQgGcKQx
Dmk6QMnVALlEia33Kbazr6tTs4HlGcnD3pJW5dqwIGGB3KkcI4pQE6kQj7uZTLo7Bx4RtHMCYxtP
vrz58+jTRwkCADs=
--=_related 004C95A165257539_=--


More information about the syslog-ng mailing list