Error build - can't find gnutls

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error build - can't find gnutls

Blake McBride-2
Hi,

I am building the latest git master on 64 bit Linux using the following:

libtoolize --force
autoreconf -vi
./configure --with-system-libffi=/usr/lib/x86_64-linux-gnu
--with-system-libltdl=/usr/lib/x86_64-linux-gnu
make


One of the configure output lines reads:
checking for gnutls_global_init in -lgnutls... yes


Also:
/usr/lib $ find . -name '*ltdl*'
./x86_64-linux-gnu/libltdl.so.7
./x86_64-linux-gnu/libltdl.so.7.3.0
./x86_64-linux-gnu/libltdl.la
./x86_64-linux-gnu/libltdl.a
./x86_64-linux-gnu/libltdl.so


The make ends with:

make[3]: Entering directory
`/home/blake/Backup/gnusmalltalk.git/packages/net'
  CCLD     gnutls-wrapper
gnutls-wrapper.o: In function `handle_error':
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:42:
undefined reference to `gnutls_alert_send'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:44:
undefined reference to `gnutls_error_is_fatal'
gnutls-wrapper.o: In function `main':
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:128:
undefined reference to `gnutls_global_init'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:149:
undefined reference to `gnutls_init'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:150:
undefined reference to `gnutls_set_default_priority'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:152:
undefined reference to `gnutls_anon_allocate_client_credentials'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:153:
undefined reference to `gnutls_credentials_set'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:155:
undefined reference to `gnutls_certificate_allocate_credentials'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:156:
undefined reference to `gnutls_credentials_set'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:159:
undefined reference to `gnutls_transport_set_ptr'
gnutls-wrapper.o: In function `do_handshake':
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:57:
undefined reference to `gnutls_handshake'
gnutls-wrapper.o: In function `main':
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:225:
undefined reference to `gnutls_record_send'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:235:
undefined reference to `gnutls_bye'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:237:
undefined reference to `gnutls_deinit'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:244:
undefined reference to `gnutls_anon_free_client_credentials'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:245:
undefined reference to `gnutls_certificate_free_credentials'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:246:
undefined reference to `gnutls_global_deinit'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:197:
undefined reference to `gnutls_record_recv'
gnutls-wrapper.o: In function `do_handshake':
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:61:
undefined reference to `gnutls_error_is_fatal'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:64:
undefined reference to `gnutls_alert_send_appropriate'
gnutls-wrapper.o: In function `main':
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:165:
undefined reference to `gnutls_perror'
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:240:
undefined reference to `gnutls_deinit'
gnutls-wrapper.o: In function `do_handshake':
/home/blake/Backup/gnusmalltalk.git/packages/net/gnutls-wrapper.c:64:
undefined reference to `gnutls_alert_send_appropriate'
collect2: error: ld returned 1 exit status
make[3]: *** [gnutls-wrapper] Error 1
make[3]: Leaving directory
`/home/blake/Backup/gnusmalltalk.git/packages/net'
make[2]: *** [NetClients.star] Error 2
make[2]: Leaving directory `/home/blake/Backup/gnusmalltalk.git'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/blake/Backup/gnusmalltalk.git'
make: *** [all] Error 2


Sure appreciate any help.

Thanks!

Blake
_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error build - can't find gnutls

Holger Freyther

> On 17 Oct 2016, at 11:02, Blake McBride <[hidden email]> wrote:
>
> Hi,

Hi!


> I am building the latest git master on 64 bit Linux using the following:

which OS?


> One of the configure output lines reads:
> checking for gnutls_global_init in -lgnutls... yes

so autoconf figured out that -lgnutls is required.

>
>
> Also:
> /usr/lib $ find . -name '*ltdl*'
> ./x86_64-linux-gnu/libltdl.so.7
> ./x86_64-linux-gnu/libltdl.so.7.3.0
> ./x86_64-linux-gnu/libltdl.la
> ./x86_64-linux-gnu/libltdl.a
> ./x86_64-linux-gnu/libltdl.so
>
>
> The make ends with:
>
> make[3]: Entering directory
> `/home/blake/Backup/gnusmalltalk.git/packages/net'
>  CCLD     gnutls-wrapper

could you please build with make V=1 and pass the link line here? Either
-lgnutls is missing from it, at the wrong position.. but it will be easier
for me once I see the line.


holger

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error build - can't find gnutls

Blake McBride-2
LinuxMint 64 bit

libtool: link: gcc -g -O2 -Wall -Wno-format -Wdeclaration-after-statement
-Wno-format -Wpointer-arith -Wno-pointer-sign -Wno-switch -Wwrite-strings
-Wno-strict-aliasing -fno-gcse -fstrict-aliasing -o gnutls-wrapper
gnutls-wrapper.o  ../../lib-src/.libs/library.a -lrt -lm

Thanks!


On Mon, Oct 17, 2016 at 4:08 AM, Holger Freyther <[hidden email]> wrote:

>
> > On 17 Oct 2016, at 11:02, Blake McBride <[hidden email]> wrote:
> >
> > Hi,
>
> Hi!
>
>
> > I am building the latest git master on 64 bit Linux using the following:
>
> which OS?
>
>
> > One of the configure output lines reads:
> > checking for gnutls_global_init in -lgnutls... yes
>
> so autoconf figured out that -lgnutls is required.
>
> >
> >
> > Also:
> > /usr/lib $ find . -name '*ltdl*'
> > ./x86_64-linux-gnu/libltdl.so.7
> > ./x86_64-linux-gnu/libltdl.so.7.3.0
> > ./x86_64-linux-gnu/libltdl.la
> > ./x86_64-linux-gnu/libltdl.a
> > ./x86_64-linux-gnu/libltdl.so
> >
> >
> > The make ends with:
> >
> > make[3]: Entering directory
> > `/home/blake/Backup/gnusmalltalk.git/packages/net'
> >  CCLD     gnutls-wrapper
>
> could you please build with make V=1 and pass the link line here? Either
> -lgnutls is missing from it, at the wrong position.. but it will be easier
> for me once I see the line.
>
>
> holger
>
_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error build - can't find gnutls

Holger Freyther

> On 17 Oct 2016, at 11:16, Blake McBride <[hidden email]> wrote:
>
> LinuxMint 64 bit

Which release? 18?


> libtool: link: gcc -g -O2 -Wall -Wno-format -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wno-switch -Wwrite-strings -Wno-strict-aliasing -fno-gcse -fstrict-aliasing -o gnutls-wrapper gnutls-wrapper.o  ../../lib-src/.libs/library.a -lrt -lm
>

gnutls_wrapper_LDADD = $(GNUTLS_LIBS) \
        $(top_builddir)/lib-src/library.la $(SOCKET_LIBS)

could you send me the config.log file? E.g. GNUTLS_LIBS seems to be set to
nothing.. and this is unlikely to be good. :)

holger


_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error build - can't find gnutls

Holger Freyther

> On 17 Oct 2016, at 11:27, Blake McBride <[hidden email]> wrote:
>
> 17.1
>
> Attached.

Thank you! GST tries to use pkg-config --exists --print-errors "gnutls"
to find GNUtls but that fails. Could you use dpkg -L <name-of-gnutls-dev>
package to see where the gnutls.pc is put?

You can wokaround by modifying packages/net/Makefile.am and put -lgnutls
into the LDADD line.

And I will have to modify the autoconf test. In contrast to the pkg-config
macro GST_HAVE_LIBS will not define GNUTLS_LIBS. I am tempted to remove
the fallback as it was broken and pkg-config is probably a decade old by
now as well.

holger



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Loading...