1) We always need configure.log<br><br>2) If you remove PETSC_USE_SOCKET_VIEWER, nothing in that directory will be built<br><br> Matt<br><br><div class="gmail_quote">On Tue, Oct 13, 2009 at 8:28 AM, Niall Moran <span dir="ltr"><<a href="mailto:nmoran@thphys.nuim.ie">nmoran@thphys.nuim.ie</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I am having issues compiling the latest version of PETSc on a Bluegene/L machine. I am using the IBM compilers version<br>
V1R3M3_420_2007-071023.<br>
<br>
The error I am getting during compile is<br>
<br>
...../petsc-3.0.0-p8/src/sys/viewer/impls/socket<br>
"send.c", line 105.12: 1540-0274 (S) The name lookup for "gethostbyname" did not find a declaration.<br>
"send.c", line 110.37: 1540-0251 (S) The "->" operator cannot be applied to the undefined class "struct hostent".<br>
"send.c", line 110.48: 1540-0251 (S) The "->" operator cannot be applied to the undefined class "struct hostent".<br>
"send.c", line 112.21: 1540-0251 (S) The "->" operator cannot be applied to the undefined class "struct hostent".<br>
"send.c", line 115.21: 1540-0251 (S) The "->" operator cannot be applied to the undefined class "struct hostent".<br>
"send.c", line 188.8: 1540-0274 (S) The name lookup for "gethostbyname" did not find a declaration.<br>
"send.c", line 191.21: 1540-0251 (S) The "->" operator cannot be applied to the undefined class "struct hostent".<br>
"send.c", line 197.34: 1540-0274 (S) The name lookup for "SO_REUSEADDR" did not find a declaration.<br>
/usr/bin/ar: send.o: No such file or directory<br>
<br>
The config file I am using is below. I have tried commenting out some of the variables defined in the petscconf.h but to no avail. The variables I tried were<br>
PETSC_USE_SOCKET_VIEWER<br>
PETSC_HAVE_SYS_SOCKET_H<br>
PETSC_HAVE_GETHOSTBYNAME<br>
PETSC_HAVE_SOCKET<br>
<br>
I never encountered such issues with PETSc pre release 3. Any help is greatly appreciated.<br>
<br>
Regards,<br>
<br>
Niall.<br>
<br>
configure_options = [<br>
'--with-cc=mpixlc',<br>
'--with-cxx=mpixlcxx',<br>
'--with-fc=mpixlf90 -qnosave -qfixed=72',<br>
'--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys', # required by BLACS to get mpif.h<br>
'--with-clanguage=cxx',<br>
<br>
'--with-is-color-value-type=short',<br>
'--with-shared=0',<br>
'-COPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',<br>
'-CXXOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',<br>
'-FOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',<br>
'-LIBS=-lc -lnss_files -lnss_dns -lresolv',<br>
'--with-debugging=0',<br>
'--with-scalar-type=complex',<br>
<br>
# the following option gets automatically enabled on BGL/with IBM compilers.<br>
# '--with-fortran-kernels=bgl'<br>
<br>
'--with-batch=1',<br>
'--with-memcmp-ok',<br>
'--sizeof_char=1',<br>
'--sizeof_void_p=4',<br>
'--sizeof_short=2',<br>
'--sizeof_int=4',<br>
'--sizeof_long=4',<br>
'--sizeof_size_t=4',<br>
'--sizeof_long_long=8',<br>
'--sizeof_float=4',<br>
'--sizeof_double=8',<br>
'--bits_per_byte=8',<br>
'--sizeof_MPI_Comm=4',<br>
'--sizeof_MPI_Fint=4',<br>
'--have-mpi-long-double=1',<br>
<br>
'--download-f-blas-lapack=1',<br>
'--download-hypre=0',<br>
'--download-spooles=0',<br>
'--download-superlu=0',<br>
'--download-parmetis=0',<br>
'--download-superlu_dist=0',<br>
'--download-blacs=1',<br>
'--download-scalapack=1',<br>
'--download-mumps=0'<br>
]<br>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>