Chris Westervelt | 13 Jun 2012 14:56
Favicon

libusb

Stuart,

 

I have sent a shout out to the group to try and get some feedback on why libusb will not build for me.  No one has responded to either of my request so I was wondering if you could help me.  Below is the output I’m seeing when it builds.

 

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

./libtool: line 1132: func_opt_split: command not found

./libtool: line 1132: func_opt_split: command not found

make[2]: *** [error.lo] Error 1

make[2]: *** Waiting for unfinished jobs....

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [linux.lo] Error 1

make[2]: *** [descriptors.lo] Error 1

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [usb.lo] Error 1

make[2]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make: *** [all] Error 2

error: Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

 

 

RPM build errors:

    Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

Build time for libusb: 10 seconds

 

Failed building libusb

 

 

Chris Westervelt

Senior Product Development Engineer

Advantor Systems.
12612 Challenger Pkwy
Suite 300
Orlando, FL
32826

http://www.infrasafe.com
Office:   (407) 926-6983

Mobile: (407) 595-7023       
Fax:    (407) 857-1635

Notice of Confidentiality:
This e-mail communication and the attachments hereto, if any, are intended solely for the information and use of the addressee(s) identified above and may contain information which is legally privileged and/or otherwise confidential. If a recipient of this e-mail communication is not an addressee (or an authorized representative of an addressee), such recipient is hereby advised that any review, disclosure, reproduction, re-transmission or other dissemination or use of this e-mail communication (or any information contained herein) is strictly prohibited. If you are not an addressee and have received this e-mail communication in error, please advise the sender of that circumstance either by reply e-mail or by telephone at (800) 238-2686, immediately delete this e-mail communication from any computer and destroy all physical copies of same.

 

 

<div><div class="WordSection1">
<p class="MsoNormal">Stuart,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I have sent a shout out to the group to try and get some feedback on why libusb will not build for me.&nbsp; No one has responded to either of my request so I was wondering if you could help me.&nbsp; Below is the output I&rsquo;m seeing when it builds.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found<p></p></span></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found<p></p></span></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found<p></p></span></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found<p></p></span></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found<p></p></span></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b <p></p></span></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the<p></p></span></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.<p></p></span></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b <p></p></span></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1<p></p></span></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.<p></p></span></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found<p></p></span></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found<p></p></span></p>
<p class="MsoNormal"><span>make[2]: *** [error.lo] Error 1<p></p></span></p>
<p class="MsoNormal"><span>make[2]: *** Waiting for unfinished jobs....<p></p></span></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b <p></p></span></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the<p></p></span></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.<p></p></span></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b <p></p></span></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1<p></p></span></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.<p></p></span></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b <p></p></span></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the<p></p></span></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.<p></p></span></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b <p></p></span></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1<p></p></span></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.<p></p></span></p>
<p class="MsoNormal"><span>make[2]: *** [linux.lo] Error 1<p></p></span></p>
<p class="MsoNormal"><span>make[2]: *** [descriptors.lo] Error 1<p></p></span></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found<p></p></span></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b <p></p></span></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the<p></p></span></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.<p></p></span></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b <p></p></span></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1<p></p></span></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.<p></p></span></p>
<p class="MsoNormal"><span>make[2]: *** [usb.lo] Error 1<p></p></span></p>
<p class="MsoNormal"><span>make[2]: Leaving directory <p></p></span></p>
<p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'<p></p></span></p>
<p class="MsoNormal"><span>make[1]: *** [all-recursive] Error 1<p></p></span></p>
<p class="MsoNormal"><span>make[1]: Leaving directory <p></p></span></p>
<p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'<p></p></span></p>
<p class="MsoNormal"><span>make: *** [all] Error 2<p></p></span></p>
<p class="MsoNormal"><span>error: Bad exit status from <p></p></span></p>
<p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>RPM build errors:<p></p></span></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; Bad exit status from <p></p></span></p>
<p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)<p></p></span></p>
<p class="MsoNormal"><span>Build time for libusb: 10 seconds<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Failed building libusb<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>Chris Westervelt</span><span><p></p></span></p>
<p class="MsoNormal"><span>Senior Product Development Engineer</span><span><p></p></span></p>
<p class="MsoNormal"><span>Advantor Systems.<br>12612 Challenger Pkwy<br>Suite 300<br>Orlando, FL<br>32826</span><span><p></p></span></p>
<p class="MsoNormal"><span><a href="http://www.infrasafe.com/"><span>http://www.infrasafe.com</span></a><br>Office: &nbsp; (407) 926-6983<p></p></span></p>
<p class="MsoNormal"><span>Mobile: (407) 595-7023&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>Fax:&nbsp;&nbsp;&nbsp; (407) 857-1635</span><span> <br></span><span>Notice of Confidentiality:</span><span> <br></span><span>This e-mail communication and the attachments hereto, if any, are intended solely for the information and use of the addressee(s) identified above and may contain information which is legally privileged and/or otherwise confidential. If a recipient of this e-mail communication is not an addressee (or an authorized representative of an addressee), such recipient is hereby advised that any review, disclosure, reproduction, re-transmission or other dissemination or use of this e-mail communication (or any information contained herein) is strictly prohibited. If you are not an addressee and have received this e-mail communication in error, please advise the sender of that circumstance either by reply e-mail or by telephone at (800) 238-2686, immediately delete this e-mail communication from any computer and destroy all physical copies of same.<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div></div>
Stuart Hughes | 14 Jun 2012 09:53

