Bug 389817 - Undefined reference to gcrypt while trying to compile xmlsec1
Summary: Undefined reference to gcrypt while trying to compile xmlsec1
Status: RESOLVED FIXED
Alias: None
Product: Craft
Classification: Developer tools
Component: Blueprints (show other bugs)
Version: master
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords: testcase
Depends on:
Blocks:
 
Reported: 2018-02-03 08:20 UTC by NSLW
Modified: 2018-02-15 18:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
log from powershell (39.69 KB, text/plain)
2018-02-03 08:20 UTC, NSLW
Details
xmlsec1 (808 bytes, application/x-bzip)
2018-02-03 08:21 UTC, NSLW
Details
log from configuration (64.01 KB, text/x-log)
2018-02-03 08:22 UTC, NSLW
Details

Note You need to log in before you can comment on or make changes to this bug.
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.