Re: [sage-release] Sage 9.6.beta7 released :cannot compile.

2022-07-13 Thread Dima Pasechnik
On Wed, Jul 13, 2022 at 10:08 AM Thierry Dumont
 wrote:
>
>
>
> Le 13/07/2022 à 10:57, Dima Pasechnik a écrit :
> > On Wed, Jul 13, 2022 at 9:40 AM Thierry Dumont
> >  wrote:
> >>
> >>
> >>
> >> Le 13/07/2022 à 10:29, Dima Pasechnik a écrit :
> >>>
> >>>
> >
> > ./configure should print an advice to install libcurl4-openssl-dev
> > somewhere at the end of its run.
> >
> >
> Yes. But it did not.
> This problem seems to appear with this beta7 version.
9.7.beta5, you mean?

I suppose Sage's curl is getting old, and less compatible.
For some reason, Ubuntu is behind Debian in versions (Debian's curl is
7.84, the latest)
https://curl.se/download.html

I've opened a ticket to update curl: https://trac.sagemath.org/ticket/34176



> Also: in Ubuntu there are different versions of libcurl*.dev
> libcurl4-gnutls.dev
> libcurl4-nss.dev
> libcurl4-openssl.dev
> In my case only the gnutls version could be installed (others give
> conflicts). May be the advice will be a bit complicated.

yeah. (I don't understand why people want to use gnutls, in view of
https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=gnutls
it's no better than openssl, if not worse)

> So I installed it. Then config.log is ok  with curl.
> I am now recompiling.
> t.d
>
> >
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-release" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-release+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-release/32bd38fd-6158-eab7-07ce-2c8b6ccfb165%40math.univ-lyon1.fr.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/CAAWYfq3sJbptKev-53YxXt%2BvQDSfkVjiGpNRqyMBX8QAFxGUOw%40mail.gmail.com.


Re: [sage-release] Sage 9.6.beta7 released :cannot compile.

2022-07-13 Thread Thierry Dumont




Le 13/07/2022 à 10:57, Dima Pasechnik a écrit :

On Wed, Jul 13, 2022 at 9:40 AM Thierry Dumont
 wrote:




Le 13/07/2022 à 10:29, Dima Pasechnik a écrit :





./configure should print an advice to install libcurl4-openssl-dev
somewhere at the end of its run.



Yes. But it did not.
This problem seems to appear with this beta7 version.
Also: in Ubuntu there are different versions of libcurl*.dev
libcurl4-gnutls.dev
libcurl4-nss.dev
libcurl4-openssl.dev
In my case only the gnutls version could be installed (others give 
conflicts). May be the advice will be a bit complicated.

So I installed it. Then config.log is ok  with curl.
I am now recompiling.
t.d





--
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/32bd38fd-6158-eab7-07ce-2c8b6ccfb165%40math.univ-lyon1.fr.


Re: [sage-release] Sage 9.6.beta7 released :cannot compile.

2022-07-13 Thread Dima Pasechnik
On Wed, Jul 13, 2022 at 9:40 AM Thierry Dumont
 wrote:
>
>
>
> Le 13/07/2022 à 10:29, Dima Pasechnik a écrit :
> >
> >
> > On Wed, 13 Jul 2022, 09:25 Thierry Dumont,  > > wrote:
> >
> >
> >
> > Le 13/07/2022 à 09:57, Dima Pasechnik a écrit :
> >  > what does top level config.log say about curl?
> >  >
> >  > why the system one was not good?
> >
> > Note that curl was downloaded (source) and its compilation failed.
> >
> >
> > you have a header clash between the Sage's curl and system curl.
> >
> > why does configure reject the system curl?
> > (this can be found by inspecting config.log)
> >
>
> This is a part of config.log.
> The ubuntu packages libcurl*.dev are not installed (and the
> configuration procedure did not mention this):
>

./configure should print an advice to install libcurl4-openssl-dev
somewhere at the end of its run.



> # Checking whether SageMath should install SPKG curl... ##
> ## - ##
> configure:20300: checking for curl 7.22
> configure:20343: result:
> configure:20389: checking for gawk
> configure:20421: result: gawk
> configure:20488: checking for curl-config
> configure:20526: result: no
> configure:20604: checking whether libcurl is usable
> configure:20639: g++ -std=gnu++11 -o conftest conftest.cpp  -lcurl
> -lbz2 -lflint -lmpfr -lgmp -lm  -lntl >&5
> conftest.cpp:28:10: fatal error: curl/curl.h: No such file or directory
> 28 | #include 
>|  ^
> compilation terminated.
> configure:20639: $? = 1
> configure: failed program was:
> | /* confdefs.h */
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "sage-release" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sage-release/-0luW4DPEPs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> sage-release+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-release/f7b95577-d485-1acf-2eac-497dcac91ed9%40math.univ-lyon1.fr.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/CAAWYfq3XMJCF9w1mxyXQ%2BKoss%3DFfCtWduBsMa%3D_%2B-K60DOpjSg%40mail.gmail.com.


Re: [sage-release] Sage 9.6.beta7 released :cannot compile.

2022-07-13 Thread Thierry Dumont




Le 13/07/2022 à 10:29, Dima Pasechnik a écrit :



On Wed, 13 Jul 2022, 09:25 Thierry Dumont, > wrote:




Le 13/07/2022 à 09:57, Dima Pasechnik a écrit :
 > what does top level config.log say about curl?
 >
 > why the system one was not good?

Note that curl was downloaded (source) and its compilation failed.


you have a header clash between the Sage's curl and system curl.

why does configure reject the system curl?
(this can be found by inspecting config.log)



This is a part of config.log.
The ubuntu packages libcurl*.dev are not installed (and the 
configuration procedure did not mention this):


# Checking whether SageMath should install SPKG curl... ##
## - ##
configure:20300: checking for curl 7.22
configure:20343: result:
configure:20389: checking for gawk
configure:20421: result: gawk
configure:20488: checking for curl-config
configure:20526: result: no
configure:20604: checking whether libcurl is usable
configure:20639: g++ -std=gnu++11 -o conftest conftest.cpp  -lcurl 
-lbz2 -lflint -lmpfr -lgmp -lm  -lntl >&5

conftest.cpp:28:10: fatal error: curl/curl.h: No such file or directory
   28 | #include 
  |  ^
compilation terminated.
configure:20639: $? = 1
configure: failed program was:
| /* confdefs.h */

--
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/f7b95577-d485-1acf-2eac-497dcac91ed9%40math.univ-lyon1.fr.


Re: [sage-release] Sage 9.6.beta7 released :cannot compile.

2022-07-13 Thread Dima Pasechnik
On Wed, 13 Jul 2022, 09:25 Thierry Dumont, 
wrote:

>
>
> Le 13/07/2022 à 09:57, Dima Pasechnik a écrit :
> > what does top level config.log say about curl?
> >
> > why the system one was not good?
>
> Note that curl was downloaded (source) and its compilation failed.
>

you have a header clash between the Sage's curl and system curl.

why does configure reject the system curl?
(this can be found by inspecting config.log)


This is a part of install.log (full logfile is joined):
>
> curl-7.62.0.p0] Attempting to download package curl-7.62.0.tar.bz2 from
> mirrors
> [curl-7.62.0.p0]
>
> https://www-ftp.lip6.fr/pub/math/sagemath/spkg/upstream/curl/curl-7.62.0.tar.bz2
>
> and
> curl-7.62.0.p0] curl-7.62.0.p0
> [curl-7.62.0.p0] 
> [curl-7.62.0.p0] Setting up build directory for curl-7.62.0.p0
> 
>
> curl-7.62.0.p0] Finished extraction
> [curl-7.62.0.p0] No patch files found in ../patches
> 
>
> curl-7.62.0.p0] /usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc
> -DHAVE_CONFIG_H   -I../include -I../lib -I../lib  -DBUILDING_LIBCURL
> -DCURL_HIDDEN_SYMBOLS-fvisibility=hidden -O2
> -Werror-implicit-function-declaration -Wno-system-headers  -c -o
> libcurl_la-openldap.lo `test -f 'openldap.c' || echo './'`openldap.c
> [curl-7.62.0.p0] libtool: compile:  gcc -DHAVE_CONFIG_H -I../include
> -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS
> -fvisibility=hidden -O2 -Werror-implicit-function-declaration
> -Wno-system-headers -c openldap.c  -fPIC -DPIC -o
> .libs/libcurl_la-openldap.o
> [curl-7.62.0.p0] openldap.c:82:17: error: conflicting types for
> 'ldap_connect'; have 'CURLcode(struct connectdata *, _Bool *)'
> [curl-7.62.0.p0]82 | static CURLcode ldap_connect(struct connectdata
> *conn, bool *done);
> [curl-7.62.0.p0]   | ^~~~
> [curl-7.62.0.p0] In file included from openldap.c:39:
> [curl-7.62.0.p0] /usr/include/ldap.h:1555:1: note: previous declaration
> of 'ldap_connect' with type 'int(LDAP *)' {aka 'int(struct ldap *)'}
> [curl-7.62.0.p0]  1555 | ldap_connect( LDAP *ld );
> [curl-7.62.0.p0]   | ^~~~
> [curl-7.62.0.p0] make[7]: *** [Makefile:2107: libcurl_la-openldap.lo]
> Error 1
> [curl-7.62.0.p0] make[6]: *** [Makefile:1028: all] Error 2
> [curl-7.62.0.p0] make[5]: *** [Makefile:929: all-recursive] Error 1
> [curl-7.62.0.p0]
>
> 
>
>
> >
> > On Wed, 13 Jul 2022, 06:18 Thierry Dumont,  > > wrote:
> >
> > A cur(l)ious problem...
> >
> > As I did not succeed to upgrade from 9.7beta4 to beta5, I restarted
> > from
> > scratch, from a fresh clone of the repository.
> >
> > My OS: Ubuntu 22-04, up to date.
> >
> > Compilation crashes when trying to install... curl.
> >
> > curl is installed on my machine (and also libcurl4, libcurl4-gnutls)
> >
> > log file :
> > Attempting to download package curl-7.62.0.tar.bz2 from mirrors
> >
> https://www-ftp.lip6.fr/pub/math/sagemath/spkg/upstream/curl/curl-7.62.0.tar.bz2
> > <
> https://www-ftp.lip6.fr/pub/math/sagemath/spkg/upstream/curl/curl-7.62.0.tar.bz2
> >
> >
>  [..]
> > curl-7.62.0.p0
> > 
> > Setting up build directory for curl-7.62.0.p0
> > Finished extraction
> > No patch files found in ../patches
> > 
> >
> > 
> > openldap.c:82:17: error: conflicting types for 'ldap_connect'; have
> > 'CURLcode(struct connectdata *, _Bool *)'
> >  82 | static CURLcode ldap_connect(struct connectdata *conn,
> > bool *done);
> > | ^~~~
> > In file included from openldap.c:39:
> > /usr/include/ldap.h:1555:1: note: previous declaration of
> > 'ldap_connect'
> > with type 'int(LDAP *)' {aka 'int(struct ldap *)'}
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "sage-release" group.
> > To unsubscribe from this group and stop receiving emails from it,
> > send an email to sage-release+unsubscr...@googlegroups.com
> > .
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sage-release/5cc232e7-70c5-0b53-eb65-0317f7e48656%40math.univ-lyon1.fr
> > <
> https://groups.google.com/d/msgid/sage-release/5cc232e7-70c5-0b53-eb65-0317f7e48656%40math.univ-lyon1.fr
> >.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "sage-release" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to sage-release+unsubscr...@googlegroups.com
> > .
> > To view this discussion on 

