coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with building; fails because of "undefined reference to `__gmpz


From: Kaushal Modi
Subject: Re: Help with building; fails because of "undefined reference to `__gmpz_inits'"
Date: Thu, 31 Aug 2017 16:44:15 +0000

On Thu, Aug 31, 2017 at 11:35 AM Kaushal Modi <address@hidden>
wrote:

>
>     CCLD     src/factor
>   src/factor.o: In function `mp_prime_p':
>   /home/kmodi/downloads/coreutils-8.27/src/factor.c:1395: undefined
> reference to `__gmpz_inits'
>   /home/kmodi/downloads/coreutils-8.27/src/factor.c:1459: undefined
> reference to `__gmpz_clears'
>   src/factor.o: In function `mp_factor_using_pollard_rho':
>   /home/kmodi/downloads/coreutils-8.27/src/factor.c:1682: undefined
> reference to `__gmpz_inits'
>   /home/kmodi/downloads/coreutils-8.27/src/factor.c:1762: undefined
> reference to `__gmpz_clears'
>   collect2: error: ld returned 1 exit status
>   make[2]: *** [Makefile:7880: src/factor] Error 1
>   make[2]: Leaving directory '/home/kmodi/downloads/coreutils-8.27'
>   make[1]: *** [Makefile:11631: all-recursive] Error 1
>   make[1]: Leaving directory '/home/kmodi/downloads/coreutils-8.27'
>   make: *** [Makefile:5922: all] Error 2
>

Please ignore that.

This got fixed after installing the gmp library locally to $FOO dir and
doing:

./configure --prefix="${coreutils_install_dir}" CPPFLAGS=-I"${FOO}/include"
LDFLAGS=-L"${FOO}/lib"
-- 

Kaushal Modi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]