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

Bug 580012

Summary: media-libs/xine-lib-1.2.6-r1 fails to build - implicit declaration of function 'major'
Product: Gentoo Linux Reporter: Bartosz Szreder <zgredder>
Component: [OLD] LibraryAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.xine-project.org/show_bug.cgi?id=574
See Also: https://bugs.xine-project.org/show_bug.cgi?id=574
https://bugs.gentoo.org/show_bug.cgi?id=642500
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 575232    
Attachments: build log fragment
emerge --info

Description Bartosz Szreder 2016-04-14 21:53:18 UTC
Created attachment 430512 [details]
build log fragment

xine-lib fails on building src/xine-utils/xine_check.c (see attached build log fragment).

Failure is caused by implicit declaration of function major(). Looking at "man major" suggests that xine_check.c is missing #include <sys/types.h> but on my system (linux-headers-4.5) the proper header file is in fact <sys/sysmacros.h>. Adding such #include directive to xine_check.c makes the build complete successfully.
Comment 1 Bartosz Szreder 2016-04-14 21:55:25 UTC
Created attachment 430514 [details]
emerge --info
Comment 2 Bartosz Szreder 2016-04-14 21:59:19 UTC
Adding as a blocker to #575232