On Mon, Nov 22, 2010 at 03:56:19PM +0530, Rakesh Pillai wrote:
Yes you are correct, the actual error message here seems to be some lines below the one that I porvided earlier. Below is the error message that gets generated.
/usr/lib/gcc/s390x-redhat-linux/4.1.2/../../../../lib64/libwrap.a (hosts_access.o): In function `host_match': (.text+0xc62): undefined reference to `yp_get_default_domain' collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/tmp/TEST/WORK/syslog-ng-2.1.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/TEST/WORK/syslog-ng-2.1.3' make: *** [all] Error 2
Any suggestions to get around with the above error?
Google results from early the 2000's says it's a problem if the application doesn't link /usr/lib/libnsl.a. If you have that file (it's in glibc-devel, although RHEL 6 no longer has it), you can force it's linking by declaring -lnsl in LDFLAGS and re-run ./configure: LDFLAGS="-lnsl [<opts>]" ./configure <configure opts> Although if you don't need a fully static binaries, you should try passing -Wl,-Bstatic in LDFLAGS and don't add --enable-static-linking to ./configure. In this case, the linker tries to link statically only those libs which were declared as -l<libname> on the linker's command line(technically every other lib than glibc). -- Pal Tamas/Folti folti@balabit.hu