Skip to contentSkip to conversation

LSB support?

DISCUSSION Ni Qingliang 3 participants 14 messages Mar 15, 2012 – Mar 23, 2012

lore
Share & tools
lore
#0 lore raw

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Any idea?

thanks!

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#1 lore raw
Quoted 4 lines · Ni Qingliang

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

#2 lore raw

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

thanks again.

Quoted 43 lines · Mark Hatle
Quoted 4 lines · Ni Qingliang

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#3 lore raw
In reply to Mark Hatle

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Quoted 43 lines · Mark Hatle
Quoted 4 lines · Ni Qingliang

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#4 lore raw
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 45 lines · Mark Hatle
Quoted 43 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#5 lore raw

I have encountered a similar problem when do a clean building in another VM (running archlinux).

after remove /usr//lib/libXrandr.so.2:
mv /usr/lib/../lib/libXrandr.so.2 /usr/lib/../lib/libXrandr.so.2.bak

I got a new error:
/usr/lib/../lib/libXext.so.6: undefined reference to `memcpy@GLIBC_2.14'

so IMO, it used the wrong lib path. following is the output section of 'do_compile', the key is '/usr/lib/../lib', maybe it should be '<xxxdir>/usr/lib/../lib'.

output section:
Making all in gconf
make[2]: Entering directory
`/media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf'
make all-am
make[3]: Entering directory
`/media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf'
../x86_64-poky-linux-libtool --tag=CC --mode=link
x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o gconf-sanity-check-2
gconf-sanity-check.o libgconf-2.la -pthread -Wl,--export-dynamic
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lxml2
x86_64-poky-linux-libtool: link: x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o .libs/gconf-sanity-check-2
gconf-sanity-check.o -pthread
-Wl,--export-dynamic ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so -L=/usr/lib /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -pthread -Wl,-rpath -Wl,/usr/lib/../lib /usr/lib/../lib/libXext.so.6: undefined reference to `memcpy@GLIBC_2.14'
collect2: ld returned 1 exit status
make[3]: *** [gconf-sanity-check-2] Error 1

Quoted 93 lines · Mark Hatle
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 40 lines · Mark Hatle
Quoted 39 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#6 lore raw

Is anybody there? Is the info enough?

Quoted 140 lines · 倪庆亮

I have encountered a similar problem when do a clean building in another VM (running archlinux).

after remove /usr//lib/libXrandr.so.2:
mv /usr/lib/../lib/libXrandr.so.2 /usr/lib/../lib/libXrandr.so.2.bak

I got a new error:
/usr/lib/../lib/libXext.so.6: undefined reference to `memcpy@GLIBC_2.14'

so IMO, it used the wrong lib path. following is the output section of 'do_compile', the key is '/usr/lib/../lib', maybe it should be '<xxxdir>/usr/lib/../lib'.

output section:
Making all in gconf
make[2]: Entering directory `/media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf' make all-am
make[3]: Entering directory `/media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf'
../x86_64-poky-linux-libtool --tag=CC --mode=link
x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1  -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o gconf-sanity-check-2

gconf-sanity-check.o libgconf-2.la -pthread -Wl,--export-dynamic

(quoted diff) +0 -4
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lxml2

x86_64-poky-linux-libtool: link: x86_64-poky-linux-gcc -m64 --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o .libs/gconf-sanity-check-2

gconf-sanity-check.o -pthread
-Wl,--export-dynamic ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so -L=/usr/lib /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -pthread -Wl,-rpath -Wl,/usr/lib/../lib /usr/lib/../lib/libXext.so.6: undefined reference to `memcpy@GLIBC_2.14'
collect2: ld returned 1 exit status
make[3]: *** [gconf-sanity-check-2] Error 1

Quoted 89 lines · Mark Hatle
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 40 lines · Mark Hatle
Quoted 39 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#7 lore raw
In reply to Ni Qingliang
Quoted 6 lines · Ni Qingliang

I have encountered a similar problem when do a clean building in another VM (running archlinux).

after remove /usr//lib/libXrandr.so.2:
mv /usr/lib/../lib/libXrandr.so.2 /usr/lib/../lib/libXrandr.so.2.bak

Quoted 6 lines

