X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <988146.7754.qm@web25504.mail.ukl.yahoo.com> Date: Thu, 17 Dec 2009 08:50:45 +0000 (GMT) From: Marco Atzeri Subject: Re: libtool: link: warning To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1019829098-1261039845=:7754" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 --0-1019829098-1261039845=:7754 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable --- Mer 16/12/09, Charles Wilson ha scritto: > Data: Mercoled=EC 16 dicembre 2009, 19:00 > On Wed, 16 Dec 2009 16:39 +0000, > "Marco Atzeri" wrote: > > I suspect the problem is here, on the fortran libs > path > > coming as default=20 > >=A0=20 > >=20 > > FLIBS=3D' -L/usr/lib/gcc/i686-pc-cygwin/4.3.4 > > -L/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../.. -lm > -lgfortranbegin > > -lgfortran -lcygwin -luser32 -lkernel32 -ladvapi32 > -lshell32' > >=20 > > there is the strange=20 > > /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../.. > >=20 > > instead of the usual=20 > > /usr/lib >=20 > This looks like a bug in libtool, as it parses the output > of 'gcc > -print-search-dirs' in order to determine the default lib > paths. Take a > look at the contents of libtool.m4, where > _LT_SYS_DYNAMIC_LINKER is > defined.=A0 Find the matching code in your configure > script, and try to > figure out what's going wrong there. I'll take a look once > I get to > rebuiding libtool for gcc-4.3.x, but I'm still in the > process of pushing > a few patches upstream first. >=20 > -- > Chuck >=20 not sure but I suspect=20 ----------------------------------------------------------- lt_search_path_spec=3D`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=3D" "; FS=3D"/|\n";} { lt_foo=3D""; lt_count=3D0; for (lt_i =3D NF; lt_i > 0; lt_i--) { if ($lt_i !=3D "" && $lt_i !=3D ".") { if ($lt_i =3D=3D "..") { lt_count++; } else { if (lt_count =3D=3D 0) { lt_foo=3D"/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo !=3D "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] =3D=3D 1) { print lt_foo; } }'` ------------------------------------------------ on =20=20 if (lt_foo !=3D "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] =3D=3D 1) { print lt_foo; } awk states sintax error due to double [ Shell test case attached. removing the extra [ I have $ ./prova.sh=20 /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../ /usr/lib Regards Marco =20=20=20=20=20=20 --0-1019829098-1261039845=:7754 Content-Type: text/plain; name="prova.sh.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="prova.sh.txt" IyEvYmluL2Jhc2gKCmx0X3RtcF9sdF9zZWFyY2hfcGF0aF9zcGVjPS91c3Iv bGliL2djYy9pNjg2LXBjLWN5Z3dpbi80LjMuNC8uLi8uLi8uLi8KZWNobyAi JGx0X3RtcF9sdF9zZWFyY2hfcGF0aF9zcGVjIgoKbHRfc2VhcmNoX3BhdGhf c3BlYz1gZWNobyAiJGx0X3RtcF9sdF9zZWFyY2hfcGF0aF9zcGVjIiB8IGF3 ayAnCkJFR0lOIHtSUz0iICI7IEZTPSIvfFxuIjt9IHsKICBsdF9mb289IiI7 CiAgbHRfY291bnQ9MDsKICBmb3IgKGx0X2kgPSBORjsgbHRfaSA+IDA7IGx0 X2ktLSkgewogICAgaWYgKCRsdF9pICE9ICIiICYmICRsdF9pICE9ICIuIikg ewogICAgICBpZiAoJGx0X2kgPT0gIi4uIikgewogICAgICAgIGx0X2NvdW50 Kys7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgaWYgKGx0X2NvdW50ID09IDAp IHsKICAgICAgICAgIGx0X2Zvbz0iLyIgJGx0X2kgbHRfZm9vOwogICAgICAg IH0gZWxzZSB7CiAgICAgICAgICBsdF9jb3VudC0tOwogICAgICAgIH0KICAg ICAgfQogICAgfQogIH0KIyAgaWYgKGx0X2ZvbyAhPSAiIikgeyBsdF9mcmVx W1tsdF9mb29dXSsrOyB9CiMgIGlmIChsdF9mcmVxW1tsdF9mb29dXSA9PSAx KSB7IHByaW50IGx0X2ZvbzsgfQogIGlmIChsdF9mb28gIT0gIiIpIHsgbHRf ZnJlcVtsdF9mb29dKys7IH0KICBpZiAobHRfZnJlcVtsdF9mb29dID09IDEp IHsgcHJpbnQgbHRfZm9vOyB9Cn0nYAoKCmVjaG8gIiRsdF9zZWFyY2hfcGF0 aF9zcGVjIgo= --0-1019829098-1261039845=:7754 Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --0-1019829098-1261039845=:7754--