Re: configure fails for dar 2.6+ on Solaris
Mihai Moldovan <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
* On 5/25/20 11:46 PM, Blandon Ray wrote:
> In case it is helpful I put the configure scripts in a Google Drive folder (they
> were too large for pastebin):
> https://drive.google.com/open?id=1P9vhYaFn0_s3DEg9j3b4s-axjntCvADy
>
> The 2.5.22 (gcc8) configure worked fine; the 2.6.7 (gcc8) failed with:
> ./configure: line 23941: syntax error at line 23955: `(' unexpected
> The third file is 2.6.7 on gcc7 which also worked.
Thanks.
Interesting, the compiler shouldn't change anything. But shell scripts are quite
special in that a parse error only matters when code is actually executed - not
executed code can be syntactically incorrect and the script still work.
Anyway, here's your culprit:
> if test "x$enable_libcurl_linking" != "xyes"; then :
>
> { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl and
> thus remote repository support has been disabled by user" >&5
> $as_echo "$as_me: WARNING: libcurl and thus remote repository support has been
> disabled by user" >&2;}
> local_libcurl="no"
>
> else
>
> PKG_CHECK_EXISTS(libcurl,
> PKG_CHECK_MODULES(LIBCURL, libcurl, [],
[AC_MSG_ERROR([libcurl not found, but reported to exist !?!])])
> AC_DEFINE(HAVE_LIBCURL, 1, [Libcurl library
availability])
> ,
>
> AC_CHECK_LIB(curl, [curl_global_init], [],
[AC_MSG_WARN([libcurl library not found])])
> AC_DEFINE(HAVE_LIBCURL, 1, [Libcurl library
availability])
> )
See how the part is normal shell code and then there's some weird
PKG_CHECK_EXISTS part that is illegal syntax?
That's an m4 code fragment that should have been substituted by shell code by
autotools but wasn't.
Do you have pkgconfig, and, crucially, its aclocal m4 file installed? I don't
know where that would be on Solaris and how the package is called there, but
pretty sure it's something like pkgconfig or pkg-config.
Also, aclocal needs to know to look into the directory this file is packaged into.
I know that Solaris has a pretty complicated setup with vendorland and userland
and even multiple package management systems, so I'm a bit lost there.
The other point is that you did explicitly specify --disable-libcurl-linking -
so this code path shouldn't have been taken in the first place. However, dar has
a very... creative way of handling configure switches (read: in my opinion, it's
totally buggy or at least not consistent with what most other software packages
do), so you probably fell into that trap.
Also, interestingly, the GCC 7 variant has the m4 code expanded, so there the
pkgconfig integration worked correctly.
I'm pretty sure that this problem is caused by your system and that the pkg.m4
file is not found when using the gcc-8 toolchain.
Mihai
_______________________________________________
Dar-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dar-support
signature.asc
(application/pgp-signature, 899 B)
-----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCgAdFiEEbhHQj3UzgcdE8cg8H9Yu2W4lOocFAl7NCvQACgkQH9Yu2W4l Oofw8BAAogMGzeblCjvkLCHi5Wqodklm48nhTD2LJlxdAjGQi3/4HdVbcijMsVsW IisgevUU9uNgc6htJW87OL/1LSkRLzcltKImSCEeW9K7hSaNB1Yi7cumDb9OxcUu AYwDp8KpqgyfGURQgpKQj4vnNMDDo1LBxW5S1rYXhrg88dW/rfdS+YNPK60NpTZk epQLlcNV/3yBEn6YsIFPt6aegWPn6uFjMVsH0VGZW0EBc9PopPUH8ouhwQRb2MfX XzCbXvWz5d/6bgB9hUMkA8QhqZHP5eEUbzX1xNybTyzKdoHYpSLnA5zRTJvWgtAr +jSAZ2WN5ev6QW3fJwOMuryOdKqkHF/Z4ivMagKrQ5f+ja9aVxIFbMVTl4/kYOL3 rWbF3U3JRSmMiuRnXvJ0Zj1gPZJLnn4O0MmULy8g4A1rJQK9RDxI8EXS5j6xyZfp 8n0GglqUtoNXDG4i89izP6ehCiqtAkIjHzgDsqJL7lKWVCpwbwWz6jngobznU3B7 sNTm7nWRkii+JhwJkI0onvsfMKmaSi49s3hcwYCe1e7f1IFSqEOiTJ511HQTuYLQ Fl1ct9GYYFCm9p6VF/kI5+KnHF5TEniQQCdTd3JYcQd+p4U2vc9qBlgYdjIJx3EU qn4QKUOxsVhOrRKStvwcHzGUUTY2HeEYqEyPm0XPLauPZ8cA1Hw= =JmqU -----END PGP SIGNATURE-----