Hello,

Usually, if linker not found some function but this function exists you may
add compiler option  -DAdd_

2009/12/3 Matheus Matos <[email protected]>

>  hen I compiled, the siesta-trunk-3.01 (make transiesta),using g95,
> I found the following error message. Someone knows how to solve? what should 
> I do?
>
> Thanks,
>
> Matheus Matos
>
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/chkgmx.f:101:
>  undefined reference to `cellsubs_MP_reclat'
> dhscf.o: In function `dhscf_':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/dhscf.F:379:
>  undefined reference to `xcmod_MP_getxc'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/dhscf.F:873:
>  undefined reference to `mesh3d_MP_setmeshdistr'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/dhscf.F:875:
>  undefined reference to `mesh3d_MP_mymeshbox'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/dhscf.F:892:
>  undefined reference to `m_cellxc_MP_cellxc'
> fft.o: In function `m_fft_MP_fft':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/fft.F:176:
>  undefined reference to `fft1d_MP_setgpfa'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/fft.F:275:
>  undefined reference to `fft1d_MP_gpfa'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/fft.F:281:
>  undefined reference to `fft1d_MP_gpfa'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/fft.F:200:
>  undefined reference to `fft1d_MP_gpfa'
> meshsubs.o: In function `initmesh_':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/meshsubs.F:313:
>  undefined reference to `cellsubs_MP_reclat'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/meshsubs.F:334:
>  undefined reference to `fft1d_MP_nfft'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/meshsubs.F:368:
>  undefined reference to `cellsubs_MP_volcel'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/meshsubs.F:401:
>  undefined reference to `cellsubs_MP_reclat'
> minvec.o: In function `m_minvec_MP_volnew':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/minvec.f:131:
>  undefined reference to `cellsubs_MP_volcel'
> minvec.o: In function `m_minvec_MP_minvec':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/minvec.f:55:
>  undefined reference to `cellsubs_MP_volcel'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/minvec.f:100:
>  undefined reference to `cellsubs_MP_volcel'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/minvec.f:105:
>  undefined reference to `cellsubs_MP_reclat'
> poison.o: In function `poison_':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/poison.F:95:
>  undefined reference to `cellsubs_MP_volcel'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/poison.F:98:
>  undefined reference to `cellsubs_MP_reclat'
> siesta_init.o: In function `m_siesta_init_MP_siesta_init':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/siesta_init.F:132:
>  undefined reference to `debugxc_MP_setdebugoutputunit'
> siesta_end.o: In function `m_siesta_end_MP_siesta_end':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/siesta_end.F:31:
>  undefined reference to `debugxc_MP_closedebugoutputfile'
> atom.o: In function `atom_MP_xc_check':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/atom.f:2036:
>  undefined reference to `xcmod_MP_getxc'
> atom.o: In function `atom_MP_atom_main':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/atom.f:408:
>  undefined reference to `m_atomxc_MP_atomxc'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/atom.f:424:
>  undefined reference to `m_atomxc_MP_atomxc'
> forhar.o: In function `m_forhar_MP_forhar':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/forhar.f:117:
>  undefined reference to `mesh3d_MP_setmeshdistr'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/forhar.f:119:
>  undefined reference to `mesh3d_MP_mymeshbox'
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/forhar.f:138:
>  undefined reference to `m_cellxc_MP_cellxc'
> read_xc_info.o: In function `read_xc_info__':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/read_xc_info.F:142:
>  undefined reference to `xcmod_MP_setxc'
> m_ts_aux_rout.o: In function `m_ts_aux_rout_MP_csolveg':
> /exp/home/backup/matheus/machado/matheus/siesta/siesta-trunk-301/Src/m_ts_aux_rout.F:344:
>  undefined reference to `zgesv_'
>
>
> arch.make
>
> # This file is part of the SIESTA package.
> #
> # Copyright (c) Fundacion General Universidad Autonoma de Madrid:
> # E.Artacho, J.Gale, A.Garcia, J.Junquera, P.Ordejon, D.Sanchez-Portal
> # and J.M.Soler, 1996- .
> #
> # Use of this software constitutes agreement with the full conditions
> # given in the SIESTA license, as signed by all legitimate users.
> #
> .SUFFIXES:
> .SUFFIXES: .f .F .o .a .f90 .F90
>
> SIESTA_ARCH=i686-pc-linux-gnu--unknown
>
> FPP=
> FPP_OUTPUT=
> FC=g95
> RANLIB=ranlib
>
> SYS=nag
>
> SP_KIND=4
> DP_KIND=8
> KINDS=$(SP_KIND) $(DP_KIND)
>
> FFLAGS=-g -O2
> FPPFLAGS= -DFC_HAVE_FLUSH -DFC_HAVE_ABORT
> LDFLAGS=
>
> ARFLAGS_EXTRA=
>
> FCFLAGS_fixed_f=
> FCFLAGS_free_f90=
> FPPFLAGS_fixed_F=
> FPPFLAGS_free_F90=
>
> BLAS_LIBS=libblas.a
> LAPACK_LIBS=dc_lapack.a liblapack.a
> BLACS_LIBS=
> SCALAPACK_LIBS=
>
> COMP_LIBS=dc_lapack.a liblapack.a libblas.a
>
> NETCDF_LIBS=
> NETCDF_INTERFACE=
>
> LIBS=$(SCALAPACK_LIBS) $(BLACS_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) 
> $(NETCDF_LIBS)
>
> #SIESTA needs an F90 interface to MPI
> #This will give you SIESTA's own implementation
> #If your compiler vendor offers an alternative, you may change
> #to it here.
> MPI_INTERFACE=
> MPI_INCLUDE=
>
> #Dependency rules are created by autoconf according to whether
> #discrete preprocessing is necessary or not.
> .F.o:
>         $(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_fixed_F)  $<
> .F90.o:
>         $(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_free_F90) $<
> .f.o:
>         $(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_fixed_f)  $<
> .f90.o:
>         $(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_free_f90)  $<
>
>
>
>
> ------------------------------
> Quer conexões de rede mais fácil? Clique e conheça o Windows 
> 7.<http://www.microsoft.com/brasil/windows7/default.html?WT.mc_id=1539>
>

Responder a