All of lore.kernel.org
 help / color / mirror / Atom feed
* How to enable php5 (php_5.5.24.bb) support for postgresql
@ 2015-05-21 21:21 yocto yocto
  2015-05-22  8:51 ` Paul Eggleton
  0 siblings, 1 reply; 14+ messages in thread
From: yocto yocto @ 2015-05-21 21:21 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2408 bytes --]

Good day,


I am working with the intel Edison. Therefore I am using the
meta-openembedded “daisy” branch (have a look here:
https://github.com/openembedded/meta-openembedded/branches/stale). Using
another branch causes bitbake errors. Beside this, “daisy” is recommended
for the intel Edison within the official intel documents.


Nevertheless I added apache2_2.4.9.bb and postgresql_9.2.4.bb to my custom
image. However, php5 support is missing. Therefore I downloaded the php
recipe from the current master branch and put it in my custom layer:


https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf75e2427216b39c641a12/meta-oe/recipes-devtools/php/


<https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf75e2427216b39c641a12/meta-oe/recipes-devtools/php/>

Furthermore I created “php_5.5.24.bbappend” with the following content in
the same folder:


PACKAGECONFIG_append += "apache2"

PACKAGECONFIG_append += "pgsql"


bitbake php results in the following errors:


ERROR: Nothing PROVIDES 'uw-imap' […] but php/php_5.5.24.bb DEPENDS on or
otherwise requires it)

ERROR: Required build target 'php' has no buildable providers.

Missing or unbuildable dependency chain was: ['php', 'uw-imap']


So I removed the config “PACKAGECONFIG[imap]” from php_5.5.24.bb.  Result:


ERROR: Nothing PROVIDES 'postgresql-native' […] but /php/php_5.5.24.bb
DEPENDS on or otherwise requires it). Close matches:

  postgresql

  strace-native

  popt-native

ERROR: Required build target 'php' has no buildable providers.

Missing or unbuildable dependency chain was: ['php', 'php-native',
'postgresql-native']


Google does not show much for postgresql-native related to yocto. "bitbake
postgresql" is running fine... If I remove BBCLASSEXTEND = "native" from
the recipe I get the following result:


ERROR: This autoconf log indicates errors, it looked at host include and/or
library paths while determining system capabilities.

Rerun configure task after fixing this. The path was
"php/5.5.24-r0/php-5.5.24'

ERROR: Function failed: do_qa_configure

ERROR: Logfile of failure stored in:
"php/5.5.24-r0/temp/log.do_configure.22410

ERROR: Task 5 (php/php_5.5.24.bb, do_configure) failed with exit code '1'




I appreciate any advice on how to set up php5 for postgresql.

[-- Attachment #2: Type: text/html, Size: 5947 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-21 21:21 How to enable php5 (php_5.5.24.bb) support for postgresql yocto yocto
@ 2015-05-22  8:51 ` Paul Eggleton
  2015-05-22 11:17   ` Martin Jansa
  0 siblings, 1 reply; 14+ messages in thread
From: Paul Eggleton @ 2015-05-22  8:51 UTC (permalink / raw)
  To: yocto yocto; +Cc: yocto

On Thursday 21 May 2015 23:21:53 yocto yocto wrote:
> Good day,
> 
> 
> I am working with the intel Edison. Therefore I am using the
> meta-openembedded “daisy” branch (have a look here:
> https://github.com/openembedded/meta-openembedded/branches/stale). Using
> another branch causes bitbake errors. Beside this, “daisy” is recommended
> for the intel Edison within the official intel documents.
> 
> 
> Nevertheless I added apache2_2.4.9.bb and postgresql_9.2.4.bb to my custom
> image. However, php5 support is missing. Therefore I downloaded the php
> recipe from the current master branch and put it in my custom layer:
> 
> 
> https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf7
> 5e2427216b39c641a12/meta-oe/recipes-devtools/php/
> 
> 
> <https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf
> 75e2427216b39c641a12/meta-oe/recipes-devtools/php/>
> 
> Furthermore I created “php_5.5.24.bbappend” with the following content in
> the same folder:
> 
> 
> PACKAGECONFIG_append += "apache2"
> 
> PACKAGECONFIG_append += "pgsql"
> 
> 
> bitbake php results in the following errors:
> 
> 
> ERROR: Nothing PROVIDES 'uw-imap' […] but php/php_5.5.24.bb DEPENDS on or
> otherwise requires it)
> 
> ERROR: Required build target 'php' has no buildable providers.
> 
> Missing or unbuildable dependency chain was: ['php', 'uw-imap']
> 
> 
> So I removed the config “PACKAGECONFIG[imap]” from php_5.5.24.bb.  Result:
> 
> 
> ERROR: Nothing PROVIDES 'postgresql-native' […] but /php/php_5.5.24.bb
> DEPENDS on or otherwise requires it). Close matches:
> 
>   postgresql
> 
>   strace-native
> 
>   popt-native
> 
> ERROR: Required build target 'php' has no buildable providers.
> 
> Missing or unbuildable dependency chain was: ['php', 'php-native',
> 'postgresql-native']
> 
> 
> Google does not show much for postgresql-native related to yocto. "bitbake
> postgresql" is running fine... If I remove BBCLASSEXTEND = "native" from
> the recipe I get the following result:
> 
> 
> ERROR: This autoconf log indicates errors, it looked at host include and/or
> library paths while determining system capabilities.
> 
> Rerun configure task after fixing this. The path was
> "php/5.5.24-r0/php-5.5.24'
> 
> ERROR: Function failed: do_qa_configure
> 
> ERROR: Logfile of failure stored in:
> "php/5.5.24-r0/temp/log.do_configure.22410
> 
> ERROR: Task 5 (php/php_5.5.24.bb, do_configure) failed with exit code '1'
> 
> 
> 
> 
> I appreciate any advice on how to set up php5 for postgresql.

Change your PACKAGECONFIG_append lines in your bbappend to use 
PACKAGECONFIG_append_class-native instead and you should be able to progress. 
Also, you very likely shouldn't be removing the BBCLASSEXTEND.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22  8:51 ` Paul Eggleton
@ 2015-05-22 11:17   ` Martin Jansa
  2015-05-22 11:44     ` yocto yocto
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Jansa @ 2015-05-22 11:17 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

