This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

[SOLVED] Error with “autogen.sh” - /usr/share/aclocal ' is already registered with AC_CONFIG_FILES

0

Hi all, I'm trying to build Wireshark for Linux version but I cannot start with the script "autogen.sh". I have already installed autoconf, automake, lib-tool to fix some errors but it shows another as shown in the figure below

alt text

And the output of "sh -x ./autogen.sh" is

alt text

It seems that there is a problem with AC_CONFIG_FILES but I don't know how to fix. Please help me if you have any idea or suggestion. Thank you so much!

asked 16 Sep '13, 18:53

hoangsonk49's gravatar image

hoangsonk49
81282933
accept rate: 28%

edited 18 Sep '13, 02:56

Btw, I'm using Ubuntu, the latest version.

(16 Sep '13, 18:57) hoangsonk49

One Answer:

0

Hi all, problem solved. Most of problem caused by the EOL "^M" in the script, so you should re-write those files including: autogen, configure.ac, aclocal-flags by using this command:

  • $cp configure.ac configure.ac.bak
  • $tr -d '\r' <configure.ac.bak>configure.ac

So I will not delete this question in order to help other developers if they have the same problem. Thanks!

answered 16 Sep '13, 19:32

hoangsonk49's gravatar image

hoangsonk49
81282933
accept rate: 28%

1

You might have ^M's in that (and other) scripts if you checked out the source code using a Windows SVN client. The scripts have the SVN property eol-style set to "native."

(17 Sep '13, 06:08) JeffMorriss ♦

Yes. There are no ^Ms in the file if you check it out on a UN*X, but there will be ^Ms in the file if you check it out on Windows.

(17 Sep '13, 14:36) Guy Harris ♦♦

Yes, you are right. Thanks for your comments. Now, my code is running successfully, thanks for your help

(17 Sep '13, 18:16) hoangsonk49