Re: [sage-release] Sage 9.6.beta7 released :cannot compile.

2022-07-13 Thread Dima Pasechnik
what does top level config.log say about curl?

why the system one was not good?

On Wed, 13 Jul 2022, 06:18 Thierry Dumont, 
wrote:

> A cur(l)ious problem...
>
> As I did not succeed to upgrade from 9.7beta4 to beta5, I restarted from
> scratch, from a fresh clone of the repository.
>
> My OS: Ubuntu 22-04, up to date.
>
> Compilation crashes when trying to install... curl.
>
> curl is installed on my machine (and also libcurl4, libcurl4-gnutls)
>
> log file :
> Attempting to download package curl-7.62.0.tar.bz2 from mirrors
>
> https://www-ftp.lip6.fr/pub/math/sagemath/spkg/upstream/curl/curl-7.62.0.tar.bz2
> [..]
> curl-7.62.0.p0
> 
> Setting up build directory for curl-7.62.0.p0
> Finished extraction
> No patch files found in ../patches
> 
>
> 
> openldap.c:82:17: error: conflicting types for 'ldap_connect'; have
> 'CURLcode(struct connectdata *, _Bool *)'
> 82 | static CURLcode ldap_connect(struct connectdata *conn, bool
> *done);
>| ^~~~
> In file included from openldap.c:39:
> /usr/include/ldap.h:1555:1: note: previous declaration of 'ldap_connect'
> with type 'int(LDAP *)' {aka 'int(struct ldap *)'}
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-release" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-release+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-release/5cc232e7-70c5-0b53-eb65-0317f7e48656%40math.univ-lyon1.fr
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/CAAWYfq1TWRgvaeZresQ3f4ufMcf5ay_N1yeNBQJsS26geHL%3Ddg%40mail.gmail.com.


Re: [sage-release] Sage 9.6.beta7 released :cannot compile.

2022-07-12 Thread Thierry Dumont

A cur(l)ious problem...

As I did not succeed to upgrade from 9.7beta4 to beta5, I restarted from 
scratch, from a fresh clone of the repository.


My OS: Ubuntu 22-04, up to date.

Compilation crashes when trying to install... curl.

curl is installed on my machine (and also libcurl4, libcurl4-gnutls)

log file :
Attempting to download package curl-7.62.0.tar.bz2 from mirrors
https://www-ftp.lip6.fr/pub/math/sagemath/spkg/upstream/curl/curl-7.62.0.tar.bz2
[..]
curl-7.62.0.p0

Setting up build directory for curl-7.62.0.p0
Finished extraction
No patch files found in ../patches



openldap.c:82:17: error: conflicting types for 'ldap_connect'; have 
'CURLcode(struct connectdata *, _Bool *)'

   82 | static CURLcode ldap_connect(struct connectdata *conn, bool *done);
  | ^~~~
In file included from openldap.c:39:
/usr/include/ldap.h:1555:1: note: previous declaration of 'ldap_connect' 
with type 'int(LDAP *)' {aka 'int(struct ldap *)'}


--
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/5cc232e7-70c5-0b53-eb65-0317f7e48656%40math.univ-lyon1.fr.