Looks like cgp_close() is a cgns-4.3.0 feature. Satish
--- 4.2.0: nm -Ao libcgns.so |grep close |grep ' T ' libcgns.so:00000000000ae832 T ADFI_close_file libcgns.so:0000000000061492 T cg_close libcgns.so:000000000005ece4 T cgio_close_file 4.3.0: nm -Ao libcgns.so |grep close |grep ' T ' libcgns.so:00000000000b9df1 T ADFI_close_file libcgns.so:000000000006c2ab T cg_close libcgns.so:0000000000068ed8 T cgio_close_file libcgns.so:00000000000cfd65 T cgp_close On Sat, 29 Oct 2022, Antonio T. sagitter wrote: > Hi all. > > In PETSc 3.18.1 on Fedora 36, configure is failing for undefined reference to > CGNS libraries: > > Possible ERROR while running linker: exit code 1 > stderr: > /usr/bin/ld: /tmp/ccvhtRGQ.ltrans0.ltrans.o: in function `main': > /tmp/petsc-o02hjls3/config.libraries/conftest.c:5: undefined reference to > `cgp_close' > collect2: error: ld returned 1 exit status > Linker output before filtering: > > /usr/bin/ld: /tmp/ccvhtRGQ.ltrans0.ltrans.o: in function `main': > /tmp/petsc-o02hjls3/config.libraries/conftest.c:5: undefined reference to > `cgp_close' > collect2: error: ld returned 1 exit status > : > Linker output after filtering: > /usr/bin/ld: /tmp/ccvhtRGQ.ltrans0.ltrans.o: in function `main': > /tmp/petsc-o02hjls3/config.libraries/conftest.c:5: undefined reference to > `cgp_close' > collect2: error: ld returned 1 exit status: > **** Configure header /tmp/petsc-o02hjls3/confdefs.h **** > > We are using CGNS-4.2.0 > > Regards. >