After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 631258 - Too many escape characters in pkg-config files
Too many escape characters in pkg-config files
Status: RESOLVED FIXED
Product: xmlsec
Classification: Other
Component: general
CVS (HEAD)
Other Linux
: Normal normal
: ---
Assigned To: Aleksey Sanin
Aleksey Sanin
Depends on:
Blocks:
 
 
Reported: 2010-10-03 20:38 UTC by Jan Palus
Modified: 2010-11-10 02:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jan Palus 2010-10-03 20:38:20 UTC
I use xmlsec1 in library configured with autotools but compilation fails with error message:

<command-line>:0:16: error: missing terminating " character

this usually is a warning but I have -Werror and it would fail anyway in different place as we can see for generic test

% cat test.c
#include <stdio.h>
int main()
{
	printf("%s\n",XMLSEC_CRYPTO);
}

% gcc `pkg-config --cflags xmlsec1-openssl` test.c
<command-line>:0:18: warning: missing terminating " character
test.c: In function ‘main’:
test.c:4:2: error: stray ‘\’ in program
test.c:4:2: error: stray ‘\’ in program
test.c:4:2: error: stray ‘\’ in program
test.c:4:2: error: missing terminating " character
test.c:4:29: error: expected expression before ‘)’ token

The cause is -DXMLSEC_CRYPTO=\\\"openssl\\\" in xmlsec1-openssl.pc.in (and other xmlsec1-*.pc.in files) which should be DXMLSEC_CRYPTO=\"openssl\".
Comment 1 Tom Judge 2010-11-09 14:49:17 UTC
This is also present in the 1.2.16 release.

This breaks the build of depended packages.  

FreeBSD has a ticket with patches to fix this in their ports tree:

http://www.freebsd.org/cgi/query-pr.cgi?pr=152070
Comment 2 Aleksey Sanin 2010-11-10 02:40:18 UTC
applied patch from FreeBSD

$ git commit -m"fixed extra quotes (bug #631258)"  -a
[master 3e7cf30] fixed extra quotes (bug #631258)
 5 files changed, 5 insertions(+), 5 deletions(-)