[PETSC #16447] Multiple definitions of assorted symbols in src/sys/objects/ (fwd)

Brian Cordonnier bcordonn at uchicago.edu
Fri Jul 13 11:28:31 CDT 2007


I believe I fixed this problem.  Please email me back if you still 
encounter problems.

Brian

Barry Smith wrote:
>   
>
> ---------- Forwarded message ----------
> Date: Thu, 12 Jul 2007 22:11:26 -0500
> From: Peter Brune <prbrune at gmail.com>
> Reply-To: brune at uchicago.edu
> To: petsc-maint at mcs.anl.gov
> Cc: petsc-maint at mcs.anl.gov
> Subject: [PETSC #16447] Multiple definitions of assorted symbols in
>     src/sys/objects/
>
> Upon making PETSc I get linking errors when making the shared libraries.
>
> My configure line is:
>
> --with-dynamic --download-fiat=1 --download-mpich --with-sieve
> --download-boost --with-clanguage=c++ --download-chaco --download-triangle
> --download-tetgen --with-shared=0 --download-generator=1 --download-parmetis
>
> Here are the relevant parts of make_log:
>
> =========================================
> making shared libraries in
> /home/emppter/Packages/petsc-dev/linux-gnu-c-real-debug/lib
> building libpetsc.so
> pinit.o: In function `PetscCookieRegister(int*)':
> /home/emppter/Packages/petsc-dev/src/sys/objects/pinit.c:48: multiple
> definition of `PETSC_LISTEN_CHECK'
> init.o:/home/emppter/Packages/petsc-dev/src/sys/objects/init.c:70: first
> defined here
> pinit.o: In function `PetscCookieRegister(int*)':
> /home/emppter/Packages/petsc-dev/src/sys/objects/pinit.c:48: multiple
> definition of `PETSC_LISTENFD'
> init.o:/home/emppter/Packages/petsc-dev/src/sys/objects/init.c:70: first
> defined here
> pinit.o: In function `PetscCookieRegister(int*)':
> /home/emppter/Packages/petsc-dev/src/sys/objects/pinit.c:48: multiple
> definition of `PETSC_SOCKFD'
> init.o:/home/emppter/Packages/petsc-dev/src/sys/objects/init.c:70: first
> defined here
> zope.o: In function `PetscOpenSocket(char*, int)':
> /home/emppter/Packages/petsc-dev/src/sys/objects/zope.c:8: multiple
> definition of `PETSC_LISTEN_CHECK'
> init.o:/home/emppter/Packages/petsc-dev/src/sys/objects/init.c:70: first
> defined here
> zope.o: In function `PetscOpenSocket(char*, int)':
> /home/emppter/Packages/petsc-dev/src/sys/objects/zope.c:8: multiple
> definition of `PETSC_LISTENFD'
> init.o:/home/emppter/Packages/petsc-dev/src/sys/objects/init.c:70: first
> defined here
> zope.o: In function `PetscOpenSocket(char*, int)':
> /home/emppter/Packages/petsc-dev/src/sys/objects/zope.c:8: multiple
> definition of `PETSC_SOCKFD'
> init.o:/home/emppter/Packages/petsc-dev/src/sys/objects/init.c:70: first
> defined here
> collect2: ld returned 1 exit status
> make[2]: [shared_linux] Error 1 (ignored)
> building libpetscvec.so
> building libpetscmat.so
> building libpetscdm.so
> building libpetscksp.so
> building libpetscsnes.so
> building libpetscts.so
> building libpetsccontrib.so
>
> Thanks,
>
> - Peter
>
>   




More information about the petsc-dev mailing list