This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problems building setup from CVS.

> -----Original Message-----
> From: cygwin-owner On Behalf Of Brian Keener
> Sent: 28 September 2004 19:05

> Dave Korn wrote:
> > _AddAccessAllowedAce@16' 
> > 
> autoload.o(.data+0x12c):/usr/build/obj-apps/../apps/setup/auto
load.c:83: first d 
> > efined here 
> > /usr/lib/w32api/libadvapi32.a(dspes00357.o)(.text+0x0): 
> multiple definition of ` 
> > _OpenProcessToken@12' 
> > 
> autoload.o(.data+0x193):/usr/build/obj-apps/../apps/setup/auto
load.c:83: first d 
> > efined here 
> > /usr/lib/w32api/libadvapi32.a(dspes00479.o)(.text+0x0): 
> multiple definition of ` 
> > _SetTokenInformation@16' 

> Dave,
> Are you using w32api version 3.1.1 

  Yep, that is indeed the case:

dk@mace /artimi/firmware> cygcheck -vl w32api | head -1
Package: w32api-3.1-1

> because I found that once I fixed the 
> underquoting problem for aclocal and then tried to build 
> setup with 3.1.1 it still 
> failed with the above.  A rollback to w32api version 2.5.1 
> resolved the above and 
> allowed the build to complete.  
> Have not had a chance yet to see why the multiple definitions 
> occur with newer  version. 

  The answer has to be that the new version has more stubs in the export library
/usr/lib/w32api/libadvapi32.a than the old one, so things that previously needed
looking up at runtime (by the autoload mechanism) are now directly linkable.

  I don't see at once how to fix this in a way that will be compatible with both
versions.  But, deleting the lines from autoload.c as I mentioned earlier ought to
fix it for you: give it a go

[ repeated here, from ]

Index: autoload.c
RCS file: /cvs/cygwin-apps/setup/autoload.c,v
retrieving revision 2.5
diff -p -u -r2.5 autoload.c
--- autoload.c  30 Aug 2004 16:17:52 -0000      2.5
+++ autoload.c  28 Sep 2004 10:55:30 -0000
@@ -48,12 +48,6 @@ Auto (wininet, HttpSendRequestA, 20);

 DLL (advapi32);

-Auto (advapi32, AddAccessAllowedAce, 16);
-Auto (advapi32, AllocateAndInitializeSid, 44);
-Auto (advapi32, FreeSid, 4);
-Auto (advapi32, InitializeAcl, 12);
-Auto (advapi32, OpenProcessToken, 12);
-Auto (advapi32, SetTokenInformation, 16);
 Auto (advapi32, OpenSCManagerA, 16);
 Auto (advapi32, CloseServiceHandle, 4);
 Auto (advapi32, OpenServiceA, 16);

Can't think of a witty .sigline today....

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]