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

Bug 540032

Summary: net-analyzer/netselect with sys-libs/musl - patch removes <sys/types.h> include - netselect.c:819:7: error: unknown type name ‘u_char’
Product: Gentoo Linux Reporter: James Taylor <james>
Component: Current packagesAssignee: Netmon Herd <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    

Description James Taylor 2015-02-14 04:50:23 UTC
net-analyzer/netselect fails to build under sys-libs/musl due to netselect-0.3-bsd.patch not including the <sys/types.h> include under the "#ifdef _ifdef_, which leads to build failures.

Steps to reproduce:
Attempt to emerge net-analyer/netselect under a fresh musl stage3

Expected results:
netselect compiles

Actual results:
compilation fails due to undefined types

netselect.c:819:7: error: unknown type name ‘u_char’
       u_char * buf, int cc,

etc etc
Comment 1 James Taylor 2015-02-14 04:51:32 UTC
Didn't notice my typo:

I added the <sys/types.h> include under the #ifdef __linux__ block which fixed my compilation issues
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-14 07:34:37 UTC
That's odd. It does.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-14 07:46:17 UTC
I fixed the patch which is applied in -r3 but added an -r4 as well.