Re: libusb

Hi Chris,

I'm not sure why that package is running libtoolize, normally this is only for the developer IIRC and packagers should just be using the pre-generated 'configure' etc.

Can you try this patch (remove the libtoolize line from the .spec file):

$ cvs diff -u dist/lfs-5.1/libusb/libusb.spec
Index: dist/lfs-5.1/libusb/libusb.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/libusb/libusb.spec,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 libusb.spec
--- dist/lfs-5.1/libusb/libusb.spec    5 Dec 2008 14:25:45 -0000    1.1.1.4
+++ dist/lfs-5.1/libusb/libusb.spec    14 Jun 2012 07:51:45 -0000
<at> <at> -17,7 +17,7 <at> <at>
 
 %Prep
 %setup
-libtoolize --copy --force
+#libtoolize --copy --force
 
 %Build
 # note: I tried version 0.1.10a buy this requires a c++ compiler

Regards, Stuart


On 13/06/12 13:56, Chris Westervelt wrote:

Stuart,

 

I have sent a shout out to the group to try and get some feedback on why libusb will not build for me.  No one has responded to either of my request so I was wondering if you could help me.  Below is the output I’m seeing when it builds.

 

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

./libtool: line 1132: func_opt_split: command not found

./libtool: line 1132: func_opt_split: command not found

make[2]: *** [error.lo] Error 1

make[2]: *** Waiting for unfinished jobs....

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [linux.lo] Error 1

make[2]: *** [descriptors.lo] Error 1

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [usb.lo] Error 1

make[2]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make: *** [all] Error 2

error: Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

 

 

RPM build errors:

    Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

Build time for libusb: 10 seconds

 

Failed building libusb

 

 

Chris Westervelt



<div>
    Hi Chris,<br><br>
    I'm not sure why that package is running libtoolize, normally this
    is only for the developer IIRC and packagers should just be using
    the pre-generated 'configure' etc.<br><br>
    Can you try this patch (remove the libtoolize line from the .spec
    file):<br><br>$ cvs diff -u dist/lfs-5.1/libusb/libusb.spec<br>
      Index: dist/lfs-5.1/libusb/libusb.spec<br>
===================================================================<br>
      RCS file: /sources/ltib/ltib/dist/lfs-5.1/libusb/libusb.spec,v<br>
      retrieving revision 1.1.1.4<br>
      diff -u -r1.1.1.4 libusb.spec<br>
      --- dist/lfs-5.1/libusb/libusb.spec&nbsp;&nbsp;&nbsp; 5 Dec 2008 14:25:45
      -0000&nbsp;&nbsp;&nbsp; 1.1.1.4<br>
      +++ dist/lfs-5.1/libusb/libusb.spec&nbsp;&nbsp;&nbsp; 14 Jun 2012 07:51:45 -0000<br>
       <at>  <at>  -17,7 +17,7  <at>  <at> <br>
      &nbsp;<br>
      &nbsp;%Prep<br>
      &nbsp;%setup <br>
      -libtoolize --copy --force<br>
      +#libtoolize --copy --force<br>
      &nbsp;<br>
      &nbsp;%Build<br>
      &nbsp;# note: I tried version 0.1.10a buy this requires a c++ compiler<br><br>
    Regards, Stuart<br><br><br>
    On 13/06/12 13:56, Chris Westervelt wrote:
    <blockquote cite="mid:D271C595384A864AAC5EF42FB5CE5F77046D223FB7 <at> AUSP01VMBX12.collaborationhost.net" type="cite">
      <div class="WordSection1">
        <p class="MsoNormal">Stuart,<p></p></p>
        <p class="MsoNormal"><p>&nbsp;</p></p>
        <p class="MsoNormal">I have sent a shout out to the group to try
          and get some feedback on why libusb will not build for me.&nbsp; No
          one has responded to either of my request so I was wondering
          if you could help me.&nbsp; Below is the output I&rsquo;m seeing when it
          builds.<p></p></p>
        <p class="MsoNormal"><p>&nbsp;</p></p>
        <p class="MsoNormal"><span>./libtool: line 454: CDPATH:
            command not found<p></p></span></p>
        <p class="MsoNormal"><span>./libtool: line 454: CDPATH:
            command not found<p></p></span></p>
        <p class="MsoNormal"><span>./libtool: line 454: CDPATH:
            command not found<p></p></span></p>
        <p class="MsoNormal"><span>./libtool: line 454: CDPATH:
            command not found<p></p></span></p>
        <p class="MsoNormal"><span>./libtool: line 1132:
            func_opt_split: command not found<p></p></span></p>
        <p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp;
            This is libtool 2.2.6b <p></p></span></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the<p></p></span></p>
        <p class="MsoNormal"><span>libtool: definition of this
            LT_INIT comes from an older release.<p></p></span></p>
        <p class="MsoNormal"><span>libtool: You should recreate
            aclocal.m4 with macros from libtool 2.2.6b <p></p></span></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1<p></p></span></p>
        <p class="MsoNormal"><span>libtool: and run autoconf again.<p></p></span></p>
        <p class="MsoNormal"><span>./libtool: line 1132:
            func_opt_split: command not found<p></p></span></p>
        <p class="MsoNormal"><span>./libtool: line 1132:
            func_opt_split: command not found<p></p></span></p>
        <p class="MsoNormal"><span>make[2]: *** [error.lo] Error 1<p></p></span></p>
        <p class="MsoNormal"><span>make[2]: *** Waiting for
            unfinished jobs....<p></p></span></p>
        <p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp;
            This is libtool 2.2.6b <p></p></span></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the<p></p></span></p>
        <p class="MsoNormal"><span>libtool: definition of this
            LT_INIT comes from an older release.<p></p></span></p>
        <p class="MsoNormal"><span>libtool: You should recreate
            aclocal.m4 with macros from libtool 2.2.6b <p></p></span></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1<p></p></span></p>
        <p class="MsoNormal"><span>libtool: and run autoconf again.<p></p></span></p>
        <p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp;
            This is libtool 2.2.6b <p></p></span></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the<p></p></span></p>
        <p class="MsoNormal"><span>libtool: definition of this
            LT_INIT comes from an older release.<p></p></span></p>
        <p class="MsoNormal"><span>libtool: You should recreate
            aclocal.m4 with macros from libtool 2.2.6b <p></p></span></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1<p></p></span></p>
        <p class="MsoNormal"><span>libtool: and run autoconf again.<p></p></span></p>
        <p class="MsoNormal"><span>make[2]: *** [linux.lo] Error 1<p></p></span></p>
        <p class="MsoNormal"><span>make[2]: *** [descriptors.lo]
            Error 1<p></p></span></p>
        <p class="MsoNormal"><span>./libtool: line 1132:
            func_opt_split: command not found<p></p></span></p>
        <p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp;
            This is libtool 2.2.6b <p></p></span></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the<p></p></span></p>
        <p class="MsoNormal"><span>libtool: definition of this
            LT_INIT comes from an older release.<p></p></span></p>
        <p class="MsoNormal"><span>libtool: You should recreate
            aclocal.m4 with macros from libtool 2.2.6b <p></p></span></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1<p></p></span></p>
        <p class="MsoNormal"><span>libtool: and run autoconf again.<p></p></span></p>
        <p class="MsoNormal"><span>make[2]: *** [usb.lo] Error 1<p></p></span></p>
        <p class="MsoNormal"><span>make[2]: Leaving directory <p></p></span></p>
        <p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'<p></p></span></p>
        <p class="MsoNormal"><span>make[1]: *** [all-recursive] Error
            1<p></p></span></p>
        <p class="MsoNormal"><span>make[1]: Leaving directory <p></p></span></p>
        <p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'<p></p></span></p>
        <p class="MsoNormal"><span>make: *** [all] Error 2<p></p></span></p>
        <p class="MsoNormal"><span>error: Bad exit status from <p></p></span></p>
        <p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599
            (%build)<p></p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <p class="MsoNormal"><span>RPM build errors:<p></p></span></p>
        <p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; Bad exit status from <p></p></span></p>
        <p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599
            (%build)<p></p></span></p>
        <p class="MsoNormal"><span>Build time for libusb: 10 seconds<p></p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <p class="MsoNormal"><span>Failed building libusb<p></p></span></p>
        <p class="MsoNormal"><p>&nbsp;</p></p>
        <p class="MsoNormal"><p>&nbsp;</p></p>
        <p class="MsoNormal"><span>Chris Westervelt</span><span><p></p></span></p>
        <br>
</div>
    </blockquote>
    <br>
</div>
Chris Westervelt | 14 Jun 2012 16:47
Favicon

Re: libusb

Tried the patch but same results.  I know the latest CVS files will build if I run it on a Ubuntu 12.04 machine but not on my 10.04 machine

 

From: Stuart Hughes [mailto:seh <at> zee2.com]
Sent: Thursday, June 14, 2012 3:53 AM
To: Chris Westervelt
Cc: ltib <at> nongnu.org
Subject: Re: [Ltib] libusb

 

Hi Chris,

I'm not sure why that package is running libtoolize, normally this is only for the developer IIRC and packagers should just be using the pre-generated 'configure' etc.

Can you try this patch (remove the libtoolize line from the .spec file):

$ cvs diff -u dist/lfs-5.1/libusb/libusb.spec
Index: dist/lfs-5.1/libusb/libusb.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/libusb/libusb.spec,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 libusb.spec
--- dist/lfs-5.1/libusb/libusb.spec    5 Dec 2008 14:25:45 -0000    1.1.1.4
+++ dist/lfs-5.1/libusb/libusb.spec    14 Jun 2012 07:51:45 -0000
<at> <at> -17,7 +17,7 <at> <at>
 
 %Prep
 %setup
