Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325529 - Samba will not configure properly with avahi option enabled
Summary: Samba will not configure properly with avahi option enabled
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 16:49 UTC by Reuben Martin
Modified: 2010-07-11 12:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
config log (config.log.bz2,73.95 KB, application/octet-stream)
2010-06-26 16:46 UTC, Reuben Martin
Details
Symbol Table (symbols.txt,14.31 KB, text/plain)
2010-06-26 17:44 UTC, Reuben Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2010-06-25 16:49:32 UTC
checking avahi-common/watch.h usability... yes
checking avahi-common/watch.h presence... yes
checking for avahi-common/watch.h... yes
checking avahi-client/client.h usability... yes
checking avahi-client/client.h presence... yes
checking for avahi-client/client.h... yes
checking for avahi_client_new in -lavahi-client... yes
checking for avahi_strerror in -lavahi-common... no
configure: error: avahi support not available

Reproducible: Always
Comment 1 Reuben Martin 2010-06-25 16:50:57 UTC
net-dns/avahi-0.6.25-r1  USE="autoipd dbus gdbm gtk howl-compat ipv6 mdnsresponder-compat python qt4 -bookmarks -doc -mono -test"
Comment 2 Rafał Mużyło 2010-06-25 19:34:02 UTC
Attach your config.log and check if the lib provides the symbol.
Comment 3 Reuben Martin 2010-06-26 16:46:04 UTC
Created attachment 236649 [details]
config log

too big to attach without compression
Comment 4 Reuben Martin 2010-06-26 17:44:58 UTC
Created attachment 236655 [details]
Symbol Table
Comment 5 Rafał Mużyło 2010-06-26 19:28:19 UTC
First, avahi-client!=avahi-common
Well, as the errors clearly show, the problem lies with avahi
- it doesn't link avahi-common with pthread.
Do you have its build log ?
Comment 6 Reuben Martin 2010-06-26 20:18:15 UTC
ah, sorry. I misunderstood what you wanted. I assumed you were referring to avahi-common symbol table since that's where the configure check failed.

Anyway, I know what the problem is. I don't know why I didn't recognize it earlier. Your comment about pthreads clued me in.

I had been experimenting a few weeks back with openmp and seeing if any kind of benefits could be gained on SMP machines when building a system with openmp.

I don't know what the problem is, but apparently this is a nasty bug somewhere; not really sure if it's with the compiler, linker, openmp, or even perhaps even something else. But apparently quite a few packages don't link against pthreads like they should when built with the -fopenmp build flag set. They DO work when you set BOTH -fopenmp and -lpthreads explicitly.


I thought I had gone back and rebuilt everything that I originally compiled with -fopenmp, but apparently I missed avahi. Recompiled avahi, and now samba doesn't have any issues configuring.

You will probably want to mark this as a duplicate of 323505 where I originally figured out what was going on and where other maintainers are still trying to figure out how to deal with this issue.
Comment 7 Reuben Martin 2010-06-26 20:20:41 UTC
And I just realized you were the one who initially responded to that one too... :P
Comment 8 Patrick Lauer gentoo-dev 2010-07-11 12:11:21 UTC
silly openmp :)