<p dir="ltr"><br>
</p>
<p dir="ltr"></p>
<p dir="ltr">On Fri, Mar 27, 2015, 3:59 PM Christoph Willing <<a href="mailto:chris.willing@iinet.net.au">chris.willing@iinet.net.au</a>> wrote:</p>
<blockquote><p dir="ltr"></p>
<p dir="ltr">On 03/28/2015 06:59 AM, Gilles Chanteperdrix wrote:<br>
> On Sat, Mar 28, 2015 at 02:37:04AM +0700, Willy Sudiarto Raharjo wrote:<br>
>>> I am trying to build pulseaudio on slackware 14.1 from its<br>
>>> slackbuild, but I get compilation errors. First:<br>
>>><br>
>>> CC     modules/module_udev_detect_la-module-udev-detect.lo<br>
>>> modules/module-udev-detect.c: In function 'is_card_busy':<br>
>>> modules/module-udev-detect.c:199:5: warning: implicit declaration<br>
>>> of function 'offsetof' [-Wimplicit-function-declaration] len =<br>
>>> offsetof(struct dirent, d_name) + fpathconf(dirfd(card_dir),<br>
>>> _PC_NAME_MAX) + 1; ^ modules/module-udev-detect.c:199:20: error:<br>
>>> expected expression before 'struct' len = offsetof(struct dirent,<br>
>>> d_name) + fpathconf(dirfd(card_dir), _PC_NAME_MAX) + 1; ^ make[3]:<br>
>>> *** [modules/module_udev_detect_la-module-udev-detect.lo] Error 1<br>
>>><br>
>>> Then if I add --disable-udev to the configure arguments:<br>
>>><br>
>>> daemon/dumpmodules.c: In function ‘is_preloaded’:<br>
>>> daemon/dumpmodules.c:95:14: error: ‘lt_preloaded_symbols’<br>
>>> undeclared (first use in this function) for (l =<br>
>>> lt_preloaded_symbols; l->name; l++) { ^ daemon/dumpmodules.c:95:14:<br>
>>> note: each undeclared identifier is reported only once for each<br>
>>> function it appears in daemon/dumpmodules.c: In function<br>
>>> ‘pa_dump_modules’: daemon/dumpmodules.c:138:18: error:<br>
>>> ‘lt_preloaded_symbols’ undeclared (first use in this function) for<br>
>>> (l = lt_preloaded_symbols; l->name; l++) { ^ make[3]: ***<br>
>>> [daemon/pulseaudio-dumpmodules.o] Error 1<br>
>>><br>
>>><br>
>>> Has anyone succeeded in compiling this software for 14.1 recently?<br>
>><br>
>> tested on slackware64-14.1 and it's built properly<br>
>> speex:<br>
>>    MD5SUM check for speex-1.2rc2.tar.gz ... OK<br>
>>    Building package speex-1.2rc2-x86_64-1_SBo.tgz ... OK<br>
>>    Installing package speex-1.2rc2-x86_64-1_SBo.tgz ... OK<br>
>><br>
>> json-c:<br>
>>    MD5SUM check for json-c-0.11.tar.gz ... OK<br>
>>    Building package json-c-0.11-x86_64-1_SBo.tgz ... OK<br>
>>    Installing package json-c-0.11-x86_64-1_SBo.tgz ... OK<br>
>><br>
>> pulseaudio:<br>
>>    MD5SUM check for pulseaudio-5.0.tar.xz ... OK<br>
>>    Building package pulseaudio-5.0-x86_64-4_SBo.tgz ... OK<br>
>>    Installing package pulseaudio-5.0-x86_64-4_SBo.tgz ... OK<br>
>><br>
>> Have you installed the deps?<br>
><br>
> Could you tell me from which header your compilation gets offsetof ?<br>
> In my installation, it is not defined in any /usr/include headers.</p>
<p dir="ltr">This looks like a multilib issue -</p>
<p dir="ltr">man offsetof says #include <stddef.h></p>
<p dir="ltr">I see there are a few stddef.h on my system, including:<br>
     /usr/include/linux/stddef.h is just a blank line - who knows what<br>
its there for. However<br>
     /usr/src/linux-3.14.33/include/linux/stddef.h<br>
and<br>
     /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/include/stddef.h<br>
both have definitions of offsetof.</p>
<p dir="ltr">The fact that one of these is compiler-specific is what leads me to<br>
suspect a multilib issue since one might expect a mulitlib system to<br>
also have a /usr/lib/gcc/x86_64-slackware-linux/4.8.2/include/stddef.h<br>
but I don't have that on my multilib system. My guess is that you're<br>
trying to build a 32bit version and so the compiler can't find its<br>
stddef.h (its not there). You can compile a 64bit version on multilib<br>
i.e. don't do the /etc/profile.d/32dev.sh thing) and it should compile OK.<br>
</p>
</blockquote>
<p dir="ltr"></p>
<p dir="ltr">I am not sure what you are using pulseaudio for Gilles, but you could try apulse, which will detect multilib automatically.</p>
<blockquote><p dir="ltr"><br>
chris<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a><br>
<a href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="http://slackbuilds.org/faq/">http://slackbuilds.org/faq/</a><br>
</p>
</blockquote>
<p dir="ltr"><br>
</p>