Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2006 22:40:00 +0300
From:      Andy Fawcett <andy@athame.co.uk>
To:        freebsd-ports@freebsd.org
Cc:        ports@freebsd.org, Alex Dupre <ale@freebsd.org>, Florent Thoumie <flz@freebsd.org>
Subject:   Re: clamav-0.88.2_1 upgrade fails to recognize libgmp and disables
Message-ID:  <200605112240.02757.andy@athame.co.uk>
In-Reply-To: <1147349201.49163.7.camel@mayday.esat.net>
References:  <20060511105950.GA49214@twisted.net> <20060511120323.GA27133@twisted.net> <1147349201.49163.7.camel@mayday.esat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 11 May 2006 15:06, Florent Thoumie wrote:
> On Thu, 2006-05-11 at 07:03 -0500, Troy wrote:
> > Alex,
> >
> > I get the following
> >
> > ldconfig -r |grep gmp
> >         231:-lgmpxx.4 => /usr/local/lib/libgmpxx.so.4
> >         301:-lgmp.7 => /usr/local/lib/libgmp.so.7
> >         358:-lgmp.6 => /usr/local/lib/compat/pkg/libgmp.so.6
> >         359:-lgmpxx.3 => /usr/local/lib/compat/pkg/libgmpxx.so.3
> >
> > but during the make script I'm getting:
> >
> > checking for __gmpz_init in -lgmp... no
> >
> > pkg_info|grep gmp
> > libgmp-4.2.1        A free library for arbitrary precision
> > arithmetic
> >
> > I even rebuilt libgmp and clamav and still it doesn't see it.
> >
> > Any thoughts?
>
> Checking config.log might help.

Seems it also breaks misc/kdeutils3, and disables building of kcalc, 
causing a packaging error.

config.log shows:

configure:35791: rm -rf SunWS_cache; c++ -o 
conftest -Wno-long-long -Wundef -Wal
l -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -fno-strict-aliasing -pipe -Wno
-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPAC
E -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_THREAD_SA
FE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include -I/usr/local/include  -I/
usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE  -I/usr/local/include -I/usr/X11R6/
include  -I/usr/local/include  
conftest.cc -L/usr/local/lib -L/usr/X11R6/lib   -
D_THREAD_SAFE -pthread  -L/usr/local/lib -lgmp 1>&5
/usr/local/lib/libgmp.so: undefined reference to `__gmpn_add_nc'
/usr/local/lib/libgmp.so: undefined reference to `__gmpn_sub_nc'
configure:35797: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "kdeutils"
| #define VERSION "3.5.2"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define KDELIBSUFF ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_SGI_STL 1
| #define HAVE_STRLCAT 1
| #define HAVE_STRLCAT_PROTO 1
| #define HAVE_STRLCPY 1
| #define HAVE_STRLCPY_PROTO 1
| #define HAVE_CRYPT 1
| #define kde_socklen_t socklen_t
| #define ksize_t socklen_t
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_RES_INIT 1
| #define HAVE_RES_INIT_PROTO 1
| #define SIZEOF_INT 4
| #define SIZEOF_SHORT 2
| #define SIZEOF_LONG 8
| #define SIZEOF_CHAR_P 8
| #define SIZEOF_SIZE_T 8
| #define SIZEOF_UNSIGNED_LONG 8
| #define HAVE_VSNPRINTF 1
| #define HAVE_SNPRINTF 1
| #define HAVE_LIBZ 1
| #define HAVE_LIBPNG 1
| #define HAVE_LIBJPEG 1
| #define HAVE_LIBPTHREAD 1
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_SYSCTL_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_USER_H 1
| #define HAVE_SYS_VMMETER_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SETENV 1
| #define HAVE_SETENV_PROTO 1
| #define HAVE_UNSETENV 1
| #define HAVE_LONG_DOUBLE 1
| #define HAVE_FUNC_ISINF 1
| #define HAVE_FUNC_ROUND 1
| #define HAVE_FUNC_ROUNDL 1
| #define HAVE_LONG_DOUBLE 1
| /* end confdefs.h.  */
|
|     #include <gmp.h>
|
| int
| main ()
| {
|
|     mpz_t _mpz;
|     mpz_init_set_si(_mpz, 0);
|
|   ;
|   return 0;
| }

A.

-- 
Andy Fawcett                                     | andy@athame.co.uk
                                                 | tap@kde.org
"In an open world without walls and fences,      | tap@lspace.org
  we wouldn't need Windows and Gates."  -- anon  | tap@fruitsalad.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605112240.02757.andy>