Hello All,

[if this is the wrong list please advise - I'm a new subscriber]

I hope someone has been across this error whilst compiling from source on 
linux machine.

/root/clamav-0.92rc2/clamd/server-th.c:558: undefined reference to
`__xpg_strerror_r'
collect2: ld returned 1 exit status
make[2]: *** [clamd] Error 1
make[2]: Leaving directory `/root/clamav-0.92rc2/clamd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/clamav-0.92rc2'
make: *** [all] Error 2


Am receiving same error at end of 'make' when compiling from source 0.92rc2 
or 0.91.2 so points to an issue on my server but my linux skills are not 
good enough to fix it :-(

Box is Debian 3.1 and has been running an older 0.90.x clamav release that 
was compiled from source on this box without a problem a long time ago.

Googling on the error gives me only 6 hits and none directly relate to 
clamav. Nothing stood out as helpful in the clamav-user mail archive either.

This box is in production. I just updated its 'twin' to 0.92rc2 without 
issues.

Can anyone help me towards a solution?

regards

Petar

[EMAIL PROTECTED]:~/clamav-0.92rc2] ./configure --prefix=/usr --sysconfdir=/etc
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
creating target.h - canonical system defines
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking for a supported version of gcc... ok (3.3.5)
checking for gcc bug PR27603... ok, bug not present
checking for gcc bug PR28045... ok, bug not present
checking for gcc bug PR26763-2... ok, bug not present
checking for valid code generation of CLI_ISCONTAINED... ok, bug not present
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking for dlfcn.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking for memory.h... (cached) yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for off_t... yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking for bind in -lsocket... no
checking for gethostent in -lnsl... yes
checking for libiconv_open in -liconv... no
checking for poll... yes
checking for setsid... yes
checking for memcpy... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strerror_r... yes
checking for strlcpy... no
checking for strlcat... no
checking for inet_ntop... yes
checking for setgroups... yes
checking for initgroups... yes
checking for ctime_r... yes
checking for mkstemp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether snprintf correctly terminates long strings... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for zlib installation... /usr
checking for inflateEnd in -lz... yes
checking for bzReadOpen in -lbz2... no
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for __dn_expand in -lresolv... yes
checking for resolv.h... yes
checking whether setpgrp takes no argument... yes
checking for __gmpz_init in -lgmp... yes
checking for recvmsg... yes
checking for sendmsg... yes
checking for msg_accrights field in struct msghdr... no
checking for msg_control field in struct msghdr... yes
checking for gethostbyname_r... yes, and it takes 6 arguments
checking for readdir_r... support disabled
checking for ctime_r... yes, and it takes 2 arguments
checking for socklen_t... yes
checking for clamav in /etc/passwd... yes, user clamav and group clamav
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for structure packing via __attribute__((packed))... yes
checking for type aligning via __attribute__((aligned))... yes
checking for fd_set... yes, found in sys/types.h
checking default FD_SETSIZE value... 1024
checking if signed right shift is sign extended... yes
configure: creating ./config.status
config.status: creating libclamav/Makefile
config.status: creating clamscan/Makefile
config.status: creating database/Makefile
config.status: creating docs/Makefile
config.status: creating clamd/Makefile
config.status: creating clamdscan/Makefile
config.status: creating clamav-milter/Makefile
config.status: creating freshclam/Makefile
config.status: creating sigtool/Makefile
config.status: creating clamconf/Makefile
config.status: creating etc/Makefile
config.status: creating Makefile
config.status: creating clamav-config
config.status: creating libclamav.pc
config.status: creating docs/man/clamav-milter.8
config.status: creating docs/man/clamconf.1
config.status: creating docs/man/clamd.8
config.status: creating docs/man/clamd.conf.5
config.status: creating docs/man/clamdscan.1
config.status: creating docs/man/clamscan.1
config.status: creating docs/man/freshclam.1
config.status: creating docs/man/freshclam.conf.5
config.status: creating docs/man/sigtool.1
config.status: creating clamav-config.h
config.status: clamav-config.h is unchanged
config.status: executing depfiles commands
[EMAIL PROTECTED]:~/clamav-0.92rc2]


Tail end of the 'make' command is listed below
-----------------------------------------------
anner.o scanner.c; \
then mv -f ".deps/scanner.Tpo" ".deps/scanner.Po"; else rm -f
".deps/scanner.Tpo"; exit 1; fi
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../shared -I../libclamav    -g -O2 -MT
others.o -MD -MP -MF ".deps/others.Tpo" -c -o others.o others.c; \
then mv -f ".deps/others.Tpo" ".deps/others.Po"; else rm -f
".deps/others.Tpo"; exit 1; fi
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../shared -I../libclamav    -g -O2 -MT
clamuko.o -MD -MP -MF ".deps/clamuko.Tpo" -c -o clamuko.o clamuko.c; \
then mv -f ".deps/clamuko.Tpo" ".deps/clamuko.Po"; else rm -f
".deps/clamuko.Tpo"; exit 1; fi
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../shared -I../libclamav    -g -O2 -MT
dazukoio_compat12.o -MD -MP -MF ".deps/dazukoio_compat12.Tpo" -c -o
dazukoio_compat12.o dazukoio_compat12.c; \
then mv -f ".deps/dazukoio_compat12.Tpo" ".deps/dazukoio_compat12.Po"; else
rm -f ".deps/dazukoio_compat12.Tpo"; exit 1; fi
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../shared -I../libclamav    -g -O2 -MT
dazukoio.o -MD -MP -MF ".deps/dazukoio.Tpo" -c -o dazukoio.o dazukoio.c; \
then mv -f ".deps/dazukoio.Tpo" ".deps/dazukoio.Po"; else rm -f
".deps/dazukoio.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o clamd  output.o
cfgparser.o getopt.o misc.o network.o options.o clamd.o tcpserver.o
localserver.o session.o thrmgr.o server-th.o scanner.o others.o clamuko.o
dazukoio_compat12.o dazukoio.o  ../libclamav/libclamav.la  -lnsl -lpthread
mkdir .libs
gcc -g -O2 -o .libs/clamd output.o cfgparser.o getopt.o misc.o network.o
options.o clamd.o tcpserver.o localserver.o session.o thrmgr.o server-th.o
scanner.o others.o clamuko.o dazukoio_compat12.o dazukoio.o
../libclamav/.libs/libclamav.so -lnsl -lpthread
server-th.o: In function `acceptloop_th':
/root/clamav-0.92rc2/clamd/server-th.c:558: undefined reference to
`__xpg_strerror_r'
collect2: ld returned 1 exit status
make[2]: *** [clamd] Error 1
make[2]: Leaving directory `/root/clamav-0.92rc2/clamd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/clamav-0.92rc2'
make: *** [all] Error 2

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to