Johnny A. Solbu | 29 Jun 2012 18:50

Build failure - but why?

I have troubles getting ufoai to build on the build servers.
The package is building on my cauldron system.

Does anyone see why it doesn't build on the cluster?

http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20120629150007.solbu.valstar.12675/log/ufoai-2.4-1.mga3/build.0.20120629150424.log

The only thing I can see that fail, are these lines, but I don't know what I can do to fix it:
===
/usr/bin/ld: release-linux-x86_64/ufo/libs/mxml/mxml-private.c.o: undefined reference to symbol 'pthread_once <at>  <at> GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_once <at>  <at> GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try
adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [ufo] Error 1
make: *** Waiting for unfinished jobs....
===

The rest of the logs are here:
http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20120629150007.solbu.valstar.12675/log/ufoai-2.4-1.mga3/

--

-- 
Johnny A. Solbu
PGP key ID: 0xFA687324
Pascal Terjan | 29 Jun 2012 19:46
Picon

Re: Build failure - but why?

On Fri, Jun 29, 2012 at 9:50 AM, Johnny A. Solbu <cooker@...> wrote:
> I have troubles getting ufoai to build on the build servers.
> The package is building on my cauldron system.
>
> Does anyone see why it doesn't build on the cluster?
>
> http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20120629150007.solbu.valstar.12675/log/ufoai-2.4-1.mga3/build.0.20120629150424.log
>
> The only thing I can see that fail, are these lines, but I don't know what I can do to fix it:
> ===
> /usr/bin/ld: release-linux-x86_64/ufo/libs/mxml/mxml-private.c.o: undefined reference to
symbol 'pthread_once <at>  <at> GLIBC_2.2.5'
> /usr/bin/ld: note: 'pthread_once <at>  <at> GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try
adding it to the linker command line
> /lib64/libpthread.so.0: could not read symbols: Invalid operation
> collect2: error: ld returned 1 exit status
> make: *** [ufo] Error 1
> make: *** Waiting for unfinished jobs....
> ===
>
>
> The rest of the logs are here:
> http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20120629150007.solbu.valstar.12675/log/ufoai-2.4-1.mga3/

I would guess you need -lpthread as suggested by the message.
I don't know why it would build for you

Johnny A. Solbu | 29 Jun 2012 20:25

Re: Build failure - but why?

On Friday 29 June 2012 19:46, Pascal Terjan wrote:
> I would guess you need -lpthread as suggested by the message.

And how do I get that? :-)=

--

-- 
Johnny A. Solbu
PGP key ID: 0xFA687324
Pascal Terjan | 29 Jun 2012 20:43
Picon

Re: Build failure - but why?

On Fri, Jun 29, 2012 at 11:25 AM, Johnny A. Solbu <cooker@...> wrote:
> On Friday 29 June 2012 19:46, Pascal Terjan wrote:
>> I would guess you need -lpthread as suggested by the message.
>
> And how do I get that? :-)=

You would need to patch the Makefile

Johnny A. Solbu | 30 Jun 2012 01:29

Re: Build failure - but why?

On Friday 29 June 2012 20:43, Pascal Terjan wrote:
> >> I would guess you need -lpthread as suggested by the message.
> >
> > And how do I get that? :-)=
> 
> You would need to patch the Makefile

Oh. Right. 
Then howcome I didn't have to do that on Mandriva a few months back on the exact same version?

The only difference in the spec from mdv is that on Cauldron the buildrequire "pkgconfig(gtk+)" was
invalid or didn't exist, whereas it does in mdv.
I suspect that  the buildrequire gtk2-devel isn't enough, but I dont know what else I'm missing.

--

-- 
Johnny A. Solbu
PGP key ID: 0xFA687324
Pascal Terjan | 30 Jun 2012 02:42
Picon

Re: Build failure - but why?

On Fri, Jun 29, 2012 at 4:29 PM, Johnny A. Solbu <cooker@...> wrote:
> On Friday 29 June 2012 20:43, Pascal Terjan wrote:
>> >> I would guess you need -lpthread as suggested by the message.
>> >
>> > And how do I get that? :-)=
>>
>> You would need to patch the Makefile
>
> Oh. Right.
> Then howcome I didn't have to do that on Mandriva a few months back on the exact same version?
>
> The only difference in the spec from mdv is that on Cauldron the buildrequire "pkgconfig(gtk+)" was
invalid or didn't exist, whereas it does in mdv.
> I suspect that  the buildrequire gtk2-devel isn't enough, but I dont know what else I'm missing.

It may only support gtk1 and not gtk2 so it now builds without gtk
support, and gtk causes to link to pthread so the build is broken when
not having gtk
(just a guess)

Johnny A. Solbu | 30 Jun 2012 06:10

Re: Build failure - but why?

On Friday 29 June 2012 19:46, Pascal Terjan wrote:
> I would guess you need -lpthread as suggested by the message.

That definately didn't work. It barks up a long list of unused libs warning.

This is really frustrating.
No matter what I try the package (ufoai) builds localy on cauldron, but /Not/ on the build servers.
it builds on Mandriva 2010.2, 2011, 2012 and Mageia Cauldron. Just not on Mageias build servers.
And as far as I can tell from the logs, the build servers are installing all required deps.

I am most definately missing something.

--

-- 
Johnny A. Solbu
PGP key ID: 0xFA687324
Pascal Terjan | 30 Jun 2012 06:24
Picon

Re: Build failure - but why?

On Fri, Jun 29, 2012 at 9:10 PM, Johnny A. Solbu <cooker@...> wrote:
> On Friday 29 June 2012 19:46, Pascal Terjan wrote:
>> I would guess you need -lpthread as suggested by the message.
>
> That definately didn't work. It barks up a long list of unused libs warning.
>
> This is really frustrating.
> No matter what I try the package (ufoai) builds localy on cauldron, but /Not/ on the build servers.
> it builds on Mandriva 2010.2, 2011, 2012 and Mageia Cauldron. Just not on Mageias build servers.
> And as far as I can tell from the logs, the build servers are installing all required deps.
>
> I am most definately missing something.

You need a BuildRequires: mxml-devel

Johnny A. Solbu | 30 Jun 2012 06:55

[SOLVED] Build failure - but why?

On Saturday 30 June 2012 06:24, Pascal Terjan wrote:
> > I am most definately missing something.
> 
> You need a BuildRequires: mxml-devel

Success! \o/
Thank you so much.

--

-- 
Johnny A. Solbu
PGP key ID: 0xFA687324

Gmane