Sponsored Content
Top Forums Programming make fails with "undefined reference to..." Post 302565708 by crimso on Tuesday 18th of October 2011 02:14:18 PM
Old 10-18-2011
make fails with "undefined reference to..."

i am compiling a program called vasp on suse and get the following error. there are many more preprocess and ifort commands prior so i just grabbed the tail of the log file:

Code:
./preprocess <main.F | /usr/bin/cpp -P -C -traditional >main.f90 -DMPI  -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DNGZhalf -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc -DMPI_BLOCK=500 -DRPROMU_DGEMV  -DRACCMU_DGEMV
ifort -FR -lowercase -assume byterecl -I/usr/apps/vasp/4.6/fftw-3.3/include -I/usr/apps/vasp/4.6/mpich2-1.2.1p1/include-FR -O0   -c main.f90
rm -f vasp
ifort -o vasp  main.o  base.o     mpi.o      smart_allocate.o      xml.o constant.o jacobi.o   main_mpi.o  scala.o asa.o      lattice.o  poscar.o   ini.o      setex.o     radial.o pseudo.o   mgrid.o    mkpoints.o wave.o      wave_mpi.o  symmetry.o symlib.o   lattlib.o  random.o    nonl.o     nonlr.o    dfast.o    choleski2.o mix.o      charge.o   xcgrad.o   xcspin.o    potex1.o   potex2.o metagga.o  constrmag.o pot.o      cl_shift.o force.o    dos.o      elf.o tet.o      hamil.o    steep.o chain.o    dyna.o     relativistic.o LDApU.o sphpro.o  paw.o   us.o ebs.o      wavpre.o   wavpre_noio.o broyden.o dynbr.o    rmm-diis.o reader.o   writer.o   tutor.o xml_writer.o brent.o    stufak.o   fileio.o   opergrid.o stepver.o dipol.o    xclib.o    chgloc.o   subrot.o   optreal.o   davidson.o edtest.o   electron.o shm.o      pardens.o  paircorrection.o optics.o   constr_cell_relax.o   stm.o    finite_diff.o elpol.o    setlocalpp.o aedens.o    fftw3d.o fft3dlib.o   /usr/apps/vasp/4.6/fftw-3.3/lib/libfftw3.a -L../vasp.4.lib -ldmy ../vasp.4.lib/linpack_double.o ../vasp.4.lib/lapack_double.o /usr/apps/vasp/4.6/atlas/lib/libf77blas.a /usr/apps/vasp/4.6/atlas/lib/libatlas.a  /usr/apps/vasp/4.6/mpich2-1.2.1p1/lib/libmpich.a /usr/apps/vasp/4.6/mpich2-1.2.1p1/lib/libfmpich.a /usr/apps/vasp/4.6/mpich2-1.2.1p1/lib/libmpichf90.a /usr/apps/vasp/4.6/mpich2-1.2.1p1/lib/libmpichcxx.a /usr/apps/vasp/4.6/mpich2-1.2.1p1/lib/libopa.a
main.o: In function `MAIN__':
main.f90:(.text+0x13af3): undefined reference to `mapset_'
main.f90:(.text+0x13b68): undefined reference to `mapset_'
main.f90:(.text+0x13b77): undefined reference to `mapset_'
main.f90:(.text+0x13bec): undefined reference to `mapset_'
make: *** [vasp] Error 1

any insight would be appreciated.
 

10 More Discussions You Might Find Interesting

1. Programming

shared object "undefined symbol: fstat" error

Didn't have this problem in AIX, but ported to Linux with GCC compiler and am now getting a runtime error: tssutil: symbol lookup error: /work/agility/devel/bin/libagam.so: undefined symbol: fstat I'm sure most of you know that fstat is an intrinsic function just like printf, memcpy, etc. When I... (5 Replies)
Discussion started by: marcus121
5 Replies

2. Programming

how could i make a program mixed with many "|", "<" and ">"

I have written following code to do: ls -l | wc -w, it works: but when there are not only a single "|", if there are more such as: ls -l | sort -r | sort | sort -r, This program does not work, i want to know how could i deal with it when there are more "|", another situation is that, if it mixes... (2 Replies)
Discussion started by: strugglingman
2 Replies

3. AIX

Getting error "Undefined symbol: .u_strlen_2_6"

Hi, I am using xlC compiler. The compilation goes fine but at the time of linking it gives the following error ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. ld: 0711-317 ERROR: Undefined symbol: .u_strlen_2_6 ld: 0711-317 ERROR: Undefined symbol:... (0 Replies)
Discussion started by: nachiketv
0 Replies

4. UNIX for Dummies Questions & Answers

#!/bin/sh script fails at StringA | tr "[x]" "[y]"

I need to take a string (stringA) check it for spaces and replace any spaces found with an equal (=) sign. This is not working. There are spaces between each component: $StringA | tr "" "" The error returned is: test: Specify a parameter with this command Can you help? (3 Replies)
Discussion started by: by_tg
3 Replies

5. Programming

compile fails in linux ... "No rule to make target" ... HELP

hello all, attached you can find a tool (written in C) that i really need to make it compile under linux i am able to compile and run it successfully in mac os x, but in linux the compilation fails the only thing that i did so far is to change the following #include <sys/malloc.h> to... (13 Replies)
Discussion started by: OneDreamCloser
13 Replies

6. Shell Programming and Scripting

Make scipt except from "Y","y" and "yes" to take [Enter] as being "yes"

This is the script: #!/bin/sh if ; then rm -rf /usr/share/WallpaperChanger; fi if ; then rm -rf /usr/bin/wallch; fi; if ; then rm -rf /usr/share/applications/wallch.desktop; fi if ; then rm -rf /usr/share/doc/wallch; fi if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies

7. Programming

"make" fails on the first .f90 file it encounters: not creating .o files

i may be asking way too much here but i am not a programmer and not sure where to to turn. i have a program that i am trying to "make". but the compiler i am supposed to use gets nowhere. there are a bunch of .f90 files that are being processed as follows but it doesn't get past the first one: ... (1 Reply)
Discussion started by: crimso
1 Replies

8. Solaris

I got "undefined reference to" on gcc

Hell all I tryed to build rmp from sources on Solaris 10. I download source code, install gcc, binutils, and other packs с sunfreeware.com. Doring compilation I got an error: /bin/bash ./libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -fPIC -DPIC -D_REENTRANT -Wall... (0 Replies)
Discussion started by: sluge
0 Replies

9. Emergency UNIX and Linux Support

Perl error: Can't call method "value" on an undefined value

Hi, I am running a perl script to automate a process and I keep running into a error can't find the "value" Can't call method "value" on an undefined value at process_file.pl line 44. file is CVS cell is ifdfdxrfmp.ksh Here is the script I have also attached it as well: ... (2 Replies)
Discussion started by: vpundit
2 Replies

10. Programming

Compiling C++ code with NetCDF libraries: "undefined reference"

Hi! I am trying to compile a C++ code with cmake and gcc on Ubuntu. The code uses NetCDF4 libraries. I specify the path to these libraries as follows: -I/usr/local/include -L/usr/local/lib -lnetcdf -lnetcdf_c++4 "ccmake" and "cmake" work fine. After typing "make" I receive the error... (0 Replies)
Discussion started by: Alauda
0 Replies
libplot(3LIB)							Interface Libraries						     libplot(3LIB)

NAME
libplot, lib300, lib300s, lib4014, lib450, libvt0 - graphics interface libraries SYNOPSIS
cc [ flag... ] file... -lplot [ library... ] #include <plot.h> DESCRIPTION
Functions in this library generate graphics output. INTERFACES
The shared object libplot.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces. arc box circle closepl closevt cont erase label line linemod move openpl openvt point space FILES
/usr/lib/libplot.so.1 shared object /usr/lib/64/libplot.so.1 64-bit shared object /usr/lib/lib300.so.1 shared object /usr/lib/64/lib300.so.1 64-bit shared object /usr/lib/lib300s.so.1 shared object /usr/lib/64/lib300s.so.1 64-bit shared object /usr/lib/lib4014.so.1 shared object /usr/lib/64/lib4014.so.1 64-bit shared object /usr/lib/lib450.so.1 shared object /usr/lib/64/lib450.so.1 64-bit shared object /usr/lib/libvt0.so.1 shared object /usr/lib/64/libvt0.so.1 64-bit shared object ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsl (32-bit) | +-----------------------------+-----------------------------+ | |SUNWcslx (64-bit) | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
pvs(1), Intro(3), attributes(5) SunOS 5.11 13 Jun 2003 libplot(3LIB)
All times are GMT -4. The time now is 04:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy