On Thu, Aug 31, 2017 at 11:35 AM Kaushal Modi <[email protected]>
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