rsync 3.0.8 failed to compile with strange linker error

Cesar Romani <[email protected]> Tue, 10 May 2011 11:19:18 -0500
Newsgroups gmane.comp.gnu.mingw.msys
Message-ID <[email protected]>
I'm trying to build rsync 3.0.8 on msys 1.0.17, gcc 3.4.4, and I'm
getting the following linker error:

--------------------
...
gcc -std=gnu99 -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt
-Wno-unused-parameter  -o rsync.exe flist.o rsync.o generator.o
receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o
syscall.o log.o backup.o options.o io.o compat.o hlink.o token.o
uidlist.o socket.o hashtable.o fileio.o batch.o clientname.o chmod.o
acls.o xattrs.o progress.o pipe.o params.o loadparm.o clientserver.o
access.o connection.o authenticate.o lib/wildmatch.o lib/compat.o
lib/snprintf.o lib/mdfour.o lib/md5.o lib/permstring.o lib/pool_alloc.o
lib/sysacls.o lib/sysxattrs.o  lib/inet_ntop.o lib/inet_pton.o
lib/getaddrinfo.o zlib/deflate.o zlib/inffast.o zlib/inflate.o
zlib/inftrees.o zlib/trees.o zlib/zutil.o zlib/adler32.o zlib/compress.o
zlib/crc32.o popt/findme.o  popt/popt.o  popt/poptconfig.o
popt/popthelp.o popt/poptparse.o
fu000001.o:(.idata$2+0xc): undefined reference to `_templib_a_iname'
nmth000000.o:(.idata$4+0x0): undefined reference to `__nm__h_errno'
collect2: ld returned 1 exit status
make: *** [rsync.exe] Error 1
--------------------

Many thanks in advance,

-- 
Cesar


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay