<div dir="ltr">Barry, my configure log looks pretty much the same as the one Jose sent. <div><br></div><div>The problem seems to be that now PETSc looks for the "socket()" function in -lsocket -lnsl, however in my system I have no libsocket.so (so the configure test fails to link) and using the socket() function does not require linking with any special library.<br><br><div><font face="courier new, monospace">$ cat tmp.c<br></font><div><font face="courier new, monospace">#include <sys/socket.h><br>int main() {socket(0,0,0);}</font></div><div><font face="courier new, monospace"><br>$ gcc tmp.c # no linker error<br><br></font></div><div><font face="courier new, monospace">$ ldd a.out <br> linux-vdso.so.1 (0x00007fff89873000)<br> libc.so.6 => /lib64/libc.so.6 (0x00007f441ed89000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007f441ef8f000)<br></font></div></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">$ nm a.out | grep socket<br> U socket@@GLIBC_2.2.5</font><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 18 Jul 2019 at 17:00, Jose E. Roman <<a href="mailto:jroman@dsic.upv.es">jroman@dsic.upv.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My recent PR#1886 is also related to what Lisandro reports:<br>
<a href="https://bitbucket.org/petsc/petsc/pull-requests/1886/fix-compiler-warning/diff" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/petsc/pull-requests/1886/fix-compiler-warning/diff</a><br>
<br>
The corresponding configure.log is here:<br>
<a href="http://slepc.upv.es/buildbot/builders/athor-linux-icc-c-complex-int64-mkl/builds/534/steps/Configure%20PETSc/logs/configure.log" rel="noreferrer" target="_blank">http://slepc.upv.es/buildbot/builders/athor-linux-icc-c-complex-int64-mkl/builds/534/steps/Configure%20PETSc/logs/configure.log</a><br>
<br>
Jose<br>
<br>
<br>
<br>
> El 18 jul 2019, a las 15:07, Smith, Barry F. via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> escribió:<br>
> <br>
> <br>
> Lisandro,<br>
> <br>
> Thanks for letting us know. Could you please send configure.log for your failed case. The code to detect and use the variable is still in the PETSc source so I must have introduced something that makes it no longer function correctly. As soon as I can after getting your configure.log I'll debug and fix.<br>
> <br>
> Barry<br>
> <br>
> <br>
>> On Jul 18, 2019, at 5:21 AM, Lisandro Dalcin <<a href="mailto:dalcinl@gmail.com" target="_blank">dalcinl@gmail.com</a>> wrote:<br>
>> <br>
>> PETSC_USE_SOCKET_VIEWER is no longer defined in petsconf.h when configuring on my Fedora 30. <br>
>> <br>
>> I think the problem started in the following commit, the parent of this one seems to be OK.<br>
>> <br>
>> commit 2475b7ca256cea2a4b7cbf2d8babcda14e5fa36e<br>
>> Author: Barry Smith <<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>><br>
>> Date: Sun Jun 30 02:41:52 2019 -0500<br>
>> <br>
>> Remove testing and inserting into petscconf.h items that are not actually used by PETSc<br>
>> <br>
>> 1) PETSC_HAVE_LIBXXXX - which was rarely used<br>
>> be careful with the package libpng and libjpeg since they have lib in the name of the package<br>
>> 2) various system include files that are never used or always exist: for example stdlib.h<br>
>> 3) various system functions that are never used or always exist<br>
>> 4) fixes for requires for MUMPS and SuperLU_DIST when dependent packages are installed or not installed (unrelated to the rest of this pull request)<br>
>> 5) packages that always exist such as PETSC_HAVE_BLASLAPACK, or are not used by PETSc such as PETSC_HAVE_NETCFD<br>
>> 6) remove a couple of uses of HAVE_LIB* in the code that were not needed by adjusting the configure code slightly<br>
>> 7) remove all the #if guards for each entry in petscconf.h since petscconf.h already has a guard and<br>
>> the values are never defined else where the extra guards just make the file cluttered<br>
>> <br>
>> For a build with about 10 external packages this reduced the size of petscconf.h from 1236 lines to 828/4 around 220 entries.<br>
>> <br>
>> Commit-type: style-fix, cleanup<br>
>> <br>
>> Reported-by: Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a><br>
>> <br>
>> <br>
>> -- <br>
>> Lisandro Dalcin<br>
>> ============<br>
>> Research Scientist<br>
>> Extreme Computing Research Center (ECRC)<br>
>> King Abdullah University of Science and Technology (KAUST)<br>
>> <a href="http://ecrc.kaust.edu.sa/" rel="noreferrer" target="_blank">http://ecrc.kaust.edu.sa/</a><br>
> <br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Lisandro Dalcin<br>============<br>Research Scientist<br>Extreme Computing Research Center (ECRC)<br>King Abdullah University of Science and Technology (KAUST)<br><a href="http://ecrc.kaust.edu.sa/" target="_blank">http://ecrc.kaust.edu.sa/</a><br></div></div></div>