all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac'
@ 2016-08-30 19:08 Hartmut Goebel
  2016-08-31 19:49 ` Ricardo Wurmus
  2016-09-01 11:44 ` Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Hartmut Goebel @ 2016-08-30 19:08 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 1642 bytes --]

Hi,

I try to build the asn1c package, see below. But this fails with the
following error message.

/gnu/store/…-automake-1.15/share/automake-1.15/am/ltlibrary.am:
warning: 'libasn1compiler.la': linking libtool libraries using a non-POSIX
archiver requires 'AM_PROG_AR' in 'configure.ac'

Is this a common issue?

(define-public asn1c
  (package
    (name "asn1c")
    (version "0.9.27")
    (source (origin
      (method url-fetch)
      (uri (string-append "https://lionet.info/soft/asn1c-" version
".tar.gz"))
      (sha256 (base32
"17nvn2kzvlryasr9dzqg6gs27b9lvqpval0k31pb64bjqbhn8pq2"))))
  (build-system gnu-build-system)
  (arguments
   `(;#:tests #f
     #:phases
     (modify-phases %standard-phases
       (add-after 'unpack 'bootstrap
         (lambda* (#:key inputs #:allow-other-keys)
       ;(setenv "AUTOMAKE" "automake --foreign")
           (zero? (system* "autoreconf" "-fvi")))))))
  (native-inputs
   `(("automake" ,automake)
     ("autoconf" ,autoconf)
     ;("binutils" ,binutils)
     ("libtool" ,libtool)))
  (home-page "https://lionet.info/")
  (synopsis "ASN.1 to C  Compiler")
  (description "")
   (license license:bsd-2))) ; TODO


-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog:
http://www.goebel-consult.de/blog/vorratsdatenspeicherung-jetzt-verfassungsbeschwerde-unterschreiben

Kolumne: http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen


[-- Attachment #1.2: Type: text/html, Size: 3148 bytes --]

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2430 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac'
  2016-08-30 19:08 new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac' Hartmut Goebel
@ 2016-08-31 19:49 ` Ricardo Wurmus
  2016-08-31 19:56   ` David Craven
  2016-09-01  7:07   ` Hartmut Goebel
  2016-09-01 11:44 ` Ludovic Courtès
  1 sibling, 2 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2016-08-31 19:49 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel


Hartmut Goebel <h.goebel@goebel-consult.de> writes:

> I try to build the asn1c package, see below. But this fails with the
> following error message.
>
> /gnu/store/…-automake-1.15/share/automake-1.15/am/ltlibrary.am:
> warning: 'libasn1compiler.la': linking libtool libraries using a non-POSIX
> archiver requires 'AM_PROG_AR' in 'configure.ac'
>
> Is this a common issue?

I have never seen this before.  Have you tried patching “configure.ac”
as it says, adding “AM_PROG_AR” somewhere?

~~ Ricardo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac'
  2016-08-31 19:49 ` Ricardo Wurmus
@ 2016-08-31 19:56   ` David Craven
  2016-09-01  7:07     ` Hartmut Goebel
  2016-09-01  7:07   ` Hartmut Goebel
  1 sibling, 1 reply; 7+ messages in thread
From: David Craven @ 2016-08-31 19:56 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel, Hartmut Goebel

> I have never seen this before.  Have you tried patching “configure.ac”
> as it says, adding “AM_PROG_AR” somewhere?

You could also try adding gettext and pkg-config to native-inputs.
Some autotools errors magically disappear sometimes...

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac'
  2016-08-31 19:49 ` Ricardo Wurmus
  2016-08-31 19:56   ` David Craven
@ 2016-09-01  7:07   ` Hartmut Goebel
  1 sibling, 0 replies; 7+ messages in thread
From: Hartmut Goebel @ 2016-09-01  7:07 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]

Am 31.08.2016 um 21:49 schrieb Ricardo Wurmus:
> I have never seen this before.  Have you tried patching “configure.ac”
> as it says, adding “AM_PROG_AR” somewhere?

For now I worked around this issue by adding this line near the top of
the confiure.ac:

m4_ifdef([AM_PROG_AR], [AM_PROG_AR])


This is what I've found when searching the internet for an solution.

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog:
http://www.goebel-consult.de/blog/vortrag-digitalen-selbstverteidigung-fur-unternehmen

Kolumne: http://www.cissp-gefluester.de/2011-11-in-troja-nichts-neues


[-- Attachment #1.2: Type: text/html, Size: 1972 bytes --]

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2430 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac'
  2016-08-31 19:56   ` David Craven
@ 2016-09-01  7:07     ` Hartmut Goebel
  0 siblings, 0 replies; 7+ messages in thread
From: Hartmut Goebel @ 2016-09-01  7:07 UTC (permalink / raw)
  To: David Craven, Ricardo Wurmus; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 745 bytes --]

Am 31.08.2016 um 21:56 schrieb David Craven:
>> I have never seen this before.  Have you tried patching “configure.ac”
>> as it says, adding “AM_PROG_AR” somewhere?
> You could also try adding gettext and pkg-config to native-inputs.
> Some autotools errors magically disappear sometimes...

This did not help in this case.

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog:
http://www.goebel-consult.de/blog/fortbildung-iso-27001-lead-implementer
Kolumne: http://www.cissp-gefluester.de/2010-09-mut-zur-beschraenkung


[-- Attachment #1.2: Type: text/html, Size: 1985 bytes --]

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2430 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac'
  2016-08-30 19:08 new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac' Hartmut Goebel
  2016-08-31 19:49 ` Ricardo Wurmus
@ 2016-09-01 11:44 ` Ludovic Courtès
  2016-09-01 12:46   ` Hartmut Goebel
  1 sibling, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2016-09-01 11:44 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel

Hi Hartmut,

Hartmut Goebel <h.goebel@goebel-consult.de> skribis:

> I try to build the asn1c package, see below. But this fails with the
> following error message.
>
> /gnu/store/…-automake-1.15/share/automake-1.15/am/ltlibrary.am:
> warning: 'libasn1compiler.la': linking libtool libraries using a non-POSIX
> archiver requires 'AM_PROG_AR' in 'configure.ac'
>
> Is this a common issue?
>
> (define-public asn1c
>   (package
>     (name "asn1c")
>     (version "0.9.27")
>     (source (origin
>       (method url-fetch)
>       (uri (string-append "https://lionet.info/soft/asn1c-" version
> ".tar.gz"))
>       (sha256 (base32
> "17nvn2kzvlryasr9dzqg6gs27b9lvqpval0k31pb64bjqbhn8pq2"))))

The beauty of autotools is that users do not need to install them:
tarballs contain everything one needs to configure, build, and install
the thing.

That is indeed the case here:

--8<---------------cut here---------------start------------->8---
$ wget -q -O - https://lionet.info/soft/asn1c-0.9.27.tar.gz |tar tzvf -|grep -E '/(configure|Makefile\.in)$'
-rw-r--r-- vlm/staff     25216 2015-02-13 11:37 asn1c-0.9.27/Makefile.in
-rwxr-xr-x vlm/staff    461298 2015-02-13 11:37 asn1c-0.9.27/configure
-rw-r--r-- vlm/staff     88715 2015-02-13 11:37 asn1c-0.9.27/skeletons/Makefile.in
-rw-r--r-- vlm/staff     22608 2015-02-13 11:37 asn1c-0.9.27/skeletons/tests/Makefile.in
-rw-r--r-- vlm/staff     14801 2015-02-13 11:37 asn1c-0.9.27/libasn1print/Makefile.in
-rw-r--r-- vlm/staff     16298 2015-02-13 11:37 asn1c-0.9.27/libasn1parser/Makefile.in
-rw-r--r-- vlm/staff     23109 2015-02-13 11:37 asn1c-0.9.27/libasn1fix/Makefile.in
-rw-r--r-- vlm/staff     15866 2015-02-13 11:37 asn1c-0.9.27/libasn1compiler/Makefile.in
-rw-r--r-- vlm/staff     14085 2015-02-13 11:37 asn1c-0.9.27/examples/Makefile.in
-rw-r--r-- vlm/staff     19073 2015-02-13 11:37 asn1c-0.9.27/doc/Makefile.in
-rw-r--r-- vlm/staff     10138 2015-02-13 11:37 asn1c-0.9.27/doc/docsrc/Makefile.in
-rw-r--r-- vlm/staff     29360 2015-02-13 11:37 asn1c-0.9.27/asn1c/Makefile.in
-rw-r--r-- vlm/staff     13211 2015-02-13 11:37 asn1c-0.9.27/asn1c/tests/Makefile.in
--8<---------------cut here---------------end--------------->8---

The above shows that the Autoconf- and Automake-generated files are
indeed present in the tarball, so you don’t need to use the autotools at
all.

HTH!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac'
  2016-09-01 11:44 ` Ludovic Courtès
@ 2016-09-01 12:46   ` Hartmut Goebel
  0 siblings, 0 replies; 7+ messages in thread
From: Hartmut Goebel @ 2016-09-01 12:46 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 757 bytes --]

Am 01.09.2016 um 13:44 schrieb Ludovic Courtès:
> The beauty of autotools is that users do not need to install them:
> tarballs contain everything one needs to configure, build, and install
> the thing.

I did not know. I thought it's always a good idea to run autoconf.

Removing the autotools-stuff fixed the problem. I'll submit a patch later.

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/verschlusselte-mailingslisten
Kolumne: http://www.cissp-gefluester.de/2012-02-bring-your-own-life-glosse


[-- Attachment #1.2: Type: text/html, Size: 1883 bytes --]

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2430 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-09-01 12:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-30 19:08 new package build error: archiver requires 'AM_PROG_AR' in 'configure.ac' Hartmut Goebel
2016-08-31 19:49 ` Ricardo Wurmus
2016-08-31 19:56   ` David Craven
2016-09-01  7:07     ` Hartmut Goebel
2016-09-01  7:07   ` Hartmut Goebel
2016-09-01 11:44 ` Ludovic Courtès
2016-09-01 12:46   ` Hartmut Goebel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.