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

Bug 274008

Summary: net-fs/coda-6.0.15 fails to build with _FORTIFY_SOURCE=2
Product: Gentoo Linux Reporter: Joost Ruis <joost.ruis>
Component: Current packagesAssignee: Network Filesystems <net-fs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joost Ruis 2009-06-13 13:40:48 UTC
...
repio.cc: In function 'int repair_getdfile(char*, int, int*, listhdr**)':                                                                                                                                     
repio.cc:185: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result                                                                      
repio.cc:193: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result                                                                      
repio.cc:195: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result                                                                      
repio.cc:212: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result                                                                      
repio.cc:216: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result                                                                                  
repio.cc:220: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result                                                                                  
repio.cc:224: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result                                                                      
repio.cc: In function 'int repair_parseline(char*, repair*)':                                                                                                                                                 
repio.cc:359: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:359: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc: In function 'int repair_parsefile(char*, int*, listhdr**)':                                                                                                                                         
repio.cc:416: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result                                                                                  
repio.cc: In function 'int growarray(char**, int*, int)':                                                                                                                                                     
repio.cc:465: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:465: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc: In function 'int acldecode(char*, unsigned int*)':                                                                                                                                                  
repio.cc:497: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:498: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc: In function 'void repair_printline(repair*, FILE*)':                                                                                                                                                
repio.cc:530: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:531: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:532: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:533: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:534: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:535: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:536: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:537: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:538: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:539: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:540: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:541: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
repio.cc:542: warning: deprecated conversion from string constant to 'char*'                                                                                                                                  
In file included from /usr/include/fcntl.h:217,                                                                                                                                                               
                 from /usr/include/sys/file.h:25,                                                                                                                                                             
                 from repio.cc:72:                                                                                                                                                                            
/usr/include/bits/fcntl2.h: In function 'int repair_putdfile(char*, int, listhdr*)':                                                                                                                          
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments        

Reproducible: Always
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-10 18:57:01 UTC

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