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

Bug 550908

Summary: dev-java/rxtx-2.2_pre2 fails to build with USE lfd
Product: Gentoo Linux Reporter: Marco Clocchiatti <ziapannocchia>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: fordfrog, luisav.ferreira
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info
build log
emerge --info (as plain text)
environment
workaround to compile ebuild.

Description Marco Clocchiatti 2015-05-31 20:44:26 UTC
dev-java/rxtx-2.2_pre2 fails to build with USE fld.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-java/rxt
Actual Results:  
the ebuild failes with error:

src/lfd/lockdaemon.c: In function ‘main’:
src/lfd/lockdaemon.c:829:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  write( 0, str, strlen(str) );

Expected Results:  
it should compile.

GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.5.5"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
Comment 1 Marco Clocchiatti 2015-05-31 20:45:04 UTC
Created attachment 404392 [details]
emerge info
Comment 2 Marco Clocchiatti 2015-05-31 20:46:24 UTC
Created attachment 404394 [details]
build log
Comment 3 Marco Clocchiatti 2015-05-31 20:48:00 UTC
Created attachment 404396 [details]
emerge --info (as plain text)
Comment 4 Marco Clocchiatti 2015-05-31 20:49:17 UTC
Created attachment 404398 [details]
environment
Comment 5 James Le Cuirot gentoo-dev 2015-05-31 20:50:16 UTC
The flag is lfd, not fld, and that part of the output is not the actual error but yes, it fails for me too.
Comment 6 Marco Clocchiatti 2016-02-17 20:10:43 UTC
Created attachment 425746 [details, diff]
workaround to compile ebuild.

the error reported in teh ebuild log is:

src/lfd/lockdaemon.c: In function ‘check_group_uucp’:
src/lfd/lockdaemon.c:473:14: error: ‘NGROUPS_MAX’ undeclared (first use in this function)
  gid_t list[ NGROUPS_MAX ];

in the attachment, a workaround patch, sufficient to compile the ebuild.
Comment 7 James Le Cuirot gentoo-dev 2016-02-17 21:24:13 UTC
Fixed in 2.2_pre2-r1. The correct fix was to include limits.h. I'll close this when stable.
Comment 8 Marco Clocchiatti 2016-02-18 02:52:01 UTC
ok.
but now we have a 2.2_pre2 version with not tilde KEYWORDS which does not compile and a 2.2_pre2-r1 with tilde KEYWORDS which does.
Comment 9 James Le Cuirot gentoo-dev 2016-02-18 08:45:57 UTC
(In reply to Marco Clocchiatti from comment #8)
> ok.
> but now we have a 2.2_pre2 version with not tilde KEYWORDS which does not
> compile and a 2.2_pre2-r1 with tilde KEYWORDS which does.

Right, that's how things work. You can't just mark things stable straight away except in exceptional circumstances like security. I must admit that I find this policy odd at times but I don't make the rules.
Comment 10 Miroslav Šulc gentoo-dev 2020-09-18 08:32:09 UTC
fixed in 2.2_pre2-r1