Linking errors with libxslt2 on Solaris 9 khyron4eva
From: khyron4eva@xxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
Subject: Linking errors with libxslt2 on Solaris 9
Date: Mon, 16 Oct 2006 08:37:32 +0200 (CEST)
I have libxslt2 installed under /local/lib. Whenever I run configure, whether
in a VPATH setup or not, it fails with the following error:
checking for xsltApplyStylesheet in -lxslt... no
configure: error: Couldn't find libxslt
Now, some experimentation has shown that we don't like the -L/local/lib flag
that configure attempts to build the following source code with. If I build
this source with the following command, manually, it works fine:
Any thoughts on the source of this problem would be most appreciated. Even
adding LDFLAGS="" and CPPFLAGS="" to my configure command has not yielded any
result. I haven't found where in the configure script it is finding the PATHs
to break apart for the -L and -R flags. I think I need to hack around this
logic.
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char xsltApplyStylesheet ();
int
main ()
{
xsltApplyStylesheet ();
;
return 0;
}
== END SOURCE ==
bash-2.05$ ls -ltr /local/lib/libxslt.so*
.
.
-rwxr-xr-x 1 root root 262772 Oct 11 09:53
/local/lib/libxslt.so.1.1.17
lrwxrwxrwx 1 root root 17 Oct 11 09:53
/local/lib/libxslt.so.1 -> libxslt.so.1.1.17
lrwxrwxrwx 1 root root 17 Oct 11 09:53 /local/lib/libxslt.so
-> libxslt.so.1.1.17