-libtoolize --copy --force
+#libtoolize --copy --force
 
 %Build
 # note: I tried version 0.1.10a buy this requires a c++ compiler


Regards, Stuart


On 13/06/12 13:56, Chris Westervelt wrote:

Stuart,

 

I have sent a shout out to the group to try and get some feedback on why libusb will not build for me.  No one has responded to either of my request so I was wondering if you could help me.  Below is the output I’m seeing when it builds.

 

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

./libtool: line 1132: func_opt_split: command not found

./libtool: line 1132: func_opt_split: command not found

make[2]: *** [error.lo] Error 1

make[2]: *** Waiting for unfinished jobs....

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [linux.lo] Error 1

make[2]: *** [descriptors.lo] Error 1

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [usb.lo] Error 1

make[2]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make: *** [all] Error 2

error: Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

 

 

RPM build errors:

    Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

Build time for libusb: 10 seconds

 

Failed building libusb

 

 

Chris Westervelt

 

 

<div><div class="WordSection1">
<p class="MsoNormal"><span>Tried the patch but same results.&nbsp; I know the latest CVS files will build if I run it on a Ubuntu 12.04 machine but not on my 10.04 machine<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<div><div><p class="MsoNormal"><span>From:</span><span> Stuart Hughes [mailto:seh <at> zee2.com] <br>Sent: Thursday, June 14, 2012 3:53 AM<br>To: Chris Westervelt<br>Cc: ltib <at> nongnu.org<br>Subject: Re: [Ltib] libusb<p></p></span></p></div></div>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Hi Chris,<br><br>I'm not sure why that package is running libtoolize, normally this is only for the developer IIRC and packagers should just be using the pre-generated 'configure' etc.<br><br>Can you try this patch (remove the libtoolize line from the .spec file):<br><br><span>$ cvs diff -u dist/lfs-5.1/libusb/libusb.spec</span><span><br>Index: dist/lfs-5.1/libusb/libusb.spec<br>===================================================================<br>RCS file: /sources/ltib/ltib/dist/lfs-5.1/libusb/libusb.spec,v<br>retrieving revision 1.1.1.4<br>diff -u -r1.1.1.4 libusb.spec<br>--- dist/lfs-5.1/libusb/libusb.spec&nbsp;&nbsp;&nbsp; 5 Dec 2008 14:25:45 -0000&nbsp;&nbsp;&nbsp; 1.1.1.4<br>+++ dist/lfs-5.1/libusb/libusb.spec&nbsp;&nbsp;&nbsp; 14 Jun 2012 07:51:45 -0000<br> <at>  <at>  -17,7 +17,7  <at>  <at> <br>&nbsp;<br>&nbsp;%Prep<br>&nbsp;%setup <br>-libtoolize --copy --force<br>+#libtoolize --copy --force<br>&nbsp;<br>&nbsp;%Build<br>&nbsp;# note: I tried version 0.1.10a buy this requires a c++ compiler</span><br><br>Regards, Stuart<br><br><br>On 13/06/12 13:56, Chris Westervelt wrote: <p></p></p>
<p class="MsoNormal">Stuart,<p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal">I have sent a shout out to the group to try and get some feedback on why libusb will not build for me.&nbsp; No one has responded to either of my request so I was wondering if you could help me.&nbsp; Below is the output I&rsquo;m seeing when it builds.<p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found</span><p></p></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.</span><p></p></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** [error.lo] Error 1</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** Waiting for unfinished jobs....</span><p></p></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.</span><p></p></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.</span><p></p></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** [linux.lo] Error 1</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** [descriptors.lo] Error 1</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found</span><p></p></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.</span><p></p></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** [usb.lo] Error 1</span><p></p></p>
<p class="MsoNormal"><span>make[2]: Leaving directory </span><p></p></p>
<p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'</span><p></p></p>
<p class="MsoNormal"><span>make[1]: *** [all-recursive] Error 1</span><p></p></p>
<p class="MsoNormal"><span>make[1]: Leaving directory </span><p></p></p>
<p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'</span><p></p></p>
<p class="MsoNormal"><span>make: *** [all] Error 2</span><p></p></p>
<p class="MsoNormal"><span>error: Bad exit status from </span><p></p></p>
<p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)</span><p></p></p>
<p class="MsoNormal"><span>&nbsp;</span><p></p></p>
<p class="MsoNormal"><span>&nbsp;</span><p></p></p>
<p class="MsoNormal"><span>RPM build errors:</span><p></p></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; Bad exit status from </span><p></p></p>
<p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)</span><p></p></p>
<p class="MsoNormal"><span>Build time for libusb: 10 seconds</span><p></p></p>
<p class="MsoNormal"><span>&nbsp;</span><p></p></p>
<p class="MsoNormal"><span>Failed building libusb</span><p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal"><span>Chris Westervelt</span><p></p></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
</div></div>
Chris Westervelt | 15 Jun 2012 20:38
Favicon

