[Darshan-users] DARSHAN 3.3.1 PATH_MAX Undefined

Phil Carns carns at mcs.anl.gov
Tue Jan 18 07:28:12 CST 2022


And here is a PR with the more complete fix if you would like to try 
it.  We'll get this in before the next release:

https://github.com/darshan-hpc/darshan/pull/627

thanks,

-Phil

On 1/14/22 5:16 PM, Phil Carns wrote:
> Hi Francesco,
>
> Thank you for the bug report.  I just had a look over how we are using 
> that constant in the code.  I think it might be best in the long run 
> to switch this to our own internal constant value.  I opened up a 
> github issue here to track it: 
> https://github.com/darshan-hpc/darshan/issues/623.
>
> In the mean time you should be able to get past this by adding 
> limits.h to darshan.h, I think.  As Kevin points out it we have 
> probably been inadvertently picking up a header include for it somewhere.
>
> thanks,
>
> -Phil
>
> On 1/5/22 12:23 PM, Harms, Kevin wrote:
>
>> Francesco,
>>
>>    it looks like limits.h might not be included. This could be some 
>> difference in what MPICH versus IntelMPI headers include. We can take 
>> a look.
>>
>> kevin
>>
>> ________________________________________
>> From: Darshan-users <darshan-users-bounces at lists.mcs.anl.gov> on 
>> behalf of francesco iannone <francesco.iannone at enea.it>
>> Sent: Wednesday, January 5, 2022 11:14 AM
>> To: darshan-users at lists.mcs.anl.gov
>> Subject: [Darshan-users] DARSHAN 3.3.1 PATH_MAX Undefined
>>
>> Dear Support
>>
>> I’m compiling darshan 3.3.1 cloned by github.
>> I’ve built with IntelMPI 2020 and hdf5 1.12.1.
>>
>> I had errors when configured in darshan-runtime, the first of them is 
>> as follow:
>>
>> In file included from darshan-core-init-finalize.c(20):
>> darshan.h(124): error: identifier "PATH_MAX" is undefined
>>        char mmap_log_name[PATH_MAX];
>>
>> can you help on it?
>>
>> Thanks in advance
>>
>>
>> Francesco Iannone
>> ENEA Italian National Agency
>> ICT Division - HPC Lab (Head)
>> ENEA Frascati Research Centre
>> Via E. Fermi 45
>> 00044 Frascati (Roma) Italy
>> phone 00-39-06-9400-5124
>> mailto:francesco.iannone<at>enea.it
>> http://www.afs.enea.it/iannone
>>
>>
>>
>>
>> ________________________________
>>
>> Questo messaggio e i suoi allegati sono indirizzati esclusivamente 
>> alle persone indicate e la casella di posta elettronica da cui è 
>> stata inviata è da qualificarsi quale strumento aziendale.
>>
>> La diffusione, copia o qualsiasi altra azione derivante dalla 
>> conoscenza di queste informazioni sono rigorosamente vietate (art. 
>> 616 c.p, D.Lgs. n. 196/2003 s.m.i. e GDPR Regolamento - UE 2016/679).
>>
>> Qualora abbiate ricevuto questo documento per errore siete 
>> cortesemente pregati di darne immediata comunicazione al mittente e 
>> di provvedere alla sua distruzione. Grazie.
>>
>> This e-mail and any attachments is confidential and may contain 
>> privileged information intended for the addressee(s) only.
>>
>> Dissemination, copying, printing or use by anybody else is 
>> unauthorised (art. 616 c.p, D.Lgs. n. 196/2003 and subsequent 
>> amendments and GDPR UE 2016/679).
>>
>> If you are not the intended recipient, please delete this message and 
>> any attachments and advise the sender by return e-mail. Thanks.
>> ________________________________
>> _______________________________________________
>> Darshan-users mailing list
>> Darshan-users at lists.mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/darshan-users
> _______________________________________________
> Darshan-users mailing list
> Darshan-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/darshan-users


More information about the Darshan-users mailing list