ZMaroti n00b
Joined: 01 Dec 2005 Posts: 41
|
Posted: Mon Mar 05, 2012 12:36 pm Post subject: TF client fails to compile since new libpcre update |
|
|
I've filled a bug and got no response so far, it still is "unconfirmed state" since a more than a week by now.
https://bugs.gentoo.org/show_bug.cgi?id=405257
So I am asking it here on the forum how could I possible fix the issue by myself. If you have any tips please help me. Downgrading to older pcre is not an option since this new package is needed by a lots of other stuff and is not a slotted package.
I noticed that in tf source there is a pcre-2.08 lib included for installations without pcre, but during the make process it checks for pcre availability so in my case it happily starts to use the system one which does not have some functions anymore and fails at linking and I don't know how to force the package to build with the included lib.
relevant part of configure.in
Code: | AC_CHECK_LIB(pcre, pcre_compile, :, [
AC_MSG_NOTICE([Note: will use old copy of pcre distributed with tf]);
PCRE=pcre; LDFLAGS="${LDFLAGS} -Lpcre-2.08"; ])
AC_SUBST(PCRE)
|
relevant part of configure
Code: | echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lpcre $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* 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 pcre_compile ();
int
main ()
{
pcre_compile ();
;
return 0;
}
|
I am not a code expert so I am asking if there is any option (environmental variables to set or some parameter to give to emerge) I could use here to force to build/use the included pcre package for this package? |
|