On Fri, May 22, 2015 at 09:51:31AM +0100, Paul Eggleton wrote:
> On Thursday 21 May 2015 23:21:53 yocto yocto wrote:
> > Good day,
> > 
> > 
> > I am working with the intel Edison. Therefore I am using the
> > meta-openembedded “daisy” branch (have a look here:
> > https://github.com/openembedded/meta-openembedded/branches/stale). Using
> > another branch causes bitbake errors. Beside this, “daisy” is recommended
> > for the intel Edison within the official intel documents.
> > 
> > 
> > Nevertheless I added apache2_2.4.9.bb and postgresql_9.2.4.bb to my custom
> > image. However, php5 support is missing. Therefore I downloaded the php
> > recipe from the current master branch and put it in my custom layer:
> > 
> > 
> > https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf7
> > 5e2427216b39c641a12/meta-oe/recipes-devtools/php/
> > 
> > 
> > <https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf
> > 75e2427216b39c641a12/meta-oe/recipes-devtools/php/>
> > 
> > Furthermore I created “php_5.5.24.bbappend” with the following content in
> > the same folder:
> > 
> > 
> > PACKAGECONFIG_append += "apache2"
> > 
> > PACKAGECONFIG_append += "pgsql"
> > 
> > 
> > bitbake php results in the following errors:
> > 
> > 
> > ERROR: Nothing PROVIDES 'uw-imap' […] but php/php_5.5.24.bb DEPENDS on or
> > otherwise requires it)
> > 
> > ERROR: Required build target 'php' has no buildable providers.
> > 
> > Missing or unbuildable dependency chain was: ['php', 'uw-imap']
> > 
> > 
> > So I removed the config “PACKAGECONFIG[imap]” from php_5.5.24.bb.  Result:
> > 
> > 
> > ERROR: Nothing PROVIDES 'postgresql-native' […] but /php/php_5.5.24.bb
> > DEPENDS on or otherwise requires it). Close matches:
> > 
> >   postgresql
> > 
> >   strace-native
> > 
> >   popt-native
> > 
> > ERROR: Required build target 'php' has no buildable providers.
> > 
> > Missing or unbuildable dependency chain was: ['php', 'php-native',
> > 'postgresql-native']
> > 
> > 
> > Google does not show much for postgresql-native related to yocto. "bitbake
> > postgresql" is running fine... If I remove BBCLASSEXTEND = "native" from
> > the recipe I get the following result:
> > 
> > 
> > ERROR: This autoconf log indicates errors, it looked at host include and/or
> > library paths while determining system capabilities.
> > 
> > Rerun configure task after fixing this. The path was
> > "php/5.5.24-r0/php-5.5.24'
> > 
> > ERROR: Function failed: do_qa_configure
> > 
> > ERROR: Logfile of failure stored in:
> > "php/5.5.24-r0/temp/log.do_configure.22410
> > 
> > ERROR: Task 5 (php/php_5.5.24.bb, do_configure) failed with exit code '1'
> > 
> > 
> > 
> > 
> > I appreciate any advice on how to set up php5 for postgresql.
> 
> Change your PACKAGECONFIG_append lines in your bbappend to use 
> PACKAGECONFIG_append_class-native instead and you should be able to progress. 
> Also, you very likely shouldn't be removing the BBCLASSEXTEND.

And add leading space in append instead of += (_append + += always looks
wrong as the only function of += is to add the leading space), change it
to:

PACKAGECONFIG_append = " pgsql"

