Discussion:
Buildroot ARM toolchain build Error: libexpat
Arun Reddy
2008-04-28 22:32:07 UTC
Permalink
Hi everyone,

I have done a kernel configuration for at91sam9263ek, and I am now going
through the build process. I have fixed up some errors I encountered with
missing packages, but I then encountered that...

Checking for XML_ParserCreate in -lexpat... no
Checking for XML_ParserCreate in -lbsdxml... no
Configure: error: *** neither libexpat not libbsdxml could be found ***

I made sure to install the expat package (apt-get install libexpat-dev) and
tried to find out if I needed to install the libbsdxml package as well, but
couldn't find enough information online about what libbsdxml is (it does
seem like it's just another name for libexpat) or any solutions to this
error.

Anyone know what the problem here is, and what package I actually need?
Thanks!
Arun Reddy
2008-04-29 22:07:42 UTC
Permalink
A little more info on the problem. I tried to build again using a different
configuration just to see if the problem was unique, but I ran into the same
one again. After a little bit of Google searching, it seems to me that there
might be an undefined symbol error. I looked at the config.log file to see
if I could find it but couldn't pinpoint anything.

I should also point out, when I look at config.log:

(/root/buildroot/build_arm/avahi-0.6.22/config.log), I see that the line $
./configure has "--disable-expat" in it. Is this why my build is getting the
error that libexpat can't be found?

Thanks for any help!
Post by Arun Reddy
Hi everyone,
I have done a kernel configuration for at91sam9263ek, and I am now going
through the build process. I have fixed up some errors I encountered with
missing packages, but I then encountered that...
Checking for XML_ParserCreate in -lexpat... no
Checking for XML_ParserCreate in -lbsdxml... no
Configure: error: *** neither libexpat not libbsdxml could be found ***
I made sure to install the expat package (apt-get install libexpat-dev)
and tried to find out if I needed to install the libbsdxml package as well,
but couldn't find enough information online about what libbsdxml is (it does
seem like it's just another name for libexpat) or any solutions to this
error.
Anyone know what the problem here is, and what package I actually need?
Thanks!
Thiago A. Corrêa
2008-04-29 22:18:48 UTC
Permalink
Hi,

If this is a package from buildroot that you are compiling, it should
be looking for libexpat in the staging_dir, not in the system
libs/includes.

Did you enable expat in the menuconfig? Which package is failing?
Could you share your .config file?

Kind Regards,
Thiago A. Correa
Post by Arun Reddy
A little more info on the problem. I tried to build again using a different
configuration just to see if the problem was unique, but I ran into the same
one again. After a little bit of Google searching, it seems to me that there
might be an undefined symbol error. I looked at the config.log file to see
if I could find it but couldn't pinpoint anything.
(/root/buildroot/build_arm/avahi-0.6.22/config.log), I see that the line $
./configure has "--disable-expat" in it. Is this why my build is getting the
error that libexpat can't be found?
Thanks for any help!
Post by Arun Reddy
Hi everyone,
I have done a kernel configuration for at91sam9263ek, and I am now going
through the build process. I have fixed up some errors I encountered with
missing packages, but I then encountered that...
Post by Arun Reddy
Checking for XML_ParserCreate in -lexpat... no
Checking for XML_ParserCreate in -lbsdxml... no
Configure: error: *** neither libexpat not libbsdxml could be found ***
I made sure to install the expat package (apt-get install libexpat-dev)
and tried to find out if I needed to install the libbsdxml package as well,
but couldn't find enough information online about what libbsdxml is (it does
seem like it's just another name for libexpat) or any solutions to this
error.
Post by Arun Reddy
Anyone know what the problem here is, and what package I actually need?
Thanks!
_______________________________________________
buildroot mailing list
http://busybox.net/mailman/listinfo/buildroot
Arun Reddy
2008-04-29 23:43:30 UTC
Permalink
Hi Thiago,

I actually did not have expat in the menuconfig. The build process fails
after it does a check for a whole bunch of files shown here...

Loading Image...

