Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 542484

Summary: =mail-mta/nullmailer-1.13-r5: fails to build on musl because it breaks POSIX.
Product: Gentoo Linux Reporter: Anthony Basile <blueness>
Component: [OLD] ServerAssignee: Net-Mail Packages <net-mail+disabled>
Severity: normal CC: jlec, robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    

Description Anthony Basile gentoo-dev 2015-03-07 22:22:36 UTC
I reported this problem upstream at:

but it looks like upstream is lame.  No new commits since Sep 13, 2013.

In a nutshell, lib/fdbuf/fdobuf.h references uid_t and gid_t which are defined in unistd.h by POSIX.  Because these definitions are indirectly pulled in in glibc, it works there, but on other c standard libs, like musl, it fails.  The fix is trivial, just add `#include <unistd.h>` to fdobuf.h.

This change fixes the musl issue and is harmless on glibc and uclibc.

Can I add this without a revbump?
Comment 1 Anthony Basile gentoo-dev 2015-03-08 01:51:29 UTC
My brain is going soft!

*** This bug has been marked as a duplicate of bug 538482 ***