> 
> Cheers,
> Paul
> 
> -- 
> 
> Paul Eggleton
> Intel Open Source Technology Centre
> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22 11:17   ` Martin Jansa
@ 2015-05-22 11:44     ` yocto yocto
  2015-05-22 12:00       ` Martin Jansa
  0 siblings, 1 reply; 14+ messages in thread
From: yocto yocto @ 2015-05-22 11:44 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Paul Eggleton, yocto

[-- Attachment #1: Type: text/plain, Size: 5057 bytes --]

I set BBCLASSEXTEND = "native" active again. My php_5.5.24.bbappend looks
like this (just one line):

PACKAGECONFIG_append_class-native = " pgsql"

However, the error still persists, nothing changed:

---------------------------------
ERROR: Nothing PROVIDES 'postgresql-native' (but /recipes-devtools/php/
php_5.5.24.bb DEPENDS on or otherwise requires it). Close matches:
  postgresql
  strace-native
  popt-native
NOTE: Runtime target 'php' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['php', 'php-native',
'postgresql-native']
ERROR: Required build target 'myImage-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['myImage-image', 'php',
'php-native', 'postgresql-native']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
---------------------------------

When changing php_5.5.24.bbappend to

#PACKAGECONFIG_append_class-native = " pgsql"

everything compiles but of course the support for pgsql is missing. I found
this: https://www.yoctoproject.org/irc/%23yocto.2013-12-17.log.html But
this discussion is not helping me (search for postgresql-native)








2015-05-22 13:17 GMT+02:00 Martin Jansa <martin.jansa@gmail.com>:

> On Fri, May 22, 2015 at 09:51:31AM +0100, Paul Eggleton wrote:
> > On Thursday 21 May 2015 23:21:53 yocto yocto wrote:
> > > Good day,
> > >
> > >
> > > I am working with the intel Edison. Therefore I am using the
> > > meta-openembedded “daisy” branch (have a look here:
> > > https://github.com/openembedded/meta-openembedded/branches/stale).
> Using
> > > another branch causes bitbake errors. Beside this, “daisy” is
> recommended
> > > for the intel Edison within the official intel documents.
> > >
> > >
> > > Nevertheless I added apache2_2.4.9.bb and postgresql_9.2.4.bb to my
> custom
> > > image. However, php5 support is missing. Therefore I downloaded the php
> > > recipe from the current master branch and put it in my custom layer:
> > >
> > >
> > >
> https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf7
> > > 5e2427216b39c641a12/meta-oe/recipes-devtools/php/
> > >
> > >
> > > <
> https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf
> > > 75e2427216b39c641a12/meta-oe/recipes-devtools/php/>
> > >
> > > Furthermore I created “php_5.5.24.bbappend” with the following content
> in
> > > the same folder:
> > >
> > >
> > > PACKAGECONFIG_append += "apache2"
> > >
> > > PACKAGECONFIG_append += "pgsql"
> > >
> > >
> > > bitbake php results in the following errors:
> > >
> > >
> > > ERROR: Nothing PROVIDES 'uw-imap' […] but php/php_5.5.24.bb DEPENDS
> on or
> > > otherwise requires it)
> > >
> > > ERROR: Required build target 'php' has no buildable providers.
> > >
> > > Missing or unbuildable dependency chain was: ['php', 'uw-imap']
> > >
> > >
> > > So I removed the config “PACKAGECONFIG[imap]” from php_5.5.24.bb.
> Result:
> > >
> > >
> > > ERROR: Nothing PROVIDES 'postgresql-native' […] but /php/php_5.5.24.bb
> > > DEPENDS on or otherwise requires it). Close matches:
> > >
> > >   postgresql
> > >
> > >   strace-native
> > >
> > >   popt-native
> > >
> > > ERROR: Required build target 'php' has no buildable providers.
> > >
> > > Missing or unbuildable dependency chain was: ['php', 'php-native',
> > > 'postgresql-native']
> > >
> > >
> > > Google does not show much for postgresql-native related to yocto.
> "bitbake
> > > postgresql" is running fine... If I remove BBCLASSEXTEND = "native"
> from
> > > the recipe I get the following result:
> > >
> > >
> > > ERROR: This autoconf log indicates errors, it looked at host include
> and/or
> > > library paths while determining system capabilities.
> > >
> > > Rerun configure task after fixing this. The path was
> > > "php/5.5.24-r0/php-5.5.24'
> > >
> > > ERROR: Function failed: do_qa_configure
> > >
> > > ERROR: Logfile of failure stored in:
> > > "php/5.5.24-r0/temp/log.do_configure.22410
> > >
> > > ERROR: Task 5 (php/php_5.5.24.bb, do_configure) failed with exit code
> '1'
> > >
> > >
> > >
> > >
> > > I appreciate any advice on how to set up php5 for postgresql.
> >
> > Change your PACKAGECONFIG_append lines in your bbappend to use
> > PACKAGECONFIG_append_class-native instead and you should be able to
> progress.
> > Also, you very likely shouldn't be removing the BBCLASSEXTEND.
>
> And add leading space in append instead of += (_append + += always looks
> wrong as the only function of += is to add the leading space), change it
> to:
>
> PACKAGECONFIG_append = " pgsql"
>
> >
> > Cheers,
> > Paul
> >
> > --
> >
> > Paul Eggleton
> > Intel Open Source Technology Centre
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
>

[-- Attachment #2: Type: text/html, Size: 7550 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22 11:44     ` yocto yocto
@ 2015-05-22 12:00       ` Martin Jansa
  2015-05-22 12:48         ` Paul Eggleton
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Jansa @ 2015-05-22 12:00 UTC (permalink / raw)
  To: yocto yocto; +Cc: Paul Eggleton, yocto

