delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/04/25/15:15:26

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de>
To: <cygwin-apps AT cygwin DOT com>, <binutils AT sources DOT redhat DOT com>
Subject: RE: cygwin ld import library issue fix (removing unused "_nm_" symbols)
Date: Thu, 25 Apr 2002 21:14:56 +0200
Message-ID: <000201c1ec8d$7c7daf00$625d07d5@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
In-Reply-To: <20020425153936.GA11827@redhat.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

This is a multi-part message in MIME format.

------=_NextPart_000_0003_01C1EC9E.40067F00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

> On Thu, Apr 25, 2002 at 01:32:47PM +0200, Ralf Habacker wrote:
> >> Hi Danny,
> >>
> >> > Yes, this looks very nice, but does it works against current CVS?
> >> This patch is a minor change, which could be reviewed easy, but I have got
> >> trouble using the current cvs head (binutils 2-12.xx) release from
> >> sources.redhat.com.>
> >> It produces undefined symbols compiling dll/apps and that means
> cygwin support
> >> seems to be broken. Because I hadn't enough time to check this, ....
> >
> >I've taken a look on the cvs archive to verify this. Are I'm right using the
> >cygnus_cvs_20020108_pre tag ?
>
> Why are you using a tag at all?  Your patches should be against the binutils
> trunk.

I have updated the patch. But the problem still is as I've said. The current ld
cvs head release does not work !!
I have build a simple lib and an app (without my patches) and the result is an
undefined, either for functions or for auto-imported data.  Test case is
appended.
Can anybody tell me which cvs version is the last stable ? I have tried to
checkout binutils with date 2001/12/31, but got compiling errors.


$ make dll.dll client.exe
gawk -f dll.awk >dll.cc
g++     -c -o dll.o dll.cc
g++  --shared dll.o -o dll.dll -Wl,--out-implib,libdll.a
Creating library file: libdll.a
g++     -c -o client.o client.cc
g++ -o client.exe client.o -v -Wl,--enable-auto-import  -L. -ldll #-ldll2
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -Bdynamic --dll-search-pre
fix=cyg -o client.exe /usr/lib/crt0.o -
L. -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/usr/lib/gcc-lib/i686-pc-cygw
in/2.95.3-5 -L/usr/lib/gcc-lib/i686-pc-c
ygwin/2.95.3-5/../../../../i686-pc-cygwin/lib
client.o --enable-auto-import -ldll -lstdc++ -lgcc -lcygwin -luser32 -lker
nel32 -ladvapi32 -lshell32 -lgcc
client.o(.text+0x48):client.cc: undefined reference to `A::printfunc0000(void)'
client.o(.text+0x4d):client.cc: undefined reference to `A::printfunc0001(void)'
client.o(.text+0x52):client.cc: undefined reference to `A::printfunc0002(void)'
client.o(.text+0x57):client.cc: undefined reference to `A::printfunc0003(void)'
client.o(.text+0x5c):client.cc: undefined reference to `A::printfunc0004(void)'
client.o(.text+0x64):client.cc: undefined reference to `var0000'
client.o(.text+0x7a):client.cc: undefined reference to `var0001'
client.o(.text+0x90):client.cc: undefined reference to `var0002'
client.o(.text+0xa6):client.cc: undefined reference to `var0003'
client.o(.text+0xbc):client.cc: undefined reference to `var0004'
collect2: ld returned 1 exit status
make: *** [client.exe] Error 1

------=_NextPart_000_0003_01C1EC9E.40067F00
Content-Type: application/octet-stream;
	name="client.tar.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="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x97Um/L6cM2nRo8CRR+Jj
DWSEaRFqMakVR1yOt6kLyMSWo8tVPkwv0aNHP+884ZWEQkohsok3GRBI0VAbnjLpDdRLoiwiM+O4
V/KJLvEma8BWmUxKtRUFSI34slvFCLSqJoq3syb5CtbUhRlC5HmJ0XcTpHoMwS49RTGd7ClC2EON
pCuJJyU6kuVxhLyJYwcRQBw9ApEErA8G4JoQfqIwaIdMc7QHw8G1R2sMg22AgDs39iPggbR9KYUO
GQ+D+CbVp7T8CynrTYPKKQNEpATA158LCUv/RcyTbIZEwuCX8MwNDI+G/AqFgeA0CPtAaGNDho/M
M/ALzeI2rLo1Hsa391F3fdAWMH3iCLSyWDdy6Rf3ZWtSyW0fcHIHVHMQpe6Zw77tpb0OpI4iQy6g
WkBILiDzhoW04x8gllMSSwHoAw1oMyXf2mHuSTWQH35Ey8AjNtRzhAiFMQ4ZPme4PhTMI1K3cXAu
AjsBQIYYiwBDErg6S00hMzh0m43iOYLS0zm5IzCaAa2cyJCFaqkQOgse5vIyIWZNNeUUQ2gYxoaE
aA3mgqTS5FsUhKRkSAtaA2kka1QDPBnzmjp4rsnA0GYBiHcoCI6zAmI2GQyXYF6RUGDFxlxdJKYw
QQIgROQhSC0oZFmbA1oghAPKRYpFQ6BpjGMwxOUEVNW8FPBheHEIyJCgqCota3gQw+Rzh0oYzMIz
poTKAmXHxgQTBMWe8NZsEQQOBoVkCOMzFaKzQJCny33rdMokKwLxFMe+4h5cC2g/FJGxYGxMtAkE
wWeYf7XEZBGDEg4QBRSEbGIlAY8IRPar4EKnSazFa0Cz5LAkZS/ZjKZiHPYcElMFtkYHcE1m27yi
OYthBqGj5UIZzo6hFwT0gjRcbjTRCt+KL1JeacIeUQ4JjUwR/8XckU4UJC+8dtdA

------=_NextPart_000_0003_01C1EC9E.40067F00--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019