help with nettle gmake check
#1
help with nettle gmake check
so I have two questions actually if someone can shed some light.  I noticed when I compiled gmp-6.1.2 the "gmake check" scripts had a "-lgmp" flag for linking the gmp libraries, and now that I'm working with nettle-3.4 I'm noticing "-lnettle" flags.

so question 1:  how do these library flags work?  do I need to do something special for "-lgmp" or "-lnettle" to somehow now work?  They are clearly not part of MIPSPro, is this some sort of gcc-ism?  If they are in my lib path are they somehow now recognized?


Why am I doing this?  I wanted to compile wget, but it said it wanted gnutls, gnutls wants nettle, nettle wants gmp. so here I am.

question 2.  when doing the "gmake check" for nettle, I get:


Code:
gmake[1]: Entering directory `/usr/people/develop/dev/nettle/nettle-3.4/testsuite'
/usr/bin/cc -c99 -g0 -woff all -O2 -mips4 -L..  pss-mgf1-test.o testutils.o ../nettle-internal.o  -lnettle  -o pss-mgf1-test
ld32: ERROR   33 : Unresolved text symbol "nettle_pss_mgf1" -- 1st referenced by pss-mgf1-test.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.  
ld32: INFO    152: Output file removed because of error.
gmake[1]: *** [pss-mgf1-test] Error 2

i tried putting "-lnettle" after basically everything, but I'm not clear how this "-lnettle" is supposed to work, if work at all, and wtf is this about a program that cant resolve its own symbols?  Isn't that the point of compiling this program in the first place?  why does it seem like a catch 22?  "sorry, cant compile A because part-of-A is missing"

can someone help shed some light for me?

edit:

just to piggy back off this topic, I did a "gmake install" and everything went fine.  It for some reason installed everything into /usr/local/lib32 rather than /usr/local/lib, but that's ok, I copied everything over to /usr/local/lib

I tried to move on and build gnutls, and it complained:


Code:
./configure --prefix=/usr/local

<snip>

checking for NETTLE... no
configure: error: 
  ***
  *** Libnettle 3.4 was not found.

after I installed nettle, it doesn't seem these newer configure scripts can find it - any insight would be fabulous
(This post was last modified: 09-16-2018, 07:38 AM by gijoe77.)
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
09-16-2018, 06:52 AM


Messages In This Thread
help with nettle gmake check - by gijoe77 - 09-16-2018, 06:52 AM
RE: help with nettle gmake check - by dexter1 - 09-16-2018, 08:26 AM
RE: help with nettle gmake check - by mrthinlysliced - 09-16-2018, 09:53 AM
RE: help with nettle gmake check - by gijoe77 - 09-18-2018, 11:09 AM
RE: help with nettle gmake check - by mrthinlysliced - 09-18-2018, 11:20 AM
RE: help with nettle gmake check - by gijoe77 - 09-18-2018, 12:34 PM
RE: help with nettle gmake check - by gijoe77 - 09-18-2018, 04:06 PM
RE: help with nettle gmake check - by mrthinlysliced - 09-19-2018, 06:23 AM
RE: help with nettle gmake check - by mrthinlysliced - 09-16-2018, 11:23 AM
RE: help with nettle gmake check - by TruHobbyist - 09-16-2018, 11:42 AM
RE: help with nettle gmake check - by gijoe77 - 09-17-2018, 03:00 PM
RE: help with nettle gmake check - by mrthinlysliced - 09-18-2018, 11:02 AM
RE: help with nettle gmake check - by mrthinlysliced - 10-15-2018, 12:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)