From: SourceForge.net <no...@so...> - 2003-03-19 08:13:16
|
Bugs item #683455, was opened at 2003-02-09 16:18 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=683455&group_id=2435 Category: ld Group: None Status: Open Resolution: None Priority: 5 Submitted By: Johnny Willemsen (jwillemsen) Assigned to: Danny Smith (dannysmith) Summary: Getting auto-import warnings even when explicit im/ex Initial Comment: I am working on the ACE/TAO port to MingW (see www.cs.wustl.edu/~schmidt). I have setup a daily build that builds ACE/TAO daily with MinGW. The results of the build are available at http://doc.ece.uci.edu/scoreboard/ We do explict import and export using __declspec import/export. But we still get a few auto-import warnings. This is a class with 2 static members but we only get a warning on one of them, the other gave warnings before we did explicit import/export but now not anymore. When we disable auto import we still get these warnings. I think we should be able to get rid of this warning, now we do explicit import/export. ---------------------------------------------------------------------- >Comment By: Johnny Willemsen (jwillemsen) Date: 2003-03-19 08:10 Message: Logged In: YES user_id=585332 We haven't been able to reproduce the problem yet in a small example. Can this be caused by the following which is done in the makefile structure of ACE? dlltool --export-all --output-def $(VSHDIR)$@.def --dllname @ \ $(VSHOBJS1) \ && mv $(VSHDIR)/$@.def $(VSHDIR)/$@.def.old \ && sed 's/;.*$$//g' < $(VSHDIR)/$@.def.old > $(VSHDIR)/@.def \ && $(SOLINK.cc) -Wl,--enable-auto-image-base -Wl,--out- implib,$@.a \ -shared -o $@ $(LDFLAGS) $(VSHDIR)/$@.def \ $(VSHOBJS1) $(ACE_SHLIBS) $(LIBS) The comments are stripped from the .def file. When we let the comment stay, we get a crash of ld. This is on the lines that have ... at the end of the line or are from a operator == From the .def file this are the things we have problems with _ZN14ACE_Time_Value4zeroE @ 1067 DATA ; ACE_Time_Value::zero _ZN14ACE_Time_Value8max_timeE @ 1068 DATA ; ACE_Time_Value::max_time Does anyone know something to do about this? ---------------------------------------------------------------------- Comment By: Johnny Willemsen (jwillemsen) Date: 2003-03-19 08:09 Message: Logged In: YES user_id=585332 We haven't been able to reproduce the problem yet in a small example. Can this be caused by the following which is done in the makefile structure of ACE? dlltool --export-all --output-def $(VSHDIR)$@.def --dllname @ \ $(VSHOBJS1) \ && mv $(VSHDIR)/$@.def $(VSHDIR)/$@.def.old \ && sed 's/;.*$$//g' < $(VSHDIR)/$@.def.old > $(VSHDIR)/@.def \ && $(SOLINK.cc) -Wl,--enable-auto-image-base -Wl,--out- implib,$@.a \ -shared -o $@ $(LDFLAGS) $(VSHDIR)/$@.def \ $(VSHOBJS1) $(ACE_SHLIBS) $(LIBS) The comments are stripped from the .def file. When we let the comment stay, we get a crash of ld. This is on the lines that have ... at the end of the line or are from a operator == From the .def file this are the things we have problems with _ZN14ACE_Time_Value4zeroE @ 1067 DATA ; ACE_Time_Value::zero _ZN14ACE_Time_Value8max_timeE @ 1068 DATA ; ACE_Time_Value::max_time Does anyone know something to do about this? ---------------------------------------------------------------------- Comment By: Johnny Willemsen (jwillemsen) Date: 2003-02-10 08:13 Message: Logged In: YES user_id=585332 The disabling of the warnings works, but I think it is not the correct way to go. I will try to create a small test application soon. ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2003-02-09 20:02 Message: Logged In: YES user_id=11494 If you add -Wl,--enable-auto-import that should get rid of warnings. Could you please send an example of a class that is causing the warning (for one member but not the other). even with explict __declspec(dllimport). Danny ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=683455&group_id=2435 |