openSUSE Forums > openSUSE Build Service (OBS) » Configuring for using libexpat fails

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-Aug-2009, 07:17
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 3
renekrell hasn't been rated much yet
Default Configuring for using libexpat fails

I'm new to the OBS and would appreciate some help in patching the build files for this package:
https://build.opensuse.org/package/s...me%3Arenekrell

During building I get on all platforms and repositories the following error:
Code:
...
installing libexpat1-2.0.1-88.15
...
installing libexpat-devel-2.0.1-88.15
...
checking for XML_ParserCreate_MM in -lexpat... no
configure: error: You need the eXpat xml parser
http://expat.sourceforge.net/
error: Bad exit status from /var/tmp/rpm-tmp.25610 (%build)
As you can see the expat libraries are installed, and the symbol XML_ParserCreate_MM can be found in /usr/lib/libexpat.so on my local system using OpenSUSE 11.2 Factory (latest updates):
Code:
rkrell@rkrell:~> strings /usr/lib/libexpat.so |grep XML_ParserCreate_MM
XML_ParserCreate_MM
Furthermore, if I put the files from the build system to my local system (usr/src/packages/*) and launch
Code:
rpmbuild -ba sflphone.spec
this error doesn't occur at all.

The expat check itself comes from this file from the original sources tarball:
sflphone-0.9.6/sflphone-common/configure.ac:
Code:
AC_CHECK_LIB([expat], XML_ParserCreate_MM,
		[AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false)],
		have_expat=false)

if ! $have_expat; then
AC_MSG_ERROR([You need the eXpat xml parser]
		[http://expat.sourceforge.net/])
fi
What's the difference between my local 11.2 and the OBS here?
What can I do?

Last edited by renekrell; 21-Aug-2009 at 07:26. Reason: Added some useful information
Reply With Quote
  #2 (permalink)  
Old 21-Aug-2009, 10:02
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,701
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Configuring for using libexpat fails

Quote:
Originally Posted by renekrell
I'm new to the OBS and would appreciate some help in patching the build
files for this package:
http://tinyurl.com/qnf2yg
qnf2yg ->
https://build.opensuse.org/package/s...me%3Arenekrell

During building I get on all platforms and repositories the following
error:

Code:
--------------------

...
installing libexpat1-2.0.1-88.15
...
installing libexpat-devel-2.0.1-88.15
...
checking for XML_ParserCreate_MM in -lexpat... no
configure: error: You need the eXpat xml parser
http://expat.sourceforge.net/
error: Bad exit status from /var/tmp/rpm-tmp.25610 (%build)
--------------------


As you can see the expat libraries are installed, and the symbol
XML_ParserCreate_MM can be found in /usr/lib/libexpat.so on my local
system using OpenSUSE 11.2 Factory (latest updates):

Code:
--------------------
rkrell@rkrell:~> strings /usr/lib/libexpat.so |grep
XML_ParserCreate_MM XML_ParserCreate_MM
--------------------


Furthermore, if I put the files from the build system to my local
system (usr/src/packages/*) and launch

Code:
--------------------
rpmbuild -ba sflphone.spec
--------------------

this error doesn't occur at all.

What's the difference between my local 11.2 and the OBS here?
What can I do?
Hi
On your test machine do you have libxml2-devel installed? If so, remove
it and see if it builds. If it doesn't then add to your build requires.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 21:07, 2 users, load average: 2.36, 2.21, 2.26
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Reply With Quote
  #3 (permalink)  
Old 22-Aug-2009, 15:43
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 3
renekrell hasn't been rated much yet
Default Re: Configuring for using libexpat fails

I haven't been on the local system I mentioned, but explicitely adding libxml2-devel to BuildRequires in OBS didn't help, unfortunately.
Reply With Quote
  #4 (permalink)  
Old 23-Aug-2009, 10:02
Busy Penguin
 
Join Date: Jun 2008
Posts: 390
RedDwarf hasn't been rated much yet
Default Re: Configuring for using libexpat fails

In this kind of cases what you should do is build locally (osc build) and check the config.log in the build chroot (/var/tmp/build).

In this case the problem is the lack of a C++ compiler to compile the test program to see if expat provides XML_ParserCreate_MM. A BuildRequires: gcc-c++ will fix the problem.
Reply With Quote
  #5 (permalink)  
Old 25-Aug-2009, 03:25
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 3
renekrell hasn't been rated much yet
Default Re: Configuring for using libexpat fails

Quote:
Originally Posted by RedDwarf View Post
In this kind of cases what you should do is build locally (osc build) and check the config.log in the build chroot (/var/tmp/build).

In this case the problem is the lack of a C++ compiler to compile the test program to see if expat provides XML_ParserCreate_MM. A BuildRequires: gcc-c++ will fix the problem.
Yes, this one fixed it. Thank you.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2