You are not logged in.

#1 2013-02-03 02:18:23

zuriaake
Member
Registered: 2013-01-23
Posts: 6

[SOLVED]AUR xrdp BUG

when i  try install xrdp from AUR,but some error  taken place:

configure.ac:5: error: 'AM_CONFIG_HEADER': this macro is obsolete.
    You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
configure.ac:5: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

then i install it in the way of Xrdparchwiki
changed 'AM_CONFIG_HEADER' to 'AC_CONFIG_HEADERS' in the"configure.ac" file,and type:

makepkg -s

the above error taken place as well.

finally i checked the "configure.ac" file,the 'AM_CONFIG_HEADERS' became  'AC_CONFIG_HEADER'  again!!!

Last edited by zuriaake (2013-02-03 09:34:41)

Offline

#2 2013-02-03 02:27:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED]AUR xrdp BUG

"makepkg --noextract" if you're going to be changing files.

Offline

#3 2013-02-03 02:38:56

zuriaake
Member
Registered: 2013-01-23
Posts: 6

Re: [SOLVED]AUR xrdp BUG

Scimmia wrote:

"makepkg --noextract" if you're going to be changing files.

Type:

makepkg --noextract

Then:

ln: failed to create symbolic link ‘/tmp/yaourt-tmp-asche/aur-xrdp/src/xrdp-v0.6.0/sesman/tools/config.c’: File exists
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
configure.ac:5: warning: macro 'AM_CONFIG_HEADERS' not found in library
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:5: warning: macro 'AM_CONFIG_HEADERS' not found in library
autoreconf: running: /usr/bin/autoconf --force
configure.ac:5: error: possibly undefined macro: AM_CONFIG_HEADERS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

Offline

#4 2013-02-03 02:40:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED]AUR xrdp BUG

Edit, sorry, didn't read it correctly. You misspelled the new macro name, AM vs AC

Last edited by Scimmia (2013-02-03 02:44:03)

Offline

#5 2013-02-03 02:41:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED]AUR xrdp BUG

You said you changed AM_CONFIG_HEADER to AC_CONFIG_HEADERS, but it looks like you only did half of it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2013-02-03 03:43:03

zuriaake
Member
Registered: 2013-01-23
Posts: 6

Re: [SOLVED]AUR xrdp BUG

Trilby wrote:

You said you changed AM_CONFIG_HEADER to AC_CONFIG_HEADERS, but it looks like you only did half of it.

What's Another half ?:)

Offline

#7 2013-02-03 08:46:49

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED]AUR xrdp BUG

zuriaake wrote:

changed 'AM_CONFIG_HEADER' to 'AC_CONFIG_HEADERS' in the"configure.ac" file,and type:

makepkg -s

the above error taken place as well.

finally i checked the "configure.ac" file,the 'AM_CONFIG_HEADERS' became  'AC_CONFIG_HEADER'  again!!!

You have to make the change inside the PKGBUILD:

build() {
  cd "$pkgname-v$pkgver"
  sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
  ./bootstrap
  ...
}

Well you don't have to do it this way.. it's just the easiest imo..

Last edited by tdy (2013-02-03 08:49:24)

Offline

#8 2013-02-03 09:33:20

zuriaake
Member
Registered: 2013-01-23
Posts: 6

Re: [SOLVED]AUR xrdp BUG

tdy wrote:
zuriaake wrote:

changed 'AM_CONFIG_HEADER' to 'AC_CONFIG_HEADERS' in the"configure.ac" file,and type:

makepkg -s

the above error taken place as well.

finally i checked the "configure.ac" file,the 'AM_CONFIG_HEADERS' became  'AC_CONFIG_HEADER'  again!!!

You have to make the change inside the PKGBUILD:

build() {
  cd "$pkgname-v$pkgver"
  sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
  ./bootstrap
  ...
}

Well you don't have to do it this way.. it's just the easiest imo..


THX you Very Much!!!


it works!!!!!!

Offline

#9 2013-02-03 12:01:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED]AUR xrdp BUG

The other half was that you *said* you had added the S to the end and changed the M to a C, but clearly you had only actually added the S to the end.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB