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 From: "Dave Korn" To: Subject: RE: Problems building setup from CVS. Date: Tue, 28 Sep 2004 19:26:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: X-OriginalArrivalTime: 28 Sep 2004 18:26:08.0267 (UTC) FILETIME=[9F761DB0:01C4A588] > -----Original Message----- > From: cygwin-owner On Behalf Of Brian Keener > Sent: 28 September 2004 19:05 > Dave Korn wrote: > > _AddAccessAllowedAce AT 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 AT 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 AT 16' > Dave, > > Are you using w32api version 3.1.1 Yep, that is indeed the case: dk AT 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 http://www.cygwin.com/ml/cygwin/2004-09/msg01531.html ] ------------------------------------------------------------ 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); ------------------------------------------------------------ cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/