[xslt] Build error on Solaris w/o snprintf
- From: "Nick Deubert" <ndeubert gmail com>
- To: xslt gnome org
- Subject: [xslt] Build error on Solaris w/o snprintf
- Date: Fri, 11 May 2007 10:01:49 -0400
Hello,
Recently I tried to build libxslt on Solaris (SunOS 5.5.1) and got the
following warning and link error. I made the change below (not sure if
it's even ok to do this) and it seemed to fix it for me.
Thanks,
Nick
namespaces.c: In function `xsltGetSpecialNamespace':
namespaces.c:585: warning: implicit declaration of function `snprintf'
...
../libxslt/.libs/libxslt.so: undefined reference to `snprintf'
collect2: ld returned 1 exit status
make[2]: *** [xsltproc] Error 1
--- namespaces.c.orig 2007-05-11 09:56:42.000000000 -0400
+++ namespaces.c 2007-05-11 09:56:42.000000000 -0400
@@ -43,6 +43,8 @@
#include "xsltutils.h"
#include "namespaces.h"
#include "imports.h"
+#include "trio.h"
+#define snprintf trio_snprintf
/************************************************************************
* *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]