<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV>
<DIV dir=ltr align=left><SPAN class=217385908-05062008><FONT face=Arial
color=#0000ff>Hi,</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial color=#0000ff>Could you
show your exact configure options and details about your build
environment?</FONT></SPAN></DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial color=#0000ff>BTW this
looks like a problem with your glib. I've checked a few glib versions
between</FONT></SPAN></DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial color=#0000ff>2.2.3
and 2.16.3 and was </FONT></SPAN><SPAN class=217385908-05062008><FONT
face=Arial color=#0000ff>unable to find any reference for clock_gettime in
gtimer. It</FONT></SPAN></DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial color=#0000ff>calls the
GETTIME() macro which is resolved to gettimeofday() in
gthread.</FONT></SPAN></DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial
color=#0000ff>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=217385908-05062008><FONT face=Arial
color=#0000ff>Sandor</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> syslog-ng-bounces@lists.balabit.hu
[mailto:syslog-ng-bounces@lists.balabit.hu] <B>On Behalf Of </B>Andrej
Lobovski<BR><B>Sent:</B> Thursday, June 05, 2008 2:50 AM<BR><B>To:</B>
syslog-ng@lists.balabit.hu<BR><B>Subject:</B> [syslog-ng] Linking syslog-ng
statically error<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV style="TEXT-ALIGN: left">Hello.<BR><BR>While dynamic linking works, for
some reason I need static version.<BR><BR>Well when I try it I get output like
this:<BR><BR>checking for a BSD-compatible install... /usr/bin/install
-c<BR>checking whether build environment is sane... yes<BR>checking for
gawk... no<BR>checking for mawk... mawk<BR>checking whether make sets
$(MAKE)... yes<BR>checking for gcc... gcc<BR>checking for C compiler default
output file name... a.out<BR>checking whether the C compiler works...
yes<BR>checking whether we are cross compiling... no<BR>checking for suffix of
executables... <BR>checking for suffix of object files... o<BR>checking
whether we are using the GNU C compiler... yes<BR>checking whether gcc accepts
-g... yes<BR>checking for gcc option to accept ISO C89... none
needed<BR>checking for style of include used by make... GNU<BR>checking
dependency style of gcc... gcc3<BR>checking for gcc option to accept ANSI C...
none needed<BR>checking for bison... bison -y<BR>checking for flex...
flex<BR>checking lex output file root... lex.yy<BR>checking lex library...
-lfl<BR>checking whether yytext is a pointer... yes<BR>checking whether make
sets $(MAKE)... (cached) yes<BR>checking for ranlib... ranlib<BR>checking how
to enable static linking for certain libraries... GNU or Solaris<BR>checking
how to run the C preprocessor... gcc -E<BR>checking for grep that handles long
lines and -e... /bin/grep<BR>checking for egrep... /bin/grep -E<BR>checking
for ANSI C header files... yes<BR>checking for sys/types.h... yes<BR>checking
for sys/stat.h... yes<BR>checking for stdlib.h... yes<BR>checking for
string.h... yes<BR>checking for memory.h... yes<BR>checking for strings.h...
yes<BR>checking for inttypes.h... yes<BR>checking for stdint.h...
yes<BR>checking for unistd.h... yes<BR>checking dmalloc.h usability...
no<BR>checking dmalloc.h presence... no<BR>checking for dmalloc.h...
no<BR>checking for strings.h... (cached) yes<BR>checking openssl/ssl.h
usability... no<BR>checking openssl/ssl.h presence... no<BR>checking for
openssl/ssl.h... no<BR>checking getopt.h usability... yes<BR>checking getopt.h
presence... yes<BR>checking for getopt.h... yes<BR>checking stropts.h
usability... yes<BR>checking stropts.h presence... yes<BR>checking for
stropts.h... yes<BR>checking sys/strlog.h usability... no<BR>checking
sys/strlog.h presence... no<BR>checking for sys/strlog.h... no<BR>checking
door.h usability... no<BR>checking door.h presence... no<BR>checking for
door.h... no<BR>checking tcpd.h usability... no<BR>checking tcpd.h presence...
no<BR>checking for tcpd.h... no<BR>checking whether struct tm is in sys/time.h
or time.h... time.h<BR>checking for struct tm.tm_gmtoff... yes<BR>checking for
I_CONSLOG... no<BR>checking for O_LARGEFILE... yes<BR>checking for struct
sockaddr_storage... yes<BR>checking for struct sockaddr_in6... yes<BR>checking
for door_create in -ldoor... no<BR>checking for socket in -lsocket...
no<BR>checking for nanosleep in -lrt... yes<BR>checking for gethostbyname in
-lnsl... yes<BR>checking for regexec in -lregex... no<BR>checking for res_init
in -lresolv... no<BR>checking for strdup... yes<BR>checking for strtol...
yes<BR>checking for strtoll... yes<BR>checking for strtoimax...
yes<BR>checking for inet_aton... yes<BR>checking for inet_ntoa...
yes<BR>checking for getopt_long... yes<BR>checking for getaddrinfo...
yes<BR>checking for getutent... yes<BR>checking for TCP wrapper library...
<BR>checking for LIBNET... yes<BR>checking whether to enable Sun STREAMS
support... no<BR>checking whether to enable Sun door support... no<BR>checking
whether to enable TCP wrapper support... no<BR>checking whether to enable
spoof source support... yes<BR>checking whether to enable IPv6 support...
yes<BR>checking for pkg-config... /usr/bin/pkg-config<BR>checking pkg-config
is at least version 0.9.0... yes<BR>checking for GLIB... yes<BR>checking for
EVTLOG... yes<BR>checking for static GLib libraries... yes<BR>checking sanity
checking Glib headers... yes<BR>configure: creating
./config.status<BR>config.status: creating dist.conf<BR>config.status:
creating Makefile<BR>config.status: creating
syslog-ng.spec.bb<BR>config.status: creating src/Makefile<BR>config.status:
creating doc/Makefile<BR>config.status: creating
doc/docvars.xml<BR>config.status: creating contrib/Makefile<BR>config.status:
creating tests/Makefile<BR>config.status: creating
solbuild/Makefile<BR>config.status: creating
tgzbuild/Makefile<BR>config.status: creating
tests/unit/Makefile<BR>config.status: creating
tests/functional/Makefile<BR>config.status: creating
tests/loggen/Makefile<BR>config.status: creating config.h<BR>config.status:
config.h is unchanged<BR>config.status: executing depfiles commands
<BR><BR>and the make command gives me<BR><BR>macros.c: In function
ÔÇśresult_appendÔÇÖ:<BR>macros.c:136: warning: pointer targets in passing
argument 2 of ÔÇśg_string_append_lenÔÇÖ differ in signedness<BR>macros.c: In
function ÔÇślog_macro_expandÔÇÖ:<BR>macros.c:148: warning: pointer targets in
passing argument 2 of ÔÇśresult_appendÔÇÖ differ in
signedness<BR>macros.c:212: warning: pointer targets in passing argument 2 of
ÔÇśresult_appendÔÇÖ differ in signedness<BR>macros.c:232: warning: pointer
targets in passing argument 2 of ÔÇśresult_appendÔÇÖ differ in
signedness<BR>macros.c:240: warning: pointer targets in passing argument 2 of
ÔÇśresult_appendÔÇÖ differ in signedness<BR>macros.c:258: warning: pointer
targets in passing argument 2 of ÔÇśresult_appendÔÇÖ differ in
signedness<BR>macros.c:403: warning: pointer targets in passing argument 2 of
ÔÇśresult_appendÔÇÖ differ in signedness<BR>macros.c:422: warning: pointer
targets in passing argument 2 of ÔÇśresult_appendÔÇÖ differ in
signedness<BR>macros.c:440: warning: pointer targets in passing argument 2 of
ÔÇśresult_appendÔÇÖ differ in signedness<BR>logmsg.c: In function
ÔÇślog_msg_parseÔÇÖ:<BR>logmsg.c:151: warning: pointer targets in assignment
differ in signedness<BR>logmsg.c:216: warning: pointer targets in passing
argument 2 of ÔÇśg_string_assign_lenÔÇÖ differ in signedness<BR>logmsg.c:224:
warning: pointer targets in assignment differ in signedness<BR>logmsg.c:242:
warning: pointer targets in passing argument 1 of ÔÇśstrlenÔÇÖ differ in
signedness<BR>logmsg.c:283: warning: pointer targets in passing argument 2 of
ÔÇśg_string_assign_lenÔÇÖ differ in signedness<BR>logmsg.c:309: warning:
pointer targets in passing argument 2 of ÔÇśg_string_assign_lenÔÇÖ differ in
signedness<BR>logmsg.c:335: warning: pointer targets in passing argument 2 of
ÔÇśg_string_assign_lenÔÇÖ differ in signedness<BR>logmsg.c:394: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:398: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:429: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:463: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:474: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:486: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:499: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:520: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:525: warning:
pointer targets in assignment differ in signedness<BR>logmsg.c:530: warning:
pointer targets in passing argument 2 of ÔÇśg_string_assign_lenÔÇÖ differ in
signedness<BR>main.o: In function
`setup_creds':<BR>/root/syslog-za-oddat/MYKGXX90/rpmbuild/SOURCES/syslog-ng-2.0.8/src/main.c:462:
warning: Using 'initgroups' in statically linked applications requires at
runtime the shared libraries from the glibc version used for
linking<BR>libsyslog-ng.a(misc.o): In function
`resolve_group':<BR>/root/syslog-za-oddat/MYKGXX90/rpmbuild/SOURCES/syslog-ng-2.0.8/src/misc.c:274:
warning: Using 'getgrnam' in statically linked applications requires at
runtime the shared libraries from the glibc version used for
linking<BR>libsyslog-ng.a(misc.o): In function
`resolve_user':<BR>/root/syslog-za-oddat/MYKGXX90/rpmbuild/SOURCES/syslog-ng-2.0.8/src/misc.c:254:
warning: Using 'getpwnam' in statically linked applications requires at
runtime the shared libraries from the glibc version used for
linking<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gutils.o):
In function `g_get_any_init_do':<BR>(.text+0x141e): warning: Using 'getpwuid'
in statically linked applications requires at runtime the shared libraries
from the glibc version used for
linking<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gutils.o):
In function `g_get_any_init_do':<BR>(.text+0x1411): warning: Using 'setpwent'
in statically linked applications requires at runtime the shared libraries
from the glibc version used for
linking<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gutils.o):
In function `g_get_any_init_do':<BR>(.text+0x1426): warning: Using 'endpwent'
in statically linked applications requires at runtime the shared libraries
from the glibc version used for
linking<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gutils.o):
In function `g_get_any_init_do':<BR>(.text+0x115a): warning: Using
'getpwnam_r' in statically linked applications requires at runtime the shared
libraries from the glibc version used for
linking<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gutils.o):
In function `g_get_any_init_do':<BR>(.text+0x1198): warning: Using
'getpwuid_r' in statically linked applications requires at runtime the shared
libraries from the glibc version used for linking<BR>libsyslog-ng.a(afinet.o):
In function
`afinet_resolve_name':<BR>/root/syslog-za-oddat/MYKGXX90/rpmbuild/SOURCES/syslog-ng-2.0.8/src/afinet.c:103:
warning: Using 'getaddrinfo' in statically linked applications requires at
runtime the shared libraries from the glibc version used for
linking<BR>libsyslog-ng.a(misc.o): In function
`resolve_hostname':<BR>/root/syslog-za-oddat/MYKGXX90/rpmbuild/SOURCES/syslog-ng-2.0.8/src/misc.c:165:
warning: Using 'gethostbyaddr' in statically linked applications requires at
runtime the shared libraries from the glibc version used for
linking<BR>libsyslog-ng.a(misc.o): In function
`getlonghostname':<BR>/root/syslog-za-oddat/MYKGXX90/rpmbuild/SOURCES/syslog-ng-2.0.8/src/misc.c:70:
warning: Using 'gethostbyname' in statically linked applications requires at
runtime the shared libraries from the glibc version used for
linking<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libnet.a(libnet_resolve.o):
In function `libnet_name2addr6':<BR>(.text+0x453): warning: Using
'gethostbyname2' in statically linked applications requires at runtime the
shared libraries from the glibc version used for
linking<BR>libsyslog-ng.a(afinet.o): In function
`afinet_set_port':<BR>/root/syslog-za-oddat/MYKGXX90/rpmbuild/SOURCES/syslog-ng-2.0.8/src/afinet.c:58:
warning: Using 'getservbyname' in statically linked applications requires at
runtime the shared libraries from the glibc version used for
linking<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gtimer.o):
In function `g_timer_elapsed':<BR>(.text+0x220): undefined reference to
`clock_gettime'<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gtimer.o):
In function `g_timer_continue':<BR>(.text+0x2a4): undefined reference to
`clock_gettime'<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gtimer.o):
In function `g_timer_reset':<BR>(.text+0x34a): undefined reference to
`clock_gettime'<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gtimer.o):
In function `g_timer_stop':<BR>(.text+0x391): undefined reference to
`clock_gettime'<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gtimer.o):
In function `g_timer_start':<BR>(.text+0x3de): undefined reference to
`clock_gettime'<BR>/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libglib-2.0.a(gtimer.o):(.text+0x49f):
more undefined references to `clock_gettime' follow<BR>collect2: ld returned 1
exit status<BR>make[2]: *** [syslog-ng] Error 1<BR>make[1]: ***
[all-recursive] Error 1<BR>make: *** [all] Error 2 <BR><BR>I googled for this
problem and found nothing. :(<BR><BR>Please help!<BR><BR></DIV><BR>
<HR>
Connect to the next generation of MSN Messenger <A
href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline"
target=_new>Get it now! </A></BLOCKQUOTE></DIV>
<DIV>
<HR>
</DIV>
<P CLASS="BulletedList" STYLE="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0in; mso-list: none; tab-stops: .5in"><SPAN STYLE="FONT-SIZE: 8pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT FACE="Arial" COLOR="gray" SIZE="1">NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.</FONT></SPAN></P>
<DIV>
</DIV></BODY></HTML>