Bug 389817

Summary: Undefined reference to gcrypt while trying to compile xmlsec1
Product: [Developer tools] Craft Reporter: NSLW <lukasz.wojnilowicz>
Component: BlueprintsAssignee: Hannah von Reth <vonreth>
Status: RESOLVED FIXED    
Severity: normal CC: kde-windows
Priority: NOR Keywords: testcase
Version: master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: log from powershell
xmlsec1
log from configuration

Description NSLW 2018-02-03 08:20:51 UTC
Created attachment 110314 [details]
log from powershell

Steps to reproduce:
1) unpack my xmlsec1.tar.bz2 to win32libs KDE blueprints,
2) run "craft xmlsec1" in powershell

Result:
Undefined references to many gcrypt functions.

Additional info:
mingw compiler on 64 bits
Comment 1 NSLW 2018-02-03 08:21:19 UTC
Created attachment 110315 [details]
xmlsec1
Comment 2 NSLW 2018-02-03 08:22:24 UTC
Created attachment 110316 [details]
log from configuration

I'm clueless in this case and please for assistance.
Comment 3 Hannah von Reth 2018-02-03 09:53:01 UTC
*** Warning: Trying to link with static lib archive /m//msys/usr/lib/libintl.dll.a.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not use here.


Are you sure win32libs/gettext is installed?
Comment 4 NSLW 2018-02-03 11:03:33 UTC
(In reply to Hannah von Reth from comment #3)
> *** Warning: Trying to link with static lib archive
> /m//msys/usr/lib/libintl.dll.a.
> *** I have the capability to make that library automatically link in when
> *** you link to this library.  But I can only do this if you have a
> *** shared version of the library, which you do not appear to have
> *** because the file extensions .a of this argument makes me believe
> *** that it is just a static archive that I should not use here.
> 
> 
> Are you sure win32libs/gettext is installed?

I've installed gettext before that. I even tried to update it to 0.19.8.1 but with no success. I believe it uses msys gettext.

Have you tried it yourself?
Comment 5 Hannah von Reth 2018-02-03 11:09:02 UTC
Yes it uses msys gettext.
I'll have a look, later
Comment 6 NSLW 2018-02-03 12:19:45 UTC
It must be something wrong with craft, because if I do:

1) cs xmlsec1
2) ./configure --enable-shared --disable-static --without-openssl --disable-crypto-dl
3) make

I get past undefined references step and compiler doesn't complain about libintl.dll.
self.subinfo.options.useShadowBuild = False
doesn't help.

After that I run into another set of undefined references, but they can be disabled by adding --disable-apps at configuration time.
Comment 7 Hannah von Reth 2018-02-05 10:17:59 UTC
It won't build until you committed your nettle patch :)
Comment 8 NSLW 2018-02-05 16:56:13 UTC
(In reply to Hannah von Reth from comment #7)
> It won't build until you committed your nettle patch :)

nettle patch committed :)

AFAIK the problem lies in configuration of xmlsec1.