You have to remove the defines or rename them to something else in petscconf.h. Just commenting or undefining doesn't work. [this is because our build system does a grep on this file - so its doesn't exactly follow preprocessing directives]
Regarding the original issue - I'm not sure why it doesn't work. We have V1R3M0_460_2008-081112P on our BGP - and I don't remember seeing this issue. Also - note; logfiles configure.log etc. should be sent to petsc-maint - and not the mailing list [we don't want to flood huge log files to all folks on this list] Satish On Tue, 13 Oct 2009, Niall Moran wrote: > 1) Please find attached the configure.log. > > 2) It seems just commenting out the definition of PETSC_USE_SOCKET_VIEWER did > not work but by undefining no attempt was made to build anything in the > directory. > > #if defined(PETSC_USE_SOCKET_VIEWER) > #undefine PETSC_USE_SOCKET_VIEWER > #endif > > Many thanks, > > Niall. > > On 13 Oct 2009, at 14:48, Matthew Knepley wrote: > > > 1) We always need configure.log > > > > 2) If you remove PETSC_USE_SOCKET_VIEWER, nothing in that directory will be > > built > > > > Matt > > > > On Tue, Oct 13, 2009 at 8:28 AM, Niall Moran <nmoran at thphys.nuim.ie> > > wrote: > > Hi, > > > > I am having issues compiling the latest version of PETSc on a Bluegene/L > > machine. I am using the IBM compilers version > > V1R3M3_420_2007-071023. > > > > The error I am getting during compile is > > > > ...../petsc-3.0.0-p8/src/sys/viewer/impls/socket > > "send.c", line 105.12: 1540-0274 (S) The name lookup for "gethostbyname" did > > not find a declaration. > > "send.c", line 110.37: 1540-0251 (S) The "->" operator cannot be applied to > > the undefined class "struct hostent". > > "send.c", line 110.48: 1540-0251 (S) The "->" operator cannot be applied to > > the undefined class "struct hostent". > > "send.c", line 112.21: 1540-0251 (S) The "->" operator cannot be applied to > > the undefined class "struct hostent". > > "send.c", line 115.21: 1540-0251 (S) The "->" operator cannot be applied to > > the undefined class "struct hostent". > > "send.c", line 188.8: 1540-0274 (S) The name lookup for "gethostbyname" did > > not find a declaration. > > "send.c", line 191.21: 1540-0251 (S) The "->" operator cannot be applied to > > the undefined class "struct hostent". > > "send.c", line 197.34: 1540-0274 (S) The name lookup for "SO_REUSEADDR" did > > not find a declaration. > > /usr/bin/ar: send.o: No such file or directory > > > > 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 > > PETSC_USE_SOCKET_VIEWER > > PETSC_HAVE_SYS_SOCKET_H > > PETSC_HAVE_GETHOSTBYNAME > > PETSC_HAVE_SOCKET > > > > I never encountered such issues with PETSc pre release 3. Any help is > > greatly appreciated. > > > > Regards, > > > > Niall. > > > > configure_options = [ > > '--with-cc=mpixlc', > > '--with-cxx=mpixlcxx', > > '--with-fc=mpixlf90 -qnosave -qfixed=72', > > '--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys', # required by BLACS to get > > mpif.h > > '--with-clanguage=cxx', > > > > '--with-is-color-value-type=short', > > '--with-shared=0', > > '-COPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1', > > '-CXXOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1', > > '-FOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1', > > '-LIBS=-lc -lnss_files -lnss_dns -lresolv', > > '--with-debugging=0', > > '--with-scalar-type=complex', > > > > # the following option gets automatically enabled on BGL/with IBM compilers. > > # '--with-fortran-kernels=bgl' > > > > '--with-batch=1', > > '--with-memcmp-ok', > > '--sizeof_char=1', > > '--sizeof_void_p=4', > > '--sizeof_short=2', > > '--sizeof_int=4', > > '--sizeof_long=4', > > '--sizeof_size_t=4', > > '--sizeof_long_long=8', > > '--sizeof_float=4', > > '--sizeof_double=8', > > '--bits_per_byte=8', > > '--sizeof_MPI_Comm=4', > > '--sizeof_MPI_Fint=4', > > '--have-mpi-long-double=1', > > > > '--download-f-blas-lapack=1', > > '--download-hypre=0', > > '--download-spooles=0', > > '--download-superlu=0', > > '--download-parmetis=0', > > '--download-superlu_dist=0', > > '--download-blacs=1', > > '--download-scalapack=1', > > '--download-mumps=0' > > ] > > > > > > > > -- > > What most experimenters take for granted before they begin their experiments > > is infinitely more interesting than any results to which their experiments > > lead. > > -- Norbert Wiener >