On Fri, May 22, 2015 at 01:44:20PM +0200, yocto yocto wrote:
> I set BBCLASSEXTEND = "native" active again. My php_5.5.24.bbappend looks
> like this (just one line):
> 
> PACKAGECONFIG_append_class-native = " pgsql"

Do you really want to add it for native or target version?

> 
> However, the error still persists, nothing changed:
> 
> ---------------------------------
> ERROR: Nothing PROVIDES 'postgresql-native' (but /recipes-devtools/php/
> php_5.5.24.bb DEPENDS on or otherwise requires it). Close matches:
>   postgresql
>   strace-native
>   popt-native
> NOTE: Runtime target 'php' is unbuildable, removing...
> Missing or unbuildable dependency chain was: ['php', 'php-native',
> 'postgresql-native']
> ERROR: Required build target 'myImage-image' has no buildable providers.
> Missing or unbuildable dependency chain was: ['myImage-image', 'php',
> 'php-native', 'postgresql-native']
> 
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
> ---------------------------------
> 
> When changing php_5.5.24.bbappend to
> 
> #PACKAGECONFIG_append_class-native = " pgsql"
> 
> everything compiles but of course the support for pgsql is missing. I found
> this: https://www.yoctoproject.org/irc/%23yocto.2013-12-17.log.html But
> this discussion is not helping me (search for postgresql-native)
> 
> 
> 
> 
> 
> 
> 
> 
> 2015-05-22 13:17 GMT+02:00 Martin Jansa <martin.jansa@gmail.com>:
> 
> > On Fri, May 22, 2015 at 09:51:31AM +0100, Paul Eggleton wrote:
> > > On Thursday 21 May 2015 23:21:53 yocto yocto wrote:
> > > > Good day,
> > > >
> > > >
> > > > I am working with the intel Edison. Therefore I am using the
> > > > meta-openembedded “daisy” branch (have a look here:
> > > > https://github.com/openembedded/meta-openembedded/branches/stale).
> > Using
> > > > another branch causes bitbake errors. Beside this, “daisy” is
> > recommended
> > > > for the intel Edison within the official intel documents.
> > > >
> > > >
> > > > Nevertheless I added apache2_2.4.9.bb and postgresql_9.2.4.bb to my
> > custom
> > > > image. However, php5 support is missing. Therefore I downloaded the php
> > > > recipe from the current master branch and put it in my custom layer:
> > > >
> > > >
> > > >
> > https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf7
> > > > 5e2427216b39c641a12/meta-oe/recipes-devtools/php/
> > > >
> > > >
> > > > <
> > https://github.com/openembedded/meta-openembedded/blob/b070899000162e7f4baf
> > > > 75e2427216b39c641a12/meta-oe/recipes-devtools/php/>
> > > >
> > > > Furthermore I created “php_5.5.24.bbappend” with the following content
> > in
> > > > the same folder:
> > > >
> > > >
> > > > PACKAGECONFIG_append += "apache2"
> > > >
> > > > PACKAGECONFIG_append += "pgsql"
> > > >
> > > >
> > > > bitbake php results in the following errors:
> > > >
> > > >
> > > > ERROR: Nothing PROVIDES 'uw-imap' […] but php/php_5.5.24.bb DEPENDS
> > on or
> > > > otherwise requires it)
> > > >
> > > > ERROR: Required build target 'php' has no buildable providers.
> > > >
> > > > Missing or unbuildable dependency chain was: ['php', 'uw-imap']
> > > >
> > > >
> > > > So I removed the config “PACKAGECONFIG[imap]” from php_5.5.24.bb.
> > Result:
> > > >
> > > >
> > > > ERROR: Nothing PROVIDES 'postgresql-native' […] but /php/php_5.5.24.bb
> > > > DEPENDS on or otherwise requires it). Close matches:
> > > >
> > > >   postgresql
> > > >
> > > >   strace-native
> > > >
> > > >   popt-native
> > > >
> > > > ERROR: Required build target 'php' has no buildable providers.
> > > >
> > > > Missing or unbuildable dependency chain was: ['php', 'php-native',
> > > > 'postgresql-native']
> > > >
> > > >
> > > > Google does not show much for postgresql-native related to yocto.
> > "bitbake
> > > > postgresql" is running fine... If I remove BBCLASSEXTEND = "native"
> > from
> > > > the recipe I get the following result:
> > > >
> > > >
> > > > ERROR: This autoconf log indicates errors, it looked at host include
> > and/or
> > > > library paths while determining system capabilities.
> > > >
> > > > Rerun configure task after fixing this. The path was
> > > > "php/5.5.24-r0/php-5.5.24'
> > > >
> > > > ERROR: Function failed: do_qa_configure
> > > >
> > > > ERROR: Logfile of failure stored in:
> > > > "php/5.5.24-r0/temp/log.do_configure.22410
> > > >
> > > > ERROR: Task 5 (php/php_5.5.24.bb, do_configure) failed with exit code
> > '1'
> > > >
> > > >
> > > >
> > > >
> > > > I appreciate any advice on how to set up php5 for postgresql.
> > >
> > > Change your PACKAGECONFIG_append lines in your bbappend to use
> > > PACKAGECONFIG_append_class-native instead and you should be able to
> > progress.
> > > Also, you very likely shouldn't be removing the BBCLASSEXTEND.
> >
> > And add leading space in append instead of += (_append + += always looks
> > wrong as the only function of += is to add the leading space), change it
> > to:
> >
> > PACKAGECONFIG_append = " pgsql"
> >
> > >
> > > Cheers,
> > > Paul
> > >
> > > --
> > >
> > > Paul Eggleton
> > > Intel Open Source Technology Centre
> > > --
> > > _______________________________________________
> > > yocto mailing list
> > > yocto@yoctoproject.org
> > > https://lists.yoctoproject.org/listinfo/yocto
> >
> > --
> > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> >

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22 12:00       ` Martin Jansa
@ 2015-05-22 12:48         ` Paul Eggleton
  2015-05-22 13:34           ` yocto yocto
  0 siblings, 1 reply; 14+ messages in thread
From: Paul Eggleton @ 2015-05-22 12:48 UTC (permalink / raw)
  To: yocto yocto, Martin Jansa; +Cc: yocto

On Friday 22 May 2015 14:00:50 Martin Jansa wrote:
> On Fri, May 22, 2015 at 01:44:20PM +0200, yocto yocto wrote:
> > I set BBCLASSEXTEND = "native" active again. My php_5.5.24.bbappend looks
> > like this (just one line):
> > 
> > PACKAGECONFIG_append_class-native = " pgsql"
> 
> Do you really want to add it for native or target version?

Oops, yes, that was my mistake in my original reply - should be class-target 
not class-native.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22 12:48         ` Paul Eggleton
@ 2015-05-22 13:34           ` yocto yocto
  2015-05-22 13:38             ` Paul Eggleton
  0 siblings, 1 reply; 14+ messages in thread
