Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <009501c2f89b$cd90bf70$465f893e@pomello> From: "Max Bowsher" To: "gmane" , References: Subject: Re: ld cannot find -lrt Date: Tue, 1 Apr 2003 23:12:32 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0090_01C2F8A4.2C5491A0" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 ------=_NextPart_000_0090_01C2F8A4.2C5491A0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit gmane wrote: > /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: > cannot find -lrt > collect2: ld returned 1 exit status > make: *** [dump.exe] Error 1 > > > Trying to compile rpm4.0.4 sources and get this error in ./tools . > What does this indicate? It indicates that rpm does not compile OOTB (out of the box) on Cygwin. A fixup script is attached, but be warned, I haven't tested it since I last modified it - I'm running the 0.1.8x prerelease of 4.1.1 right now. Max. ------=_NextPart_000_0090_01C2F8A4.2C5491A0 Content-Type: application/octet-stream; name="fixup-rpm-4.0.4.sh" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="fixup-rpm-4.0.4.sh" #!/bin/bash=0A= =0A= set -e=0A= =0A= PKG=3Drpm=0A= VER=3D4.0.4=0A= TARBALL=3D"/m/max/sources/$PKG-$VER.tar.bz2"=0A= =0A= if [ ! -f rpm.c ]; then=0A= if [ ! -d "$PKG-$VER" ]; then=0A= echo Unpacking "$PKG-$VER"...=0A= tar --exclude=3D'*/db/docs' --exclude=3D'*::*' -jxvf "$TARBALL"=0A= fi=0A= cd "$PKG-$VER"=0A= fi=0A= =0A= [ "$STOP" =3D "unpack" ] && exit=0A= =0A= function perlify {=0A= f=3D$1; shift=0A= if test ! -f $f.porig; then=0A= cp $f $f.porig=0A= fi=0A= echo -n -e "\t$f"=0A= perl -i.tmp "$*" $f=0A= if cmp -s $f $f.tmp; then=0A= echo -e "\tNO CHANGE!"=0A= else=0A= echo ""=0A= fi=0A= rm -f $f.tmp=0A= }=0A= =0A= echo Disabling RPC and fixing a shellscript bug=0A= perlify db3/configure -p -e 's/--enable-rpc/--disable-rpc/;' \=0A= -e 's/echo \$\* /echo \" \$\*\" /;'=0A= =0A= echo Removing -lrt=0A= for file in Makefile.in rpmio/Makefile.in; do=0A= perlify $file -pe 's/^(LIBS\s*=3D\s*(?:\S+\s+)*)-lrt(\s+.*)/$1$2/;'=0A= done=0A= =0A= echo Fixing use of DESTDIR=0A= for file in {build,lib,rpmio,rpmdb}/Makefile.in; do=0A= perlify $file -pe 's/(\$\(DESTDIR\))\/(\$)/$1$2/;'=0A= done=0A= =0A= echo '*** Make sure to configure --without-python ***'=0A= ------=_NextPart_000_0090_01C2F8A4.2C5491A0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0090_01C2F8A4.2C5491A0--