fd.o: In function `get_device':
fd.c:(.text+0x72d): undefined reference to `major'
collect2: error: ld returned 1 exit status
Makefile:1735: recipe for target 'wineserver-installed' failed
make: *** [wineserver-installed] Error 1
make: Leaving directory '/var/tmp/portage/app-emulation/wine-9999/work/wine-9999-abi_x86_32.x86/server'
Makefile:18665: recipe for target 'server' failed
make: *** [server] Error 2
make: *** Waiting for unfinished jobs....
Can you please submit full build.log and emerge --info ?
I had exactly the same issue and I found why build is failed at that point and printed error like jospezial's given thing.
'major' is a macro, and it moved from somewhere to sys/sysmacros.h(which is belongs to glibc-2.23), now.
this problem occurs some of file which uses `major` and `minor` macro.
i made simple patch for this issue. I created patch for 1.9.7, and
I tested patch for 1.9.5 and 1.9.7 with glibc-2.23 two times, it worked.
but I'm not sure that this patch is really working on another machine(should be tested).
( please test together ;) )
if you want to test this patch, you may copy patch to under app-emulation/wine/files
and add below line within "local PATCHES" array variable ;)
Created attachment 430692 [details, diff]
This will eliminate invalid(or undefined) reference for some of macro symbol
Thanks for reporting it upstream. Ideally, I'd like to cherry pick upstream's fix, so I'm going to hold off on using your patch, but thank you very much for the submission. Much appreciated.
the version checks don't make sense. only rely on HAVE_SYS_SYSMACROS_H.
actually, since this is an autoconf based project, could you change to using the AC_HEADER_MAJOR macro ? the autoconf manual describes it:
could you attach that patch to the upstream bug report ?
Created attachment 430724 [details, diff]
This patch is modified from initial one
Ok, I modified patch working the same thing by following GNU autoconf manual given by SpanKY.
I will also submit this patch into the upstream bugreport.
Thank you for advise.
that looks great. thanks!
added your fix pushed upstream to the 1.9.7 ebuild:
*** Bug 580146 has been marked as a duplicate of this bug. ***