I got a new error:
/usr/lib/../lib/libXext.so.6: undefined reference to `memcpy@GLIBC_2.14'

so IMO, it used the wrong lib path. following is the output section of 'do_compile', the key is '/usr/lib/../lib', maybe it should be '<xxxdir>/usr/lib/../lib'.

I don't see anything obvious in the code below. Search the build logs for libXrandr, libXext for references to /usr/lib or similar.

Are you using the stock oe-core toolchain? If so there is a patch that detects and attempts to poison (cause an error) usage of system directories while cross compiling. If you are using your own toolchain, a vendor toolchain, or a CS/Mentor toolchain.. then you may not have this patch and the system won't auto detect that type of contamination.

Check the version of glibc on your host, is it 2.14 (or newer)? Then check the version of eglibc in your build, I assume it's 2.13...

if the above is true, that would seem to indicate that it is likely host contamination...

The other tool you can enable is "swabber", in your local.conf in the "USER_CLASSES" you can enable "image-swab". Swabber can be a -very- slow process, but is a good last resort for identifying host contamination.

It's been a while since I used swabber, and I don't remember how. I've been looking and I'm having problems finding the documentation on setup and usage of swabber. You may need to join and ask on the Yocto Project mailing list for help on that.

--Mark

Quoted 21 lines

output section:
Making all in gconf
make[2]: Entering directory `/media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf' make all-am
make[3]: Entering directory `/media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf'
../x86_64-poky-linux-libtool --tag=CC --mode=link
x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1  -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o gconf-sanity-check-2

gconf-sanity-check.o libgconf-2.la -pthread -Wl,--export-dynamic

(quoted diff) +0 -4
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lxml2

x86_64-poky-linux-libtool: link: x86_64-poky-linux-gcc -m64 --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o .libs/gconf-sanity-check-2
Quoted 2 lines

gconf-sanity-check.o -pthread
-Wl,--export-dynamic ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so -L=/usr/lib /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXren!

de!

Quoted 100 lines

r.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -pthread -Wl,-rpath -Wl,/usr/lib/../lib
/usr/lib/../lib/libXext.so.6: undefined reference to `memcpy@GLIBC_2.14'
collect2: ld returned 1 exit status
make[3]: *** [gconf-sanity-check-2] Error 1

Quoted 93 lines · Mark Hatle
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 40 lines · Mark Hatle
Quoted 39 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#8 lore raw
In reply to Ni Qingliang

no echo?

Quoted 140 lines · 倪庆亮

I have encountered a similar problem when do a clean building in another VM (running archlinux).

after remove /usr//lib/libXrandr.so.2:
mv /usr/lib/../lib/libXrandr.so.2 /usr/lib/../lib/libXrandr.so.2.bak

I got a new error:
/usr/lib/../lib/libXext.so.6: undefined reference to `memcpy@GLIBC_2.14'

so IMO, it used the wrong lib path. following is the output section of 'do_compile', the key is '/usr/lib/../lib', maybe it should be '<xxxdir>/usr/lib/../lib'.

output section:
Making all in gconf
make[2]: Entering directory `/media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf' make all-am
make[3]: Entering directory `/media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf'
../x86_64-poky-linux-libtool --tag=CC --mode=link
x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1  -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o gconf-sanity-check-2

gconf-sanity-check.o libgconf-2.la -pthread -Wl,--export-dynamic

(quoted diff) +0 -4
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lxml2

x86_64-poky-linux-libtool: link: x86_64-poky-linux-gcc -m64 --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o .libs/gconf-sanity-check-2

gconf-sanity-check.o -pthread
-Wl,--export-dynamic ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so -L=/usr/lib /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -pthread -Wl,-rpath -Wl,/usr/lib/../lib /usr/lib/../lib/libXext.so.6: undefined reference to `memcpy@GLIBC_2.14'
collect2: ld returned 1 exit status
make[3]: *** [gconf-sanity-check-2] Error 1

Quoted 89 lines · Mark Hatle
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 40 lines · Mark Hatle
Quoted 39 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#9 lore raw
In reply to Mark Hatle

I do a clean building with the same error. I have not touched the specific glibc version.

as I said, the do_compile should use the libXrandr in build_sysroot directory, but it used it in host system. and I have checked that, there IS the lib in build_sysroot directory.

you can build it successfully, only because your host's lib is using glibc 2.13, but I'm using archlinux, all package is the newest.