From: yocto yocto @ 2015-05-22 13:34 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]

Thanks for helping me. My *.bbappend looks now like this:

PACKAGECONFIG_append_class-target = " pgsql"

"bitbake php" results now in:

ERROR: This autoconf log indicates errors, it looked at host include and/or
library paths while determining system capabilities.
Rerun configure task after fixing this. The path was
'[...]/core2-32-poky-linux/php/5.5.24-r0/php-5.5.24'
ERROR: Function failed: do_qa_configure
ERROR: Logfile of failure stored in:
[...]/core2-32-poky-linux/php/5.5.24-r0/temp/log.do_configure.16729
ERROR: Task 5 ([...]/recipes-devtools/php/php_5.5.24.bb, do_configure)
failed with exit code '1

From the recipe I can see that

do_configure_prepend
do_configure_append

exist. For test purposes I added an empty

do_configure () {
}

This results in

ERROR: Function failed: do_install
(Much text)
 cp: cannot stat 'ltmain.sh': No such file or directory
(Much text)
ERROR: oe_runmake failed





2015-05-22 14:48 GMT+02:00 Paul Eggleton <paul.eggleton@linux.intel.com>:

> On Friday 22 May 2015 14:00:50 Martin Jansa wrote:
> > On Fri, May 22, 2015 at 01:44:20PM +0200, yocto yocto wrote:
> > > I set BBCLASSEXTEND = "native" active again. My php_5.5.24.bbappend
> looks
> > > like this (just one line):
> > >
> > > PACKAGECONFIG_append_class-native = " pgsql"
> >
> > Do you really want to add it for native or target version?
>
> Oops, yes, that was my mistake in my original reply - should be
> class-target
> not class-native.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>

