[oe] problems building openldap and libtool

Khem Raj raj.khem at gmail.com
Thu Nov 4 01:37:03 UTC 2010


On Wed, Nov 3, 2010 at 5:46 PM, J. L. <vwyodapink at gmail.com> wrote:
> On Wed, Nov 3, 2010 at 4:48 PM, Khem Raj <raj.khem at gmail.com> wrote:
>> On Wed, Nov 3, 2010 at 4:36 PM, J. L. <vwyodapink at gmail.com> wrote:
>>> On Wed, Nov 3, 2010 at 4:24 PM, Khem Raj <raj.khem at gmail.com> wrote:
>>>> On Wed, Nov 3, 2010 at 3:55 PM, J. L. <vwyodapink at gmail.com> wrote:
>>>>> I am having an issue of how libtool is building on my machine. I am
>>>>> running Ubuntu 10.10 64bit Kernel 2.6.35-23-generic bitbake 1.10.1
>>>>> overo branch. Here is what happens when building:
>>>>>
>>>>> Error for openldap
>>>>> NOTE: package openldap-2.4.23-r2: task do_configure: Started
>>>>> ERROR: Function do_configure failed
>>>>> NOTE: Task failed: ('function do_configure failed',
>>>>> '/home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.do_configure.12815')
>>>>> ERROR: Logfile of failure stored in:
>>>>> /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.do_configure.12815
>>>>> Log data follows:
>>>>> | cp: cannot stat
>>>>> `/home/vdubhack/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/libtool/ltmain.sh':
>>>>> No such file or directory
>>>>
>>>> can you add DEPENDS += "libtool" to openldap_2.4.23.bb and retry ?
>>>
>>> Still getting this error and I cleaned and rebuilt both recipes
>>
>> try this patch and remove that DEPENDS
>>
>> diff --git a/recipes/openldap/openldap_2.4.23.bb
>> b/recipes/openldap/openldap_2.4.23.bb
>> index 3ac15f6..8afd951 100644
>> --- a/recipes/openldap/openldap_2.4.23.bb
>> +++ b/recipes/openldap/openldap_2.4.23.bb
>> @@ -188,7 +188,7 @@ DEPENDS      += "${OPENLDAP_DEPENDS}"
>>  CPPFLAGS_append = " -D_GNU_SOURCE"
>>
>>  do_configure() {
>> -       cp ${STAGING_DATADIR}/libtool/config/ltmain.sh ${S}/build
>> +       cp ${STAGING_ETCDIR_NATIVE}/libtool/config/ltmain.sh ${S}/build
>>        rm -f ${S}/libtool
>>        aclocal
>>        libtoolize --force --copy
>>
>>
>>>
>>> ERROR: Logfile of failure stored in:
>>> /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.do_configure.2783
>>> Log data follows:
>>> | cp: cannot stat
>>> `/home/vdubhack/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/libtool/ltmain.sh':
>>> No such file or directory
>>> | ERROR: Function do_configure failed
>>> NOTE: package openldap-2.4.23-r2: task do_configure: Failed
>>>
>>>
>>> libtool does not build to this location
>>> /home/vdubhack/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/libtool/
>>> it builds to here
>>> tmp/sysroots/armv7a-angstrom-linux-gnueabi/home/vdubhack/overo-oe/tmp/sysroots/x86_64-linux/usr/share/libtool/
>>>
>>> It seems to put home/vdubhack/overo-oe/tmp the incorrect way. instead
>>> of being in front of the tmp/sysroot like most things
>>>
>>> same with aclocal and aclocal-1.11
>>>
>>> Thanks
>>>
>>> JL
>>>>
>>>>
>>>> -khem
>>>>
>>>> _______________________________________________
>>>> Openembedded-devel mailing list
>>>> Openembedded-devel at lists.openembedded.org
>>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>>
>>>
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel at lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
>
> Did as you asked and also deleted the tmp/ dir to just make sure was
> nothing in there and rebuilt. And must not have done something right
> as the patch failed with this:
> ERROR: Logfile of failure stored in:
> /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.patch_do_patch.22762
> Log data follows:
> | ERROR: Error in executing python function in:
> /home/vdubhack/overo-oe/org.openembedded.dev/recipes/openldap/openldap_2.4.23.bb
> | ERROR: Exception:<class 'oe.patch.CmdError'> Message:Command Error:
> exit status: 1  Output:
> | Applying patch test-fix.patch
> | patching file recipes/openldap/openldap_2.4.23.bb
> | Hunk #1 FAILED at 188.
> | 1 out of 1 hunk FAILED -- rejects in file recipes/openldap/openldap_2.4.23.bb
> | Patch test-fix.patch does not apply (enforce with -f)
> | ERROR: Printing the environment of the function
> | ERROR: Function patch_do_patch failed
> NOTE: package openldap-2.4.23-r2: task do_patch: Failed
>  I have attached the patch and the .bb so you can see what and how I did it.
>

crap.
dude you make that one line change in the recipe .bb file *by hand*
its not a patch for the sources
but for the recipe.


> Thanks for the help so far.
>
> JL
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>




More information about the Openembedded-devel mailing list