the gconf used host's libXrandr, but want check its dependency in build_sysroot, that is the reason, MAYBE.

I will do a clean building again, and I don't think it will change anything.

Quoted 93 lines · Mark Hatle
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 40 lines · Mark Hatle
Quoted 39 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#10 lore raw

gconf build error

I'm building core-image-lsb (qemux86-64 with poky-lsb), and got error when do_compile gconf. my host is ArchLinux x86-64.

the error is occured when doing sanity-check, error like:
/usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14'

the build dir is "/media/pangu/lsbt", following step can reproduce the error, my question is: why the libtool try to link with the lib on host rootfs? because I have tried to remove the host's libXrandr.so.2, then the error changed to another lib, so I ensure it linked to the host lib wrongly.

1.
cd /media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf

2. export PATH="/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/bin/crossscripts:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/sbin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/sbin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux//bin:/media/pangu/lsbt:/media/pangu/optimus/scripts:/media/pangu/optimus/bitbake/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/media/pangu/optimus/scripts"

3. ../x86_64-poky-linux-libtool --tag=CC --mode=link
x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g -feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o gconf-sanity-check-2
gconf-sanity-check.o libgconf-2.la -pthread -Wl,--export-dynamic
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2

4. and then I can get the error, after add '-t -v' in the step 2, I got:
x86_64-poky-linux-libtool: link: x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o .libs/gconf-sanity-check-2
gconf-sanity-check.o -pthread -Wl,--export-dynamic -t
-v ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -pthread -Wl,-rpath -Wl,/usr/lib/../lib
Using built-in specs.
COLLECT_GCC=x86_64-poky-linux-gcc
COLLECT_LTO_WRAPPER=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/lto-wrapper
Target: x86_64-poky-linux
Configured with: /media/pangu/lsbt/tmp/work-shared/gcc-4.6.3
+svnr184847-r23/gcc-4_6-branch/configure --build=x86_64-linux
--host=x86_64-linux --target=x86_64-poky-linux
--prefix=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr
--exec_prefix=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr
--bindir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux --sbindir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux --libexecdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux --datadir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share --sysconfdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/etc --sharedstatedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/com --localstatedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/var --libdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux --includedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/include --oldincludedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/include --infodir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share/info --mandir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/media/pangu/lsbt/tmp/sysroots/x86_64-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=x86_64-poky-linux- --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-cheaders=c_global --with-local-prefix=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr --with-gxx-include-dir=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/include/c++ --with-sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --with-build-sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --enable-poison-system-directories --with-headers=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/include --disable-libunwind-exceptions --with-mpfr=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr --with-system-zlib --disable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.6.4 20120303 (prerelease) (GCC)
COMPILER_PATH=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/
LIBRARY_PATH=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/
COLLECT_GCC_OPTIONS='--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64' '-m64' '-O2' '-pipe' '-g' '-feliminate-unused-debug-types' '-Wall' '-D' 'GCONF_ENABLE_DEBUG=1' '-o' '.libs/gconf-sanity-check-2' '-pthread' '-t' '-v' '-pthread' '-mtune=generic' '-march=x86-64'
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/collect2 --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib/ld-linux-x86-64.so.2 -o .libs/gconf-sanity-check-2 -t /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crt1.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crti.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtbegin.o -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4 -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4 -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib -O1 --hash-style=gnu --as-needed gconf-sanity-check.o --export-dynamic ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -rpath /usr/lib/../lib -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtend.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crtn.o
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/ld: mode elf_x86_64
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crt1.o
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crti.o
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtbegin.o
gconf-sanity-check.o
./.libs/libgconf-2.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so
-lresolv
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libresolv.so)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so
/lib/libpthread.so.0
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libpthread.so.0)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so
-lrt (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/librt.so)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so
-ldl (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libdl.so)
-lz (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libz.so)
-lm (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libm.so)
-lgcc_s
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/libgcc_s.so)
/lib/libpthread.so.0
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libpthread.so.0)
/lib/libc.so.6 (/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libc.so.6)
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libc_nonshared.a)elf-init.oS
/lib/ld-linux-x86-64.so.2
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/ld-linux-x86-64.so.2)
-lgcc_s
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/libgcc_s.so)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtend.o
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crtn.o
/usr/lib/../lib/libXrandr.so.2: undefined reference to
`memcpy@GLIBC_2.14'
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/ld: link errors found, deleting executable `.libs/gconf-sanity-check-2'
collect2: ld returned 1 exit status

