The strangest error ever

13 views
Skip to first unread message

Ze'ev Atlas

unread,
Jun 30, 2024, 10:28:27 PMJun 30
to PCRE2 Discussion List
Hi all

Hi all
After we'd resolved the issue with PCRE2_EXPORT, I went trough compiling all pieces and all have compiled just fine, except of pcre2_fuzzsupport.c.  I get the errors below, despite the fact that 

/* stack size adjustment */  
#include <sys/time.h>        
#include <sys/resource.h>    

are present...  I tried quite a few things to no avail... any idea, some missing parameter?
BTW pcre2test.c that has similar code, compiles without any issue.

  252       |int LLVMFuzzerTestOneInput(unsigned char *, size_t);               
  253       |                                                                   
  254       |int LLVMFuzzerInitialize(int *argc, char ***argv)                  
  255       |{                                                                  
  256       |int rc;                                                            
  257       |struct rlimit rlim;                                                
===========> .......a...........................................................
*=ERROR===========> a - CCN3007 "struct rlimit" is undefined.                   
  258     4 |getrlimit(RLIMIT_STACK, &rlim);                                    
===========> ..........a........................................................
*=ERROR===========> a - CCN3045 Undeclared identifier RLIMIT_STACK.             
  259     5 |rlim.rlim_cur = STACK_SIZE_MB * 1024 * 1024;                       
  260     6 |if (rlim.rlim_cur > rlim.rlim_max)                                 
  261       |  {                                                                


Ze'ev Atlas

Reply all
Reply to author
Forward
0 new messages