[-- Attachment #2: Type: text/html, Size: 2325 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22 13:34           ` yocto yocto
@ 2015-05-22 13:38             ` Paul Eggleton
  2015-05-22 13:46               ` yocto yocto
  0 siblings, 1 reply; 14+ messages in thread
From: Paul Eggleton @ 2015-05-22 13:38 UTC (permalink / raw)
  To: yocto yocto; +Cc: yocto

On Friday 22 May 2015 15:34:50 yocto yocto wrote:
> Thanks for helping me. My *.bbappend looks now like this:
> 
> PACKAGECONFIG_append_class-target = " pgsql"
> 
> "bitbake php" results now in:
> 
> ERROR: This autoconf log indicates errors, it looked at host include and/or
> library paths while determining system capabilities.
> Rerun configure task after fixing this. The path was
> '[...]/core2-32-poky-linux/php/5.5.24-r0/php-5.5.24'

Can you please attach the full log.do_configure?

> From the recipe I can see that
> 
> do_configure_prepend
> do_configure_append
> 
> exist. For test purposes I added an empty
> 
> do_configure () {
> }
> 
> This results in
> 
> ERROR: Function failed: do_install
> (Much text)
>  cp: cannot stat 'ltmain.sh': No such file or directory
> (Much text)
> ERROR: oe_runmake failed

This is not an appropriate workaround - you can't just cut pieces of the build 
out like this.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22 13:38             ` Paul Eggleton
@ 2015-05-22 13:46               ` yocto yocto
  2015-05-22 14:30                 ` Paul Eggleton
  0 siblings, 1 reply; 14+ messages in thread
From: yocto yocto @ 2015-05-22 13:46 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 1245 bytes --]

Please find the log file attached. The error is at the end

2015-05-22 15:38 GMT+02:00 Paul Eggleton <paul.eggleton@linux.intel.com>:

> On Friday 22 May 2015 15:34:50 yocto yocto wrote:
> > Thanks for helping me. My *.bbappend looks now like this:
> >
> > PACKAGECONFIG_append_class-target = " pgsql"
> >
> > "bitbake php" results now in:
> >
> > ERROR: This autoconf log indicates errors, it looked at host include
> and/or
> > library paths while determining system capabilities.
> > Rerun configure task after fixing this. The path was
> > '[...]/core2-32-poky-linux/php/5.5.24-r0/php-5.5.24'
>
> Can you please attach the full log.do_configure?
>
> > From the recipe I can see that
> >
> > do_configure_prepend
> > do_configure_append
> >
> > exist. For test purposes I added an empty
> >
> > do_configure () {
> > }
> >
> > This results in
> >
> > ERROR: Function failed: do_install
> > (Much text)
> >  cp: cannot stat 'ltmain.sh': No such file or directory
> > (Much text)
> > ERROR: oe_runmake failed
>
> This is not an appropriate workaround - you can't just cut pieces of the
> build
> out like this.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>

[-- Attachment #1.2: Type: text/html, Size: 1844 bytes --]

[-- Attachment #2: log.do_configure.18302 --]
[-- Type: application/octet-stream, Size: 47859 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22 13:46               ` yocto yocto
@ 2015-05-22 14:30                 ` Paul Eggleton
       [not found]                   ` <CACTu1LgR4wGQqdvOE_SfkBmjiebaL2KHef+KeNf3DUNTnmmbjA@mail.gmail.com>
  0 siblings, 1 reply; 14+ messages in thread
From: Paul Eggleton @ 2015-05-22 14:30 UTC (permalink / raw)
  To: yocto yocto; +Cc: yocto

On Friday 22 May 2015 15:46:43 yocto yocto wrote:
> Please find the log file attached. The error is at the end

Ok, can I also have config.log (from /home/kse/development/edison-
src/build/tmp/work/core2-32-poky-linux/php/5.5.24-r0/build/ ) ?

Thanks,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
       [not found]                   ` <CACTu1LgR4wGQqdvOE_SfkBmjiebaL2KHef+KeNf3DUNTnmmbjA@mail.gmail.com>
@ 2015-05-22 16:49                     ` Paul Eggleton
  2015-05-23  9:12                       ` yocto yocto
  0 siblings, 1 reply; 14+ messages in thread
From: Paul Eggleton @ 2015-05-22 16:49 UTC (permalink / raw)
  To: yocto yocto; +Cc: yocto

On Friday 22 May 2015 16:40:15 yocto yocto wrote:
> Hello Paul,
> 
> "build" does not exist. I attached the config.log from the following folder:
> 
> /development/edison-src/build/tmp/work/core2-32-poky-linux/php/5.5.24-r0/php
> -5.5.24

Ah right, of course, in daisy we didn't use a separate build dir, I had 
forgotten.
 
> When you search for "unsafe" or "postgresql" you will see warnings and
> errors. E.g. the following:
> 
> /home/kse/development/edison-src/build/tmp/sysroots/x86_64-linux/usr/libexec
> /core2-32-poky-linux/gcc/i586-poky-linux/4.8.2/ld: warning: library search
> path "/usr/lib" is unsafe for cross-compilation
> 
> According to
> http://comments.gmane.org/gmane.linux.embedded.yocto.general/4859 this
> seems to generate the " autoconf log indicates errors" message. But I dont
> know how to proceed?

Hmm, so this is very strange - I just switched to the daisy branch, copied in 
the php recipe from meta-oe master, set the config (in my case I simply set the 
PACKAGECONFIG_pn-php = "mysql sqlite3 pgsql" in local.conf, which should be 
pretty much equivalent to what you did), and built it, and I didn't get any 
errors at all. It's possible the issue may be triggered by something you have 
installed on your build host however (not that it should, it shouldn't be 
looking at the host at all - that's the source of this problem). Did you copy 
in any other recipes from master or just php?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-22 16:49                     ` Paul Eggleton
@ 2015-05-23  9:12                       ` yocto yocto
  2015-05-28 11:15                         ` Paul Eggleton
  0 siblings, 1 reply; 14+ messages in thread
From: yocto yocto @ 2015-05-23  9:12 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 3115 bytes --]