Quoted 116 lines · 倪庆亮

I do a clean building with the same error. I have not touched the specific glibc version.

as I said, the do_compile should use the libXrandr in build_sysroot directory, but it used it in host system. and I have checked that, there IS the lib in build_sysroot directory.

you can build it successfully, only because your host's lib is using glibc 2.13, but I'm using archlinux, all package is the newest.

the gconf used host's libXrandr, but want check its dependency in build_sysroot, that is the reason, MAYBE.

I will do a clean building again, and I don't think it will change anything.

Quoted 89 lines · Mark Hatle
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 40 lines · Mark Hatle
Quoted 39 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#11 lore raw

Re: gconf build error

Hello,

I have made some progress after struggled a few days on it. found that the reason is located in the 'ld'.
following is my investigation (focused on the IMPLICIT depended library):

1. call ld with sysroot and rpath
$ld --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 ... -rpath /usr/lib/../lib

then it will find the lib needed in the host's rootfs, that will result error.

2. call ld with sysroot and without rpath
$ld --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 ...

then it will find the lib needed in the directory sysroot arg specified. that is expected.

I found that using the --verbose argument. Is the behaviour expected? or a bug?

Quoted 237 lines · 倪庆亮

I'm building core-image-lsb (qemux86-64 with poky-lsb), and got error when do_compile gconf. my host is ArchLinux x86-64.

the error is occured when doing sanity-check, error like:
/usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14'

the build dir is "/media/pangu/lsbt", following step can reproduce the error, my question is: why the libtool try to link with the lib on host rootfs? because I have tried to remove the host's libXrandr.so.2, then the error changed to another lib, so I ensure it linked to the host lib wrongly.

1.
cd /media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf

2. export PATH="/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/bin/crossscripts:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/sbin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/sbin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux//bin:/media/pangu/lsbt:/media/pangu/optimus/scripts:/media/pangu/optimus/bitbake/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/media/pangu/optimus/scripts"

3. ../x86_64-poky-linux-libtool --tag=CC --mode=link
x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1  -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o gconf-sanity-check-2

gconf-sanity-check.o libgconf-2.la -pthread -Wl,--export-dynamic

(quoted diff) +0 -4
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lxml2

4. and then I can get the error, after add '-t -v' in the step 2, I got:
x86_64-poky-linux-libtool: link: x86_64-poky-linux-gcc -m64 --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o .libs/gconf-sanity-check-2

gconf-sanity-check.o -pthread -Wl,--export-dynamic -t
-v ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -pthread -Wl,-rpath -Wl,/usr/lib/../lib
Using built-in specs.
COLLECT_GCC=x86_64-poky-linux-gcc
COLLECT_LTO_WRAPPER=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/lto-wrapper
Target: x86_64-poky-linux
Configured with: /media/pangu/lsbt/tmp/work-shared/gcc-4.6.3
+svnr184847-r23/gcc-4_6-branch/configure --build=x86_64-linux
--host=x86_64-linux --target=x86_64-poky-linux
--prefix=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr
--exec_prefix=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr
--bindir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux --sbindir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux --libexecdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux --datadir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share --sysconfdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/etc --sharedstatedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/com --localstatedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/var --libdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux --includedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/include --oldincludedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/include --infodir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share/info --mandir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/media/pangu/lsbt/tmp/sysroots/x86_64-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=x86_64-poky-linux- --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-cheaders=c_global --with-local-prefix=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr --with-gxx-include-dir=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/include/c++ --with-sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --with-build-sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --enable-poison-system-directories --with-headers=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/include --disable-libunwind-exceptions --with-mpfr=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr --with-system-zlib --disable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.6.4 20120303 (prerelease) (GCC)
COMPILER_PATH=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/
LIBRARY_PATH=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/
COLLECT_GCC_OPTIONS='--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64' '-m64' '-O2' '-pipe' '-g' '-feliminate-unused-debug-types' '-Wall' '-D' 'GCONF_ENABLE_DEBUG=1' '-o' '.libs/gconf-sanity-check-2' '-pthread' '-t' '-v' '-pthread' '-mtune=generic' '-march=x86-64'
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/collect2 --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib/ld-linux-x86-64.so.2 -o .libs/gconf-sanity-check-2 -t /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crt1.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crti.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtbegin.o -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4 -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4 -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib -O1 --hash-style=gnu --as-needed gconf-sanity-check.o --export-dynamic ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -rpath /usr/lib/../lib -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtend.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crtn.o
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/ld: mode elf_x86_64
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crt1.o
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crti.o
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtbegin.o
gconf-sanity-check.o
./.libs/libgconf-2.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so
-lresolv
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libresolv.so)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so
/lib/libpthread.so.0
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libpthread.so.0)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so
-lrt (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/librt.so)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so