Re: libusb

Ok I slept on this one for a few days and here’s what I did.  I decided to delete the rpm/BUILD/libusb directory and low and behold it built.  Some days I just can’t get enough of LTIB and other days I just feel like retiring and going fishing.

 

From: Chris Westervelt
Sent: Thursday, June 14, 2012 10:47 AM
To: 'Stuart Hughes'
Cc: ltib <at> nongnu.org
Subject: RE: [Ltib] libusb

 

Tried the patch but same results.  I know the latest CVS files will build if I run it on a Ubuntu 12.04 machine but not on my 10.04 machine

 

From: Stuart Hughes [mailto:seh <at> zee2.com]
Sent: Thursday, June 14, 2012 3:53 AM
To: Chris Westervelt
Cc: ltib <at> nongnu.org
Subject: Re: [Ltib] libusb

 

Hi Chris,

I'm not sure why that package is running libtoolize, normally this is only for the developer IIRC and packagers should just be using the pre-generated 'configure' etc.

Can you try this patch (remove the libtoolize line from the .spec file):

$ cvs diff -u dist/lfs-5.1/libusb/libusb.spec
Index: dist/lfs-5.1/libusb/libusb.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/libusb/libusb.spec,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 libusb.spec
--- dist/lfs-5.1/libusb/libusb.spec    5 Dec 2008 14:25:45 -0000    1.1.1.4
+++ dist/lfs-5.1/libusb/libusb.spec    14 Jun 2012 07:51:45 -0000
<at> <at> -17,7 +17,7 <at> <at>
 
 %Prep
 %setup
-libtoolize --copy --force
+#libtoolize --copy --force
 
 %Build
 # note: I tried version 0.1.10a buy this requires a c++ compiler


Regards, Stuart


On 13/06/12 13:56, Chris Westervelt wrote:

Stuart,

 

I have sent a shout out to the group to try and get some feedback on why libusb will not build for me.  No one has responded to either of my request so I was wondering if you could help me.  Below is the output I’m seeing when it builds.

 

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

./libtool: line 1132: func_opt_split: command not found

./libtool: line 1132: func_opt_split: command not found

make[2]: *** [error.lo] Error 1

make[2]: *** Waiting for unfinished jobs....

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [linux.lo] Error 1

make[2]: *** [descriptors.lo] Error 1

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [usb.lo] Error 1

make[2]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make: *** [all] Error 2

error: Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

 

 

RPM build errors:

    Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

Build time for libusb: 10 seconds

 

Failed building libusb

 

 

Chris Westervelt

 

 

