<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><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></body>
</html>