I am not sure whether it needs expat to actually complete the build process
or not. I went ahead and changed my buildroot .config file to include expat
just in case, but I still get the same error. I attached my .config file as
you requested. (I had to save it as a .txt file because I am using
VirtualBox and my shared folder wouldn't accept the .config file itself).
Thank you for your help.
Post by Thiago A. Corrêa
Hi,
If this is a package from buildroot that you are compiling, it should
be looking for libexpat in the staging_dir, not in the system
libs/includes.
Did you enable expat in the menuconfig? Which package is failing?
Could you share your .config file?
Kind Regards,
Thiago A. Correa
Post by Arun Reddy
A little more info on the problem. I tried to build again using a
different
Post by Arun Reddy
configuration just to see if the problem was unique, but I ran into the
same
Post by Arun Reddy
one again. After a little bit of Google searching, it seems to me that
there
Post by Arun Reddy
might be an undefined symbol error. I looked at the config.log file to
see
Post by Arun Reddy
if I could find it but couldn't pinpoint anything.
(/root/buildroot/build_arm/avahi-0.6.22/config.log), I see that the line
$
Post by Arun Reddy
./configure has "--disable-expat" in it. Is this why my build is getting
the
Post by Arun Reddy
error that libexpat can't be found?
Thanks for any help!
Post by Arun Reddy
Hi everyone,
I have done a kernel configuration for at91sam9263ek, and I am now
going
Post by Arun Reddy
through the build process. I have fixed up some errors I encountered
with
Post by Arun Reddy
missing packages, but I then encountered that...
Post by Arun Reddy
Checking for XML_ParserCreate in -lexpat... no
Checking for XML_ParserCreate in -lbsdxml... no
Configure: error: *** neither libexpat not libbsdxml could be found
***
Post by Arun Reddy
Post by Arun Reddy
I made sure to install the expat package (apt-get install
libexpat-dev)
Post by Arun Reddy
and tried to find out if I needed to install the libbsdxml package as
well,
Post by Arun Reddy
but couldn't find enough information online about what libbsdxml is (it
does
Post by Arun Reddy
seem like it's just another name for libexpat) or any solutions to this
error.
Post by Arun Reddy
Anyone know what the problem here is, and what package I actually
need?
Post by Arun Reddy
Thanks!
_______________________________________________
buildroot mailing list
http://busybox.net/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
http://busybox.net/mailman/listinfo/buildroot
Arun Reddy
2008-04-30 14:02:35 UTC
Permalink
I'd just like to point out that I located "libexpat" in my build system and
a bunch of files are under /usr/lib as libexpat.a, libexpat.la, libexpat.so,
etc. Do you guys these need to be moved somewhere in
/root/buildroot/build_arm/staging_dir/ for them to be located?
Post by Arun Reddy
Hi Thiago,
I actually did not have expat in the menuconfig. The build process fails
after it does a check for a whole bunch of files shown here...
http://img209.imageshack.us/img209/4053/buildrootproblemra9.jpg
I am not sure whether it needs expat to actually complete the build
process or not. I went ahead and changed my buildroot .config file to
include expat just in case, but I still get the same error. I attached my
.config file as you requested. (I had to save it as a .txt file because I am
using VirtualBox and my shared folder wouldn't accept the .config file
itself). Thank you for your help.
Post by Thiago A. Corrêa
Hi,
If this is a package from buildroot that you are compiling, it should
be looking for libexpat in the staging_dir, not in the system
libs/includes.
Did you enable expat in the menuconfig? Which package is failing?
Could you share your .config file?
Kind Regards,
Thiago A. Correa
Post by Arun Reddy
A little more info on the problem. I tried to build again using a
different
Post by Arun Reddy
configuration just to see if the problem was unique, but I ran into
the same
Post by Arun Reddy
one again. After a little bit of Google searching, it seems to me that
there
Post by Arun Reddy
might be an undefined symbol error. I looked at the config.log file
to see
Post by Arun Reddy
if I could find it but couldn't pinpoint anything.
(/root/buildroot/build_arm/avahi-0.6.22/config.log), I see that the
line $
Post by Arun Reddy
./configure has "--disable-expat" in it. Is this why my build is
getting the
Post by Arun Reddy
error that libexpat can't be found?
Thanks for any help!
Post by Arun Reddy
Hi everyone,
I have done a kernel configuration for at91sam9263ek, and I am now
going
Post by Arun Reddy
through the build process. I have fixed up some errors I encountered
with
Post by Arun Reddy
missing packages, but I then encountered that...
Post by Arun Reddy
Checking for XML_ParserCreate in -lexpat... no
Checking for XML_ParserCreate in -lbsdxml... no
Configure: error: *** neither libexpat not libbsdxml could be found
***
Post by Arun Reddy
Post by Arun Reddy
I made sure to install the expat package (apt-get install
libexpat-dev)
Post by Arun Reddy
and tried to find out if I needed to install the libbsdxml package as
well,
Post by Arun Reddy
but couldn't find enough information online about what libbsdxml is
(it does
Post by Arun Reddy
seem like it's just another name for libexpat) or any solutions to
this
Post by Arun Reddy
error.
Post by Arun Reddy
Anyone know what the problem here is, and what package I actually
need?
Post by Arun Reddy
Thanks!
_______________________________________________
buildroot mailing list
http://busybox.net/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
http://busybox.net/mailman/listinfo/buildroot
Arun Reddy
2008-04-30 23:07:14 UTC
Permalink
Another update.

I noticed that the error I got:

Checking for XML_ParserCreate in -lexpat... no
Checking for XML_ParserCreate in -lbsdxml... no
Configure: error: *** neither libexpat not libbsdxml could be found ***

shows -lexpat and -lbsdxml. So I tried setting up the LD_LIBRARY_PATH
environment variable to include the directory where the libexpat is located.
I went ahead and did that and then did "export" with the expectation that
libexpat could now be located, but the build still fails with the same
error.

Also, I tried "enabling" expat in the configure file under
/root/buildroot/build_arm/avahi-0.6.22. I called ./configure
--enable-expat=yes, but I end up with an error with that as well, it
complains about some PKG_CONFIG_PATH variable which I cannot find or change
in the configure file.

Any ideas?
Post by Arun Reddy
I'd just like to point out that I located "libexpat" in my build system
and a bunch of files are under /usr/lib as libexpat.a, libexpat.la,
libexpat.so, etc. Do you guys these need to be moved somewhere in
/root/buildroot/build_arm/staging_dir/ for them to be located?
Post by Arun Reddy
Hi Thiago,
I actually did not have expat in the menuconfig. The build process fails
after it does a check for a whole bunch of files shown here...
http://img209.imageshack.us/img209/4053/buildrootproblemra9.jpg
I am not sure whether it needs expat to actually complete the build
process or not. I went ahead and changed my buildroot .config file to
include expat just in case, but I still get the same error. I attached my
.config file as you requested. (I had to save it as a .txt file because I am
using VirtualBox and my shared folder wouldn't accept the .config file
itself). Thank you for your help.
On Tue, Apr 29, 2008 at 3:18 PM, Thiago A. Corrêa <
Post by Thiago A. Corrêa
Hi,
If this is a package from buildroot that you are compiling, it should
be looking for libexpat in the staging_dir, not in the system
libs/includes.
Did you enable expat in the menuconfig? Which package is failing?
Could you share your .config file?
Kind Regards,
Thiago A. Correa
Post by Arun Reddy
A little more info on the problem. I tried to build again using a
different
Post by Arun Reddy
configuration just to see if the problem was unique, but I ran into
the same
Post by Arun Reddy
one again. After a little bit of Google searching, it seems to me
that there
Post by Arun Reddy
might be an undefined symbol error. I looked at the config.log file
to see
Post by Arun Reddy
if I could find it but couldn't pinpoint anything.
(/root/buildroot/build_arm/avahi-0.6.22/config.log), I see that the
line $
Post by Arun Reddy
./configure has "--disable-expat" in it. Is this why my build is
getting the
Post by Arun Reddy
error that libexpat can't be found?
Thanks for any help!
Post by Arun Reddy
Hi everyone,
I have done a kernel configuration for at91sam9263ek, and I am now
going
Post by Arun Reddy
through the build process. I have fixed up some errors I encountered
with
Post by Arun Reddy
missing packages, but I then encountered that...
Post by Arun Reddy
Checking for XML_ParserCreate in -lexpat... no
Checking for XML_ParserCreate in -lbsdxml... no
Configure: error: *** neither libexpat not libbsdxml could be
found ***
Post by Arun Reddy
Post by Arun Reddy
I made sure to install the expat package (apt-get install
libexpat-dev)
Post by Arun Reddy
and tried to find out if I needed to install the libbsdxml package
as well,
Post by Arun Reddy
but couldn't find enough information online about what libbsdxml is
(it does
Post by Arun Reddy
seem like it's just another name for libexpat) or any solutions to
this
Post by Arun Reddy
error.
Post by Arun Reddy
Anyone know what the problem here is, and what package I actually
need?
Post by Arun Reddy
Thanks!
_______________________________________________
buildroot mailing list
http://busybox.net/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
http://busybox.net/mailman/listinfo/buildroot
Loading...