<div><div class="WordSection1">
<p class="MsoNormal"><span>Ok I slept on this one for a few days and here&rsquo;s what I did.&nbsp; I decided to delete the rpm/BUILD/libusb directory and low and behold it built.&nbsp; Some days I just can&rsquo;t get enough of LTIB and other days I just feel like retiring and going fishing.<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<div><div><p class="MsoNormal"><span>From:</span><span> Chris Westervelt <br>Sent: Thursday, June 14, 2012 10:47 AM<br>To: 'Stuart Hughes'<br>Cc: ltib <at> nongnu.org<br>Subject: RE: [Ltib] libusb<p></p></span></p></div></div>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>Tried the patch but same results.&nbsp; I know the latest CVS files will build if I run it on a Ubuntu 12.04 machine but not on my 10.04 machine<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<div><div><p class="MsoNormal"><span>From:</span><span> Stuart Hughes <a href="mailto:%5Bmailto:seh <at> zee2.com%5D">[mailto:seh <at> zee2.com]</a> <br>Sent: Thursday, June 14, 2012 3:53 AM<br>To: Chris Westervelt<br>Cc: <a href="mailto:ltib <at> nongnu.org">ltib <at> nongnu.org</a><br>Subject: Re: [Ltib] libusb<p></p></span></p></div></div>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Hi Chris,<br><br>I'm not sure why that package is running libtoolize, normally this is only for the developer IIRC and packagers should just be using the pre-generated 'configure' etc.<br><br>Can you try this patch (remove the libtoolize line from the .spec file):<br><br><span>$ cvs diff -u dist/lfs-5.1/libusb/libusb.spec</span><span><br>Index: dist/lfs-5.1/libusb/libusb.spec<br>===================================================================<br>RCS file: /sources/ltib/ltib/dist/lfs-5.1/libusb/libusb.spec,v<br>retrieving revision 1.1.1.4<br>diff -u -r1.1.1.4 libusb.spec<br>--- dist/lfs-5.1/libusb/libusb.spec&nbsp;&nbsp;&nbsp; 5 Dec 2008 14:25:45 -0000&nbsp;&nbsp;&nbsp; 1.1.1.4<br>+++ dist/lfs-5.1/libusb/libusb.spec&nbsp;&nbsp;&nbsp; 14 Jun 2012 07:51:45 -0000<br> <at>  <at>  -17,7 +17,7  <at>  <at> <br>&nbsp;<br>&nbsp;%Prep<br>&nbsp;%setup <br>-libtoolize --copy --force<br>+#libtoolize --copy --force<br>&nbsp;<br>&nbsp;%Build<br>&nbsp;# note: I tried version 0.1.10a buy this requires a c++ compiler</span><br><br>Regards, Stuart<br><br><br>On 13/06/12 13:56, Chris Westervelt wrote: <p></p></p>
<p class="MsoNormal">Stuart,<p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal">I have sent a shout out to the group to try and get some feedback on why libusb will not build for me.&nbsp; No one has responded to either of my request so I was wondering if you could help me.&nbsp; Below is the output I&rsquo;m seeing when it builds.<p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 454: CDPATH: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found</span><p></p></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.</span><p></p></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** [error.lo] Error 1</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** Waiting for unfinished jobs....</span><p></p></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.</span><p></p></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.</span><p></p></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** [linux.lo] Error 1</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** [descriptors.lo] Error 1</span><p></p></p>
<p class="MsoNormal"><span>./libtool: line 1132: func_opt_split: command not found</span><p></p></p>
<p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp; This is libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
<p class="MsoNormal"><span>libtool: definition of this LT_INIT comes from an older release.</span><p></p></p>
<p class="MsoNormal"><span>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
<p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
<p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
<p class="MsoNormal"><span>make[2]: *** [usb.lo] Error 1</span><p></p></p>
<p class="MsoNormal"><span>make[2]: Leaving directory </span><p></p></p>
<p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'</span><p></p></p>
<p class="MsoNormal"><span>make[1]: *** [all-recursive] Error 1</span><p></p></p>
<p class="MsoNormal"><span>make[1]: Leaving directory </span><p></p></p>
<p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'</span><p></p></p>
<p class="MsoNormal"><span>make: *** [all] Error 2</span><p></p></p>
<p class="MsoNormal"><span>error: Bad exit status from </span><p></p></p>
<p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)</span><p></p></p>
<p class="MsoNormal"><span>&nbsp;</span><p></p></p>
<p class="MsoNormal"><span>&nbsp;</span><p></p></p>
<p class="MsoNormal"><span>RPM build errors:</span><p></p></p>
<p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; Bad exit status from </span><p></p></p>
<p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)</span><p></p></p>
<p class="MsoNormal"><span>Build time for libusb: 10 seconds</span><p></p></p>
<p class="MsoNormal"><span>&nbsp;</span><p></p></p>
<p class="MsoNormal"><span>Failed building libusb</span><p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal">&nbsp;<p></p></p>
<p class="MsoNormal"><span>Chris Westervelt</span><p></p></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
</div></div>
Stuart Hughes | 18 Jun 2012 09:49

Re: libusb

Hi Chris,

Me too :-)

The thing to remember here is that once a package has unpacked and failed, the source code is left so that you can look at it and fix it.  In this case, because the source code was there, a re-try would just re-run the failed prior build (where the libtoolize had already written incompatible stuff).  Removing the build tree allowed a fresh build without the spec file trying to do the libtoolize stuff.

Regards, Stuart


On 15/06/12 19:38, Chris Westervelt wrote:

Ok I slept on this one for a few days and here’s what I did.  I decided to delete the rpm/BUILD/libusb directory and low and behold it built.  Some days I just can’t get enough of LTIB and other days I just feel like retiring and going fishing.

 

From: Chris Westervelt
Sent: Thursday, June 14, 2012 10:47 AM
To: 'Stuart Hughes'
Cc: ltib <at> nongnu.org
Subject: RE: [Ltib] libusb

 

Tried the patch but same results.  I know the latest CVS files will build if I run it on a Ubuntu 12.04 machine but not on my 10.04 machine

 

From: Stuart Hughes [mailto:seh <at> zee2.com]
Sent: Thursday, June 14, 2012 3:53 AM
To: Chris Westervelt
Cc: ltib <at> nongnu.org
Subject: Re: [Ltib] libusb

 

Hi Chris,

I'm not sure why that package is running libtoolize, normally this is only for the developer IIRC and packagers should just be using the pre-generated 'configure' etc.

Can you try this patch (remove the libtoolize line from the .spec file):

$ cvs diff -u dist/lfs-5.1/libusb/libusb.spec
Index: dist/lfs-5.1/libusb/libusb.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/libusb/libusb.spec,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 libusb.spec
--- dist/lfs-5.1/libusb/libusb.spec    5 Dec 2008 14:25:45 -0000    1.1.1.4
+++ dist/lfs-5.1/libusb/libusb.spec    14 Jun 2012 07:51:45 -0000
<at> <at> -17,7 +17,7 <at> <at>
 
 %Prep
 %setup
-libtoolize --copy --force
+#libtoolize --copy --force
 
 %Build
 # note: I tried version 0.1.10a buy this requires a c++ compiler


Regards, Stuart


On 13/06/12 13:56, Chris Westervelt wrote:

Stuart,

 

I have sent a shout out to the group to try and get some feedback on why libusb will not build for me.  No one has responded to either of my request so I was wondering if you could help me.  Below is the output I’m seeing when it builds.

 

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 454: CDPATH: command not found

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

