Small problem building cygserver from source

Mark Geisert mark@maxrnd.com
Thu Jun 24 07:10:59 GMT 2021


Hi folks,
I'm seeing this build problem while building the whole Cygwin ball of wax 
for local testing...

Making all in cygserver
make[3]: Entering directory 
'/c/staging/newlib-cygwin/build/x86_64-pc-cygwin/winsup/cygserver'
   CXXLD    cygserver.exe
/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: 
/usr/lib/w32api/libadvapi32.a(daltbs00499.o):(.idata$5+0x0): multiple 
definition of `__imp_LsaStorePrivateData'; 
/oss/build/x86_64-pc-cygwin/winsup/cygwin/libcygwin.a(d000097.o):(.idata$5+0x0): 
first defined here
/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: 
/usr/lib/w32api/libadvapi32.a(daltbs00471.o):(.idata$5+0x0): multiple 
definition of `__imp_LsaOpenPolicy'; 
/oss/build/x86_64-pc-cygwin/winsup/cygwin/libcygwin.a(d000093.o):(.idata$5+0x0): 
first defined here
/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: 
/usr/lib/w32api/libadvapi32.a(daltbs00437.o):(.idata$5+0x0): multiple 
definition of `__imp_LsaClose'; 
/oss/build/x86_64-pc-cygwin/winsup/cygwin/libcygwin.a(d000084.o):(.idata$5+0x0): 
first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:534: cygserver.exe] Error 1

I was not able to determine why libadvapi32.a is apparently being pulled 
in here or what was doing that.
FYI,

..mark


More information about the Cygwin-developers mailing list