(quoted diff) +0 -4
-ldl (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libdl.so)
-lz (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libz.so)
-lm (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libm.so)
-lgcc_s

(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/libgcc_s.so)
/lib/libpthread.so.0
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libpthread.so.0)
/lib/libc.so.6 (/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libc.so.6) (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libc_nonshared.a)elf-init.oS
/lib/ld-linux-x86-64.so.2
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/ld-linux-x86-64.so.2)
-lgcc_s
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/libgcc_s.so) /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtend.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crtn.o
/usr/lib/../lib/libXrandr.so.2: undefined reference to
`memcpy@GLIBC_2.14'
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/ld: link errors found, deleting executable `.libs/gconf-sanity-check-2'
collect2: ld returned 1 exit status

Quoted 111 lines · 倪庆亮

I do a clean building with the same error. I have not touched the specific glibc version.

as I said, the do_compile should use the libXrandr in build_sysroot directory, but it used it in host system. and I have checked that, there IS the lib in build_sysroot directory.

you can build it successfully, only because your host's lib is using glibc 2.13, but I'm using archlinux, all package is the newest.

the gconf used host's libXrandr, but want check its dependency in build_sysroot, that is the reason, MAYBE.

I will do a clean building again, and I don't think it will change anything.

Quoted 89 lines · Mark Hatle
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 40 lines · Mark Hatle
Quoted 39 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Quoted 5 lines

--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com

--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
#12 lore raw

Re: gconf build error

Quoted 14 lines · Ni Qingliang

Hello,

I have made some progress after struggled a few days on it. found that the reason is located in the 'ld'.
following is my investigation (focused on the IMPLICIT depended library):

1. call ld with sysroot and rpath
$ld --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 ... -rpath /usr/lib/../lib

then it will find the lib needed in the host's rootfs, that will result error.

Quoted 8 lines

2. call ld with sysroot and without rpath
$ld --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 ...

then it will find the lib needed in the directory sysroot arg specified. that is expected.

I found that using the --verbose argument. Is the behaviour expected? or a bug?

That behaviour is expected. You should not be passing rpath /usr/lib options to ld.

Cheers,

Richard

#13 lore raw

Re: gconf build error

In reply to Ni Qingliang

and find some info may related:
http://sourceware.org/bugzilla/show_bug.cgi?id=10340

Quoted 267 lines · 倪庆亮

Hello,

I have made some progress after struggled a few days on it. found that the reason is located in the 'ld'.
following is my investigation (focused on the IMPLICIT depended library):

1. call ld with sysroot and rpath
$ld --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 ... -rpath /usr/lib/../lib

then it will find the lib needed in the host's rootfs, that will result error.

2. call ld with sysroot and without rpath
$ld --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 ...

then it will find the lib needed in the directory sysroot arg specified. that is expected.

I found that using the --verbose argument. Is the behaviour expected? or a bug?

Quoted 232 lines · 倪庆亮

I'm building core-image-lsb (qemux86-64 with poky-lsb), and got error when do_compile gconf. my host is ArchLinux x86-64.

the error is occured when doing sanity-check, error like:
/usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14'

the build dir is "/media/pangu/lsbt", following step can reproduce the error, my question is: why the libtool try to link with the lib on host rootfs? because I have tried to remove the host's libXrandr.so.2, then the error changed to another lib, so I ensure it linked to the host lib wrongly.

1.
cd /media/pangu/lsbt/tmp/work/x86_64-poky-linux/gconf-3.2.3-r8/GConf-3.2.3/gconf