./libtool: line 1132: func_opt_split: command not found

./libtool: line 1132: func_opt_split: command not found

make[2]: *** [error.lo] Error 1

make[2]: *** Waiting for unfinished jobs....

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [linux.lo] Error 1

make[2]: *** [descriptors.lo] Error 1

./libtool: line 1132: func_opt_split: command not found

libtool: Version mismatch error.  This is libtool 2.2.6b

Debian-2.2.6b-2ubuntu1, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b

Debian-2.2.6b-2ubuntu1

libtool: and run autoconf again.

make[2]: *** [usb.lo] Error 1

make[2]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory

`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'

make: *** [all] Error 2

error: Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

 

 

RPM build errors:

    Bad exit status from

/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599 (%build)

Build time for libusb: 10 seconds

 

Failed building libusb

 

 

Chris Westervelt

 

 


<div>
    Hi Chris,<br><br>
    Me too :-)<br><br>
    The thing to remember here is that once a package has unpacked and
    failed, the source code is left so that you can look at it and fix
    it.&nbsp; In this case, because the source code was there, a re-try would
    just re-run the failed prior build (where the libtoolize had already
    written incompatible stuff).&nbsp; Removing the build tree allowed a
    fresh build without the spec file trying to do the libtoolize stuff.<br><br>
    Regards, Stuart<br><br><br>
    On 15/06/12 19:38, Chris Westervelt wrote:
    <blockquote cite="mid:D271C595384A864AAC5EF42FB5CE5F77046D37C408 <at> AUSP01VMBX12.collaborationhost.net" type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span>Ok I
            slept on this one for a few days and here&rsquo;s what I did.&nbsp; I
            decided to delete the rpm/BUILD/libusb directory and low and
            behold it built.&nbsp; Some days I just can&rsquo;t get enough of LTIB
            and other days I just feel like retiring and going fishing.<p></p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <div>
          <div>
            <p class="MsoNormal"><span>From:</span><span> Chris Westervelt <br>Sent: Thursday, June 14, 2012 10:47 AM<br>To: 'Stuart Hughes'<br>Cc: <a class="moz-txt-link-abbreviated" href="mailto:ltib <at> nongnu.org">ltib <at> nongnu.org</a><br>Subject: RE: [Ltib] libusb<p></p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><p>&nbsp;</p></p>
        <p class="MsoNormal"><span>Tried
            the patch but same results.&nbsp; I know the latest CVS files
            will build if I run it on a Ubuntu 12.04 machine but not on
            my 10.04 machine<p></p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <div>
          <div>
            <p class="MsoNormal"><span>From:</span><span> Stuart Hughes <a moz-do-not-send="true" href="mailto:%5Bmailto:seh <at> zee2.com%5D">[mailto:seh <at> zee2.com]</a>
                <br>Sent: Thursday, June 14, 2012 3:53 AM<br>To: Chris Westervelt<br>Cc: <a moz-do-not-send="true" href="mailto:ltib <at> nongnu.org">ltib <at> nongnu.org</a><br>Subject: Re: [Ltib] libusb<p></p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><p>&nbsp;</p></p>
        <p class="MsoNormal">Hi Chris,<br><br>
          I'm not sure why that package is running libtoolize, normally
          this is only for the developer IIRC and packagers should just
          be using the pre-generated 'configure' etc.<br><br>
          Can you try this patch (remove the libtoolize line from the
          .spec file):<br><br><span>$ cvs diff -u
              dist/lfs-5.1/libusb/libusb.spec</span><span><br>Index: dist/lfs-5.1/libusb/libusb.spec<br>===================================================================<br>RCS file:
              /sources/ltib/ltib/dist/lfs-5.1/libusb/libusb.spec,v<br>retrieving revision 1.1.1.4<br>diff -u -r1.1.1.4 libusb.spec<br>--- dist/lfs-5.1/libusb/libusb.spec&nbsp;&nbsp;&nbsp; 5 Dec 2008
              14:25:45 -0000&nbsp;&nbsp;&nbsp; 1.1.1.4<br>+++ dist/lfs-5.1/libusb/libusb.spec&nbsp;&nbsp;&nbsp; 14 Jun 2012
              07:51:45 -0000<br> <at>  <at>  -17,7 +17,7  <at>  <at> <br>&nbsp;<br>&nbsp;%Prep<br>&nbsp;%setup <br>-libtoolize --copy --force<br>+#libtoolize --copy --force<br>&nbsp;<br>&nbsp;%Build<br>&nbsp;# note: I tried version 0.1.10a buy this requires a c++
              compiler</span><br><br>
          Regards, Stuart<br><br><br>
          On 13/06/12 13:56, Chris Westervelt wrote: <p></p></p>
        <p class="MsoNormal">Stuart,<p></p></p>
        <p class="MsoNormal">&nbsp;<p></p></p>
        <p class="MsoNormal">I have sent a shout out to the group to try
          and get some feedback on why libusb will not build for me.&nbsp; No
          one has responded to either of my request so I was wondering
          if you could help me.&nbsp; Below is the output I&rsquo;m seeing when it
          builds.<p></p></p>
        <p class="MsoNormal">&nbsp;<p></p></p>
        <p class="MsoNormal"><span>./libtool: line 454: CDPATH:
            command not found</span><p></p></p>
        <p class="MsoNormal"><span>./libtool: line 454: CDPATH:
            command not found</span><p></p></p>
        <p class="MsoNormal"><span>./libtool: line 454: CDPATH:
            command not found</span><p></p></p>
        <p class="MsoNormal"><span>./libtool: line 454: CDPATH:
            command not found</span><p></p></p>
        <p class="MsoNormal"><span>./libtool: line 1132:
            func_opt_split: command not found</span><p></p></p>
        <p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp;
            This is libtool 2.2.6b </span><p></p></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
        <p class="MsoNormal"><span>libtool: definition of this
            LT_INIT comes from an older release.</span><p></p></p>
        <p class="MsoNormal"><span>libtool: You should recreate
            aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
        <p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
        <p class="MsoNormal"><span>./libtool: line 1132:
            func_opt_split: command not found</span><p></p></p>
        <p class="MsoNormal"><span>./libtool: line 1132:
            func_opt_split: command not found</span><p></p></p>
        <p class="MsoNormal"><span>make[2]: *** [error.lo] Error 1</span><p></p></p>
        <p class="MsoNormal"><span>make[2]: *** Waiting for
            unfinished jobs....</span><p></p></p>
        <p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp;
            This is libtool 2.2.6b </span><p></p></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
        <p class="MsoNormal"><span>libtool: definition of this
            LT_INIT comes from an older release.</span><p></p></p>
        <p class="MsoNormal"><span>libtool: You should recreate
            aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
        <p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
        <p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp;
            This is libtool 2.2.6b </span><p></p></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
        <p class="MsoNormal"><span>libtool: definition of this
            LT_INIT comes from an older release.</span><p></p></p>
        <p class="MsoNormal"><span>libtool: You should recreate
            aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
        <p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
        <p class="MsoNormal"><span>make[2]: *** [linux.lo] Error 1</span><p></p></p>
        <p class="MsoNormal"><span>make[2]: *** [descriptors.lo]
            Error 1</span><p></p></p>
        <p class="MsoNormal"><span>./libtool: line 1132:
            func_opt_split: command not found</span><p></p></p>
        <p class="MsoNormal"><span>libtool: Version mismatch error.&nbsp;
            This is libtool 2.2.6b </span><p></p></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1, but the</span><p></p></p>
        <p class="MsoNormal"><span>libtool: definition of this
            LT_INIT comes from an older release.</span><p></p></p>
        <p class="MsoNormal"><span>libtool: You should recreate
            aclocal.m4 with macros from libtool 2.2.6b </span><p></p></p>
        <p class="MsoNormal"><span>Debian-2.2.6b-2ubuntu1</span><p></p></p>
        <p class="MsoNormal"><span>libtool: and run autoconf again.</span><p></p></p>
        <p class="MsoNormal"><span>make[2]: *** [usb.lo] Error 1</span><p></p></p>
        <p class="MsoNormal"><span>make[2]: Leaving directory </span><p></p></p>
        <p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'</span><p></p></p>
        <p class="MsoNormal"><span>make[1]: *** [all-recursive] Error
            1</span><p></p></p>
        <p class="MsoNormal"><span>make[1]: Leaving directory </span><p></p></p>
        <p class="MsoNormal"><span>`/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/rpm/BUILD/libusb-0.1.8'</span><p></p></p>
        <p class="MsoNormal"><span>make: *** [all] Error 2</span><p></p></p>
        <p class="MsoNormal"><span>error: Bad exit status from </span><p></p></p>
        <p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599
            (%build)</span><p></p></p>
        <p class="MsoNormal"><span>&nbsp;</span><p></p></p>
        <p class="MsoNormal"><span>&nbsp;</span><p></p></p>
        <p class="MsoNormal"><span>RPM build errors:</span><p></p></p>
        <p class="MsoNormal"><span>&nbsp;&nbsp;&nbsp; Bad exit status from </span><p></p></p>
        <p class="MsoNormal"><span>/home/chris/Desktop/ltib-igii-34-dev/ltib-igii/ltib/tmp/rpm-tmp.30599
            (%build)</span><p></p></p>
        <p class="MsoNormal"><span>Build time for libusb: 10 seconds</span><p></p></p>
        <p class="MsoNormal"><span>&nbsp;</span><p></p></p>
        <p class="MsoNormal"><span>Failed building libusb</span><p></p></p>
        <p class="MsoNormal">&nbsp;<p></p></p>
        <p class="MsoNormal">&nbsp;<p></p></p>
        <p class="MsoNormal"><span>Chris Westervelt</span><p></p></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
        <p class="MsoNormal"><span><p>&nbsp;</p></span></p>
      </div>
    </blockquote>
    <br>
</div>

Gmane