Ticket #4 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Fails to build on mips and mipsel machines

Reported by: Sjoerd Simons <sjoerd@…> Owned by: somebody
Milestone: Avahi 0.6.10 Component: component1
Keywords: Cc:

Description

Hi,

On mips and mipsel the gcc -pthread switch doesn't link in the pthreads lib when building a shared library. See for example the output of a mips build of avahi:

http://buildd.debian.org/fetch.php?&pkg=avahi&ver=0.6.4-1&arch=mips&stamp=1137509680&file=log&as=raw

For more information see the discussion at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=273671

This can be fixed by having acx_pthread do some extra checking. Patch attached..

Attachments

pthread_flags.patch (4.1 kB) - added by Sjoerd Simons 6 years ago.
Do some extra checking at configure time for the pthread flags

Change History

Changed 6 years ago by Sjoerd Simons

Do some extra checking at configure time for the pthread flags

Changed 6 years ago by lennart

I guess it makes sense to file a bug on Debian's "autoconf-archive" package, too, since our acx_pthread.m4 is a 1:1 copy of their script.

I will merge this now, anyway.

Changed 6 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed

Applied in r1101, thank you!

Changed 6 years ago by Sjoerd Simons <sjoerd@…>

  • status changed from closed to reopened
  • resolution fixed deleted

The patch was undone in svn revision 1160.. I'll send the patch to the automake archive too, so this hopefully won't happen again :)

Changed 6 years ago by anonymous

  • status changed from reopened to closed
  • resolution set to fixed

Changed 6 years ago by sebest

  • milestone set to Avahi 0.6.10
Note: See TracTickets for help on using tickets.