gnutls-devel?

Jeff Simmons jsimmons at goblin.punk.net
Fri May 29 21:02:35 PDT 2009


On Friday 29 May 2009 10:28, Ryan Schmidt wrote:
> In some other package managers, a port like gnutls would contain the
> libraries and binaries, while a port gnutls-devel would contain the
> headers needed to compile other software that wants to use gnutls.
>
> MacPorts does not use that naming convention. In MacPorts, a port
> like gnutls will contain all of the above. gnutls would be the latest
> stable version of the software, while a port gnutls-devel, if it
> existed, would be the latest unstable or development version of the
> software.

Eminently reasonable. Chasing after dev packages just to get header files is 
always a pain.

> So just install the gnutls port. That should be all you need. If not,
> please post the error message you get.

Well, adding an environmental variable pointing the linker to the Mac Ports 
libraries solves the ./configure problem.

LDFLAGS=-L/opt/local/lib/

But then make gives the following error message:


cd libopenvas_hg && make
/bin/sh /usr/local/src/openvas-libraries-2.0.2/libtool --mode=compile   
gcc -pipe -DHAVE_CONFIG_H   -I. -I/usr/local/src/openvas- 
libraries-2.0.2/include -I/usr/local/include  -Wall -I../libopenvas -c  
hg_utils.c
  gcc -pipe -DHAVE_CONFIG_H -I. -I/usr/local/src/openvas- 
libraries-2.0.2/include -I/usr/local/include -Wall -I../libopenvas -c  
hg_utils.c  -fno-common -DPIC -o .libs/hg_utils.o
In file included from /usr/local/src/openvas-libraries-2.0.2/include/ 
libopenvas.h:48,
                  from /usr/local/src/openvas-libraries-2.0.2/include/ 
includes.h:233,
                  from hg_utils.c:19:
../libopenvas/network.h:30:27: error: gnutls/gnutls.h: No such file or  
directory
In file included from /usr/local/src/openvas-libraries-2.0.2/include/ 
libopenvas.h:48,
                  from /usr/local/src/openvas-libraries-2.0.2/include/ 
includes.h:233,
                  from hg_utils.c:19:
../libopenvas/network.h:91: error: syntax error before '*' token
../libopenvas/network.h:91: warning: type defaults to 'int' in  
declaration of 'ovas_get_tlssession_from_connection'
../libopenvas/network.h:91: warning: data definition has no type or  
storage class
make[1]: *** [hg_utils.o] Error 1
make: *** [all] Error 2


So it looks like it can't find gnutls.h, which I can see in 
/opt/local/includes/gnutls. Any ideas on how to fix this?

Learning a new platform is so much fun.

-- 
Jeff Simmons                                   jsimmons at goblin.punk.net
Simmons Consulting - Network Engineering, Administration, Security
"You guys, I don't hear any noise.  Are you sure you're doing it right?"
        --  My Life With The Thrill Kill Kult


More information about the macports-users mailing list