CryptUnprotectData undeclared - cannot compile

Andrew Neil Ramage nrsc16850 at
Mon May 30 11:38:59 CDT 2005

Works fine for me - I use the attached scripts.


You can be the captain
I will draw the chart
Sailing into destiny
Closer to the heart

Closer to the Heart by Rush (A Farewell to Kings, 1977)


Pavel Troller wrote:
>>have you done a cvs update -Pd ?
> Hello,
>   of course, it's in my .cvsrc . cvs doesn't show any M'ed nor C'ed files,
> the update is clean.
>   I also did a make clean in dlls, as suggested by Mike, but the problem is
> still there. 
>   Of course I know a standard procedure of ./configure ; make depend && make
> and I'm always following it.
>   Now I'm trying 'make distclean' before anything else... Yes, the problem
> is still there. Now I'm posting all the output from crypt32:
> make[2]: Entering directory `/usr/src/emul/wine/dlls/crypt32'
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_CRYPT32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o cert.o cert.c
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_COMCTL32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o commctrl.o commctrl.c
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_CRYPT32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o encode.o encode.c
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_CRYPT32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o protectdata.o protectdata.c
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_COMCTL32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o datetime.o datetime.c
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_CRYPT32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o main.o main.c
> ../../tools/winebuild/winebuild -D__WINESRC__  -D_CRYPT32_ -o crypt32.dll.dbg.c --debug -C. cert.c encode.c protectdata.c main.c
> make[3]: Entering directory `/usr/src/emul/wine/dlls/crypt32/tests'
> gcc -c -I. -I. -I../../../include -I../../../include    -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o protectdata.o protectdata.c
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_COMCTL32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o draglist.o draglist.c
> gcc -c -I. -I. -I../../../include -I../../../include    -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o testlist.o testlist.c
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_COMCTL32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o flatsb.o flatsb.c
> ../../../tools/winegcc/winegcc -B../../../tools/winebuild -mconsole protectdata.o testlist.o  -o -L../../../libs/port -lwine_port -L../../../dlls -L../../../dlls/crypt32 -L../../../libs -lcrypt32  -s -L/opt/ungif/lib
> gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_COMCTL32_ -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -I/opt/ungif/include -I/opt/ungif/include -O2 -march=i586 -mcpu=i586 -o header.o header.c
> protectdata.o(.text+0x3b5): In function `test_cryptunprotectdata':
> /usr/src/emul/wine/dlls/crypt32/tests/protectdata.c:114: undefined reference to `CryptUnprotectData'
> protectdata.o(.text+0x42f):/usr/src/emul/wine/dlls/crypt32/tests/protectdata.c:120: undefined reference to `CryptUnprotectData'
> protectdata.o(.text+0x4b9):/usr/src/emul/wine/dlls/crypt32/tests/protectdata.c:129: undefined reference to `CryptUnprotectData'
> protectdata.o(.text+0x54f):/usr/src/emul/wine/dlls/crypt32/tests/protectdata.c:140: undefined reference to `CryptUnprotectData'
> protectdata.o(.text+0x702):/usr/src/emul/wine/dlls/crypt32/tests/protectdata.c:160: undefined reference to `CryptUnprotectData'
> protectdata.o(.text+0x782):/usr/src/emul/wine/dlls/crypt32/tests/protectdata.c:167: more undefined references to `CryptUnprotectData' follow
> collect2: ld returned 1 exit status
>   So, still no luck.
>                   With regards, Pavel Troller
-------------- next part --------------
export CVSROOT=:pserver:cvs at
export TEMP=cvs
echo $TEMP | cvs login
cvs update
-------------- next part --------------
cd wine
make depend && make
su -c make install

More information about the wine-devel mailing list