Hello Paul,

after looking at the config.log that I sent you I realized that all "unsafe
for cross-compilation" message occur because the recipe tries to link
against my local installation of postgresql-server-dev-9.3 and libpq-dev
lying in /usr/lib. Consider the following line:

"skipping incompatible /usr/lib/libpq.so when searching for -lpq"

The recipe is doing right to skip the library, because I am using Ubuntu
64bit. Therefore my local installations of postgresql-server-dev-9.3 and
libpq-dev are 64 bit versions. So yesterday evening/night I did the
following:

- I installed a virtual machine Ubuntu 32 bit
- I downloaded the latest linux sources (edison-src-ww18-15-1.tgz)
- I added the meta-openembbed layer (daisy branch)
- I removed the php recipe from the daisy branch and replaced it by the
latest from the master branch
- I added PACKAGECONFIG_pn-php = "mysql sqlite3 pgsql" in local.conf
- I added my own layer
- I built the image

Result: Everything builds fine from scratch beside the php recipe. I
appended the latest config.log. As you can see some dependencies are
missing resulting in linker errors and I still get the "unsafe for
cross-compilation" error.

Is the approach of the recipe correct (linking against local packages?).
What is your system configuration? Do you have any ideas or do you know a
person who might help?

best regards

Philipp



2015-05-22 18:49 GMT+02:00 Paul Eggleton <paul.eggleton@linux.intel.com>:

> On Friday 22 May 2015 16:40:15 yocto yocto wrote:
> > Hello Paul,
> >
> > "build" does not exist. I attached the config.log from the following
> folder:
> >
> >
> /development/edison-src/build/tmp/work/core2-32-poky-linux/php/5.5.24-r0/php
> > -5.5.24
>
> Ah right, of course, in daisy we didn't use a separate build dir, I had
> forgotten.
>
> > When you search for "unsafe" or "postgresql" you will see warnings and
> > errors. E.g. the following:
> >
> >
> /home/kse/development/edison-src/build/tmp/sysroots/x86_64-linux/usr/libexec
> > /core2-32-poky-linux/gcc/i586-poky-linux/4.8.2/ld: warning: library
> search
> > path "/usr/lib" is unsafe for cross-compilation
> >
> > According to
> > http://comments.gmane.org/gmane.linux.embedded.yocto.general/4859 this
> > seems to generate the " autoconf log indicates errors" message. But I
> dont
> > know how to proceed?
>
> Hmm, so this is very strange - I just switched to the daisy branch, copied
> in
> the php recipe from meta-oe master, set the config (in my case I simply
> set the
> PACKAGECONFIG_pn-php = "mysql sqlite3 pgsql" in local.conf, which should be
> pretty much equivalent to what you did), and built it, and I didn't get any
> errors at all. It's possible the issue may be triggered by something you
> have
> installed on your build host however (not that it should, it shouldn't be
> looking at the host at all - that's the source of this problem). Did you
> copy
> in any other recipes from master or just php?
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>

[-- Attachment #1.2: Type: text/html, Size: 4019 bytes --]

[-- Attachment #2: config.log --]
[-- Type: application/octet-stream, Size: 1430496 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-23  9:12                       ` yocto yocto
@ 2015-05-28 11:15                         ` Paul Eggleton
  2015-06-01  6:03                           ` yocto yocto
  0 siblings, 1 reply; 14+ messages in thread
From: Paul Eggleton @ 2015-05-28 11:15 UTC (permalink / raw)
  To: yocto yocto; +Cc: yocto

On Saturday 23 May 2015 11:12:22 yocto yocto wrote:
> after looking at the config.log that I sent you I realized that all "unsafe
> for cross-compilation" message occur because the recipe tries to link
> against my local installation of postgresql-server-dev-9.3 and libpq-dev
> lying in /usr/lib. Consider the following line:
> 
> "skipping incompatible /usr/lib/libpq.so when searching for -lpq"
> 
> The recipe is doing right to skip the library, because I am using Ubuntu
> 64bit. Therefore my local installations of postgresql-server-dev-9.3 and
> libpq-dev are 64 bit versions. So yesterday evening/night I did the
> following:
> 
> - I installed a virtual machine Ubuntu 32 bit
> - I downloaded the latest linux sources (edison-src-ww18-15-1.tgz)
> - I added the meta-openembbed layer (daisy branch)
> - I removed the php recipe from the daisy branch and replaced it by the
> latest from the master branch
> - I added PACKAGECONFIG_pn-php = "mysql sqlite3 pgsql" in local.conf
> - I added my own layer
> - I built the image
> 
> Result: Everything builds fine from scratch beside the php recipe. I
> appended the latest config.log. As you can see some dependencies are
> missing resulting in linker errors and I still get the "unsafe for
> cross-compilation" error.
>
> Is the approach of the recipe correct (linking against local packages?).

Certainly not. A recipe built for the target machine should never be picking 
up includes or libraries from the host, that's why this check exists. We need 
to ensure the configure script does not look at host locations at all. I guess 
one reason we haven't picked up on this is that by default postgres 
functionality is disabled.

> What is your system configuration? Do you have any ideas or do you know a
> person who might help?

The system I did my most recent build on is a CentOS 6 machine, but that's 
probably not why it works for me - it likely works for me because I simply 
don't have postgres or its development files installed, so there's nothing for 
the configure script to find on the host.

Unfortunately this is a case where someone is going to have to dig into the 
php configure script, find out how that -L/usr/lib is getting into the linker 
path, and then stop that from happening; depending on how it is getting in 
there that may be an additional argument to the configure script or it might 
require patching the configure.ac file. Using "grep" and a little knowledge of 
how autoconf works this shouldn't be too difficult, but it's not something I 
have time for at the moment.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to enable php5 (php_5.5.24.bb) support for postgresql
  2015-05-28 11:15                         ` Paul Eggleton
@ 2015-06-01  6:03                           ` yocto yocto
  0 siblings, 0 replies; 14+ messages in thread
From: yocto yocto @ 2015-06-01  6:03 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 3107 bytes --]

I am willed to do this since I rely on postgresql. It would help if you
could provide some hints which files are or might be related to the problem
since I am relatively new to yocto. I would do the rest of the work.

2015-05-28 13:15 GMT+02:00 Paul Eggleton <paul.eggleton@linux.intel.com>:

> On Saturday 23 May 2015 11:12:22 yocto yocto wrote:
> > after looking at the config.log that I sent you I realized that all
> "unsafe
> > for cross-compilation" message occur because the recipe tries to link
> > against my local installation of postgresql-server-dev-9.3 and libpq-dev
> > lying in /usr/lib. Consider the following line:
> >
> > "skipping incompatible /usr/lib/libpq.so when searching for -lpq"
> >
> > The recipe is doing right to skip the library, because I am using Ubuntu
> > 64bit. Therefore my local installations of postgresql-server-dev-9.3 and
> > libpq-dev are 64 bit versions. So yesterday evening/night I did the
> > following:
> >
> > - I installed a virtual machine Ubuntu 32 bit
> > - I downloaded the latest linux sources (edison-src-ww18-15-1.tgz)
> > - I added the meta-openembbed layer (daisy branch)
> > - I removed the php recipe from the daisy branch and replaced it by the
> > latest from the master branch
> > - I added PACKAGECONFIG_pn-php = "mysql sqlite3 pgsql" in local.conf
> > - I added my own layer
> > - I built the image
> >
> > Result: Everything builds fine from scratch beside the php recipe. I
> > appended the latest config.log. As you can see some dependencies are
> > missing resulting in linker errors and I still get the "unsafe for
> > cross-compilation" error.
> >
> > Is the approach of the recipe correct (linking against local packages?).
>
> Certainly not. A recipe built for the target machine should never be
> picking
> up includes or libraries from the host, that's why this check exists. We
> need
> to ensure the configure script does not look at host locations at all. I
> guess
> one reason we haven't picked up on this is that by default postgres
> functionality is disabled.
>
> > What is your system configuration? Do you have any ideas or do you know a
> > person who might help?
>
> The system I did my most recent build on is a CentOS 6 machine, but that's
> probably not why it works for me - it likely works for me because I simply
> don't have postgres or its development files installed, so there's nothing
> for
> the configure script to find on the host.
>
> Unfortunately this is a case where someone is going to have to dig into the
> php configure script, find out how that -L/usr/lib is getting into the
> linker
> path, and then stop that from happening; depending on how it is getting in
> there that may be an additional argument to the configure script or it
> might
> require patching the configure.ac file. Using "grep" and a little
> knowledge of
> how autoconf works this shouldn't be too difficult, but it's not something
> I
> have time for at the moment.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>

[-- Attachment #2: Type: text/html, Size: 3809 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-06-01  6:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-21 21:21 How to enable php5 (php_5.5.24.bb) support for postgresql yocto yocto
2015-05-22  8:51 ` Paul Eggleton
2015-05-22 11:17   ` Martin Jansa
2015-05-22 11:44     ` yocto yocto
2015-05-22 12:00       ` Martin Jansa
2015-05-22 12:48         ` Paul Eggleton
2015-05-22 13:34           ` yocto yocto
2015-05-22 13:38             ` Paul Eggleton
2015-05-22 13:46               ` yocto yocto
2015-05-22 14:30                 ` Paul Eggleton
     [not found]                   ` <CACTu1LgR4wGQqdvOE_SfkBmjiebaL2KHef+KeNf3DUNTnmmbjA@mail.gmail.com>
2015-05-22 16:49                     ` Paul Eggleton
2015-05-23  9:12                       ` yocto yocto
2015-05-28 11:15                         ` Paul Eggleton
2015-06-01  6:03                           ` yocto yocto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.