2. export PATH="/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/bin/crossscripts:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/sbin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/sbin:/media/pangu/lsbt/tmp/sysroots/x86_64-linux//bin:/media/pangu/lsbt:/media/pangu/optimus/scripts:/media/pangu/optimus/bitbake/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/media/pangu/optimus/scripts"

3. ../x86_64-poky-linux-libtool --tag=CC --mode=link
x86_64-poky-linux-gcc -m64
--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1  -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o gconf-sanity-check-2

gconf-sanity-check.o libgconf-2.la -pthread -Wl,--export-dynamic

(quoted diff) +0 -4
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lxml2

4. and then I can get the error, after add '-t -v' in the step 2, I got:
x86_64-poky-linux-libtool: link: x86_64-poky-linux-gcc -m64 --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 -O2 -pipe -g

(quoted diff) +0 -2
-feliminate-unused-debug-types -Wall -DGCONF_ENABLE_DEBUG=1 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o .libs/gconf-sanity-check-2

gconf-sanity-check.o -pthread -Wl,--export-dynamic -t
-v ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -pthread -Wl,-rpath -Wl,/usr/lib/../lib
Using built-in specs.
COLLECT_GCC=x86_64-poky-linux-gcc
COLLECT_LTO_WRAPPER=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/lto-wrapper
Target: x86_64-poky-linux
Configured with: /media/pangu/lsbt/tmp/work-shared/gcc-4.6.3
+svnr184847-r23/gcc-4_6-branch/configure --build=x86_64-linux
--host=x86_64-linux --target=x86_64-poky-linux
--prefix=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr
--exec_prefix=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr
--bindir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux --sbindir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux --libexecdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux --datadir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share --sysconfdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/etc --sharedstatedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/com --localstatedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/var --libdir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux --includedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/include --oldincludedir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/include --infodir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share/info --mandir=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/media/pangu/lsbt/tmp/sysroots/x86_64-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=x86_64-poky-linux- --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-cheaders=c_global --with-local-prefix=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr --with-gxx-include-dir=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/include/c++ --with-sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --with-build-sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --enable-poison-system-directories --with-headers=/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/include --disable-libunwind-exceptions --with-mpfr=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr --with-system-zlib --disable-nls --enable-__cxa_atexit
Thread model: posix
gcc version 4.6.4 20120303 (prerelease) (GCC)
COMPILER_PATH=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/
LIBRARY_PATH=/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/:/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/:/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/
COLLECT_GCC_OPTIONS='--sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64' '-m64' '-O2' '-pipe' '-g' '-feliminate-unused-debug-types' '-Wall' '-D' 'GCONF_ENABLE_DEBUG=1' '-o' '.libs/gconf-sanity-check-2' '-pthread' '-t' '-v' '-pthread' '-mtune=generic' '-march=x86-64'
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/collect2 --sysroot=/media/pangu/lsbt/tmp/sysroots/qemux86-64 --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib/ld-linux-x86-64.so.2 -o .libs/gconf-sanity-check-2 -t /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crt1.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crti.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtbegin.o -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4 -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4 -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib -L/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/../../../../../x86_64-poky-linux/lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib -L/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib -O1 --hash-style=gnu --as-needed gconf-sanity-check.o --export-dynamic ./.libs/libgconf-2.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so -lresolv /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so -lpthread /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so -lrt /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so -ldl -lz -lm -rpath /usr/lib/../lib -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtend.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crtn.o
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/ld: mode elf_x86_64
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crt1.o
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crti.o
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtbegin.o
gconf-sanity-check.o
./.libs/libgconf-2.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-glib-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libdbus-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgtk-x11-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk-x11-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libatk-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangocairo-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpangoft2-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libstdc++.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgdk_pixbuf-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgio-2.0.so
-lresolv
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libresolv.so)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libcairo.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpixman-1.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpng12.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXrender.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libX11.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxcb.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXau.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libXdmcp.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libpango-1.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfontconfig.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libfreetype.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libexpat.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgobject-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libffi.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgmodule-2.0.so
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libgthread-2.0.so
/lib/libpthread.so.0
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libpthread.so.0)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libglib-2.0.so
-lrt (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/librt.so)
/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libxml2.so

(quoted diff) +0 -4
-ldl (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libdl.so)
-lz (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libz.so)
-lm (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/libm.so)
-lgcc_s

(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/libgcc_s.so)
/lib/libpthread.so.0
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libpthread.so.0)
/lib/libc.so.6 (/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/libc.so.6) (/media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/libc_nonshared.a)elf-init.oS
/lib/ld-linux-x86-64.so.2
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/ld-linux-x86-64.so.2)
-lgcc_s
(/media/pangu/lsbt/tmp/sysroots/qemux86-64/lib/../lib/libgcc_s.so) /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/x86_64-poky-linux/4.6.4/crtend.o /media/pangu/lsbt/tmp/sysroots/qemux86-64/usr/lib/../lib/crtn.o
/usr/lib/../lib/libXrandr.so.2: undefined reference to
`memcpy@GLIBC_2.14'
/media/pangu/lsbt/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.6.4/ld: link errors found, deleting executable `.libs/gconf-sanity-check-2'
collect2: ld returned 1 exit status

Quoted 111 lines · 倪庆亮

I do a clean building with the same error. I have not touched the specific glibc version.

as I said, the do_compile should use the libXrandr in build_sysroot directory, but it used it in host system. and I have checked that, there IS the lib in build_sysroot directory.

you can build it successfully, only because your host's lib is using glibc 2.13, but I'm using archlinux, all package is the newest.

the gconf used host's libXrandr, but want check its dependency in build_sysroot, that is the reason, MAYBE.

I will do a clean building again, and I don't think it will change anything.

Quoted 89 lines · Mark Hatle
Quoted 5 lines · Ni Qingliang

when building qemux86-64 arch core-image-lsb (distro is poky-lsb), I got /usr/lib/../lib/libXrandr.so.2: undefined reference to `memcpy@GLIBC_2.14' when 'do_compile' gconf 3.2.3.

the default eglibc is 2.13, why it needs 2.14?

Without anything further, the only guess I can make is that either you aren't using the version of glibc you think you are, it's gotten some host contamination, an explicit reference was added to libXrandr (doubtful), or you are using something that was built/cached from a previous build. (i.e. did you build w/ eglibc 2.14/2.15 -- and then switch back to eglibc 2.13 for some reason?)

Quoted 6 lines · Ni Qingliang

first, thanks your reply.

Because I can't use task-core-lsb on my device (flash space is not enough), I have to make a custom lsb-base image (without perl/python/graphics).

Quoted 8 lines

I have checked the "linuxstdbase", and it will change the configure option of some packages.

Indeed, I think the daemon/failure/warning fuctions should be considered in package lsb's RDEPENDS.

what I want to know is the rdepends or where is the daemon/failure/warning.

It certainly looks like a component is missing somewhere in the shell scrips that are provided by the LSB functions. I would assume that the depends/provides is setup properly to point to whatever should be providing the missing daemon, failure, warning commands. If it's not (or if by default -- non lsb mode) they're not being built, it's a definite bug. You shouldn't be able to build a non-functional systems.

Please file a defect on bugzilla.yoctoproject.org. I will attempt to investigate it (or someone else can). Hopefully it's just as a simple as a missing dependency.

--Mark

Quoted 40 lines · Mark Hatle
Quoted 39 lines · Ni Qingliang
Quoted 4 lines

Hello, I'm working on custom lsb-base image using oe-core.

and when using the lsb script, found error:

Quoted 8 lines

lsb_start_daemon line 44: daemon command not found.

similar thing happend on lsb_log_message: failure and warning command not found.

maybe these function should be defined in /etc/init.d/functions?

but there are not these function in this file (belongs to initscripts).

Did you enable the LSB distribution settings? Without this, various components may not be available.

In Poky, there is a "poky-lsb" distribution type:

DISTRO = "poky-lsb"
DISTROOVERRIDES = "poky:linuxstdbase"

DISTRO_FEATURES_append = " pam largefile opengl"
PREFERRED_PROVIDER_virtual/libx11 = "libx11"

(as well as using the core-image-lsb and/or task-core-lsb components.)

If you've tried this and those items are still broken, let me know and I can help investigate further. (One final note, only LSB 1.4 is currently supported.)

--Mark

Quoted 5 lines

Any idea?

thanks!

Quoted 5 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Quoted 5 lines

--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com

Quoted 5 lines

--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com

--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com

Signature · 3 lines
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com