[MacPorts] #35700: tesserac not building due to incorrect version of libtool
#35700: tesserac not building due to incorrect version of libtool ----------------------------------------+----------------------------------- Reporter: danieljamesbertrand@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: ----------------------------------------+----------------------------------- :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [ambigs.lo] Error 63 :info:build make[3]: *** Waiting for unfinished jobs.... :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [basedir.lo] Error 63 :info:build make[3]: *** [ccutil.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [bits16.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [elst.lo] Error 63 :info:build make[3]: *** [elst2.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [errcode.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [boxread.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [clst.lo] Error 63 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01/ccutil' :info:build make[2]: *** [all-recursive] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01/ccutil' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01" && /usr/bin/make -j9 -w all :info:build Exit code: 2 :error:build org.macports.build for port tesseract returned: command execution failed :debug:build Error code: CHILDSTATUS 48507 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for tesseract: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port tesseract for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/main.log -- Ticket URL: <https://trac.macports.org/ticket/35700> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35700: tesserac not building due to incorrect version of libtool ----------------------------------------+----------------------------------- Reporter: danieljamesbertrand@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: tesseract ----------------------------------------+----------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * owner: macports-tickets@… => emer@… * port: => tesseract Old description:
:info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [ambigs.lo] Error 63 :info:build make[3]: *** Waiting for unfinished jobs.... :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [basedir.lo] Error 63 :info:build make[3]: *** [ccutil.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [bits16.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [elst.lo] Error 63 :info:build make[3]: *** [elst2.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [errcode.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [boxread.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [clst.lo] Error 63 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01/ccutil' :info:build make[2]: *** [all-recursive] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01/ccutil' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01" && /usr/bin/make -j9 -w all :info:build Exit code: 2 :error:build org.macports.build for port tesseract returned: command execution failed :debug:build Error code: CHILDSTATUS 48507 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for tesseract: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port tesseract for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/main.log
New description: {{{ :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [ambigs.lo] Error 63 :info:build make[3]: *** Waiting for unfinished jobs.... :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [basedir.lo] Error 63 :info:build make[3]: *** [ccutil.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [bits16.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [elst.lo] Error 63 :info:build make[3]: *** [elst2.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [errcode.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [boxread.lo] Error 63 :info:build libtool: Version mismatch error. This is libtool 2.4, but the :info:build libtool: definition of this LT_INIT comes from libtool 2.4.2. :info:build libtool: You should recreate aclocal.m4 with macros from libtool 2.4 :info:build libtool: and run autoconf again. :info:build make[3]: *** [clst.lo] Error 63 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01/ccutil' :info:build make[2]: *** [all-recursive] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01/ccutil' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/work/tesseract-3.01" && /usr/bin/make -j9 -w all :info:build Exit code: 2 :error:build org.macports.build for port tesseract returned: command execution failed :debug:build Error code: CHILDSTATUS 48507 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for tesseract: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port tesseract for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_tesseract/tesseract/main.log }}} -- -- Ticket URL: <https://trac.macports.org/ticket/35700#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35700: tesserac not building due to incorrect version of libtool ----------------------------------------+----------------------------------- Reporter: danieljamesbertrand@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: tesseract ----------------------------------------+----------------------------------- Comment(by emer@…): I can't reproduce this. Can anyone else? -- Ticket URL: <https://trac.macports.org/ticket/35700#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35700: tesseract not building due to incorrect version of libtool ----------------------------------------+----------------------------------- Reporter: danieljamesbertrand@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: tesseract ----------------------------------------+----------------------------------- Comment(by ryandesign@…): Also builds fine for me. Please "sudo port clean tesseract", then try again, and attach the main.log file to this ticket if it fails again. -- Ticket URL: <https://trac.macports.org/ticket/35700#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35700: tesseract not building due to incorrect version of libtool ----------------------------------------+----------------------------------- Reporter: danieljamesbertrand@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: tesseract ----------------------------------------+----------------------------------- Comment(by ryandesign@…): Daniel emailed me his log, which I have attached to this ticket. The relevant difference seems to be that in his log configure says: {{{ :info:configure Running libtoolize :info:configure libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'. :info:configure libtoolize: copying file `config/ltmain.sh' :info:configure libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. :info:configure libtoolize: copying file `m4/libtool.m4' :info:configure libtoolize: copying file `m4/ltoptions.m4' :info:configure libtoolize: copying file `m4/ltsugar.m4' :info:configure libtoolize: copying file `m4/ltversion.m4' :info:configure libtoolize: copying file `m4/lt~obsolete.m4' }}} whereas in my log configure says: {{{ :info:configure Running libtoolize :info:configure ./autogen.sh: line 50: libtoolize: command not found :info:configure glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'. :info:configure glibtoolize: copying file `config/ltmain.sh' :info:configure glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. :info:configure glibtoolize: copying file `m4/libtool.m4' :info:configure glibtoolize: copying file `m4/ltoptions.m4' :info:configure glibtoolize: copying file `m4/ltsugar.m4' :info:configure glibtoolize: copying file `m4/ltversion.m4' :info:configure glibtoolize: copying file `m4/lt~obsolete.m4' :info:configure ./autogen.sh: line 51: libtoolize: command not found }}} Basically, on my system, configure looked for and didn't find "libtoolize", and therefore looked for and found "glibtoolize" (provided by the libtool port). This is normal and how it should be working; there's not supposed to be a "libtoolize" on OS X. But on Daniel's system, configure found and therefore used "libtoolize". So the question for Daniel is: where is "libtoolize" on your system, why is it there, where did it come from, and what happens if you remove it? -- Ticket URL: <https://trac.macports.org/ticket/35700#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35700: tesseract not building due to incorrect version of libtool ----------------------------------------+----------------------------------- Reporter: danieljamesbertrand@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: tesseract ----------------------------------------+----------------------------------- Comment(by werner@…): I had the same problem and solved it by stripping my $PATH. A newer version of "libtools" was requested by another lib, I forgot which one it was. I build and installed the newest libtool and that library build well. "libtool" installs itself in /usr/local/bin . "make" of tesseract build well after stripping the path ( was /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin ) by export PATH=/usr/bin:/bin:/usr/sbin:/sbin ./autogen.sh make Obviously nothing else in /usr/local/bin was required. Of course because of the tesseract - program is installed in /usr/local/bin you have to reset $PATH or use a new shell window before executing tesseract. -- Ticket URL: <https://trac.macports.org/ticket/35700#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35700: tesseract not building due to incorrect version of libtool ----------------------------------------+----------------------------------- Reporter: danieljamesbertrand@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: tesseract ----------------------------------------+----------------------------------- Comment(by werner@…): Sorry, I'm new here ... next try, the commands should look like: {{{ export PATH=/usr/bin:/bin:/usr/sbin:/sbin ./autogen.sh make }}} -- Ticket URL: <https://trac.macports.org/ticket/35700#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35700: tesseract not building due to incorrect version of libtool -----------------------------------------+---------------------------------- Reporter: danieljamesbertrand@… | Owner: emer@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: invalid | Keywords: Port: tesseract | -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * cc: werner@… (added) * status: new => closed * resolution: => invalid Comment: Replying to [comment:4 ryandesign@…]:
Basically, on my system, configure looked for and didn't find "libtoolize", and therefore looked for and found "glibtoolize" (provided by the libtool port). This is normal and how it should be working; there's not supposed to be a "libtoolize" on OS X. But on Daniel's system, configure found and therefore used "libtoolize". So the question for Daniel is: where is "libtoolize" on your system, why is it there, where did it come from, and what happens if you remove it?
Daniel sent me email saying removing libtoolize worked:
From: Daniel Bertrand [[br]] Subject: Re: [MacPorts] #35700: tesseract not building due to incorrect version of libtool [[br]] Date: August 17, 2012 21:20:22 CDT [[br]] [[br]] that worked. [[br]] [[br]] removed libtoolize... [[br]]
{{{ sudo port install tesseract ---> Computing dependencies for tesseract ---> Fetching archive for tesseract ---> Attempting to fetch tesseract-3.01_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/tesseract ---> Attempting to fetch tesseract-3.01_1.darwin_12.x86_64.tbz2 from http://macports.packages.ionic.de/tesseract ---> Fetching distfiles for tesseract ---> Verifying checksum(s) for tesseract ---> Extracting tesseract ---> Applying patches to tesseract ---> Configuring tesseract ---> Building tesseract ---> Staging tesseract into destroot ---> Installing tesseract @3.01_1 ---> Activating tesseract @3.01_1 ---> Cleaning tesseract ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. }}}
You are awesome, thank you for your help.
Replying to [comment:5 werner@…]:
[snip] I build and installed the newest libtool and that library build well. "libtool" installs itself in /usr/local/bin . [snip]
Installing software in /usr/local will cause problems for MacPorts, so we don't support doing that. Please ensure /usr/local is empty if you want to use MacPorts, or at least, if you want help when things go wrong. -- Ticket URL: <https://trac.macports.org/ticket/35700#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts