LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-15-2009, 10:00 PM   #1
limh
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
Question Error when "make" the source of CosmoMC: undefined reference to `dpotrf_'


Hi, everyone! Sorry to bother you again!

I used a Linux Fedora 11 system and have both Gfortran and Intel Fortran Compiler 11.1 installed. My CPU is Intel Duo Core E7400 and the memory is 3.0GB. Below is part of the Makefile in my source subdirectory:

#Intel fortran 8, check you have the latest update from the Intel web pages
#See Makefile_intel for ifc 7.1 or lower (some versions have problems)
F90C = ifort
FFLAGS = -O2 -Vaxlib -ip -W0 -WB -openmp -fpp
LAPACKL = -L/opt/intel/Compiler/11.1/046/mkl/lib/32 -lmkl_lapack95 \
-L/opt/intel/Compiler/11.1/046/lib/ia32 -lguide \
-L/usr/lib -lpthread
And the feedback is:

...
WMAP_5yr_tt_beam_ptsrc_chisq.f90.text+0x1578): undefined reference to `dpotrf_'
WMAP_5yr_tt_beam_ptsrc_chisq.f90.text+0x1784): undefined reference to `dpotrs_'
WMAP_5yr_tt_beam_ptsrc_chisq.f90.text+0x1d65): undefined reference to `dpotrs_'
Matrix_utils.o: In function `matrixutils_mp_matrix_diagonalize_':
Matrix_utils.F90.text+0x1bb5): undefined reference to `ssyev_'
Matrix_utils.o: In function `matrixutils_mp_matrix_diagonalize_dc_':
Matrix_utils.F90.text+0x1df7): undefined reference to `ssyevd_'
...

But I did give the full path to the library package lapack or so, why didn't it work?!
All help is welcome ,thanks !!!!

Last edited by limh; 09-16-2009 at 06:27 AM.
 
Old 09-30-2009, 03:27 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
When I have seen similar errors when trying to build stuff, it's usually because some header files are either missing from the system, or are not in the search path if the compiler/linker.

I notice you have specified some lib directories and libs to use, with the -L and -l flags, but I suggest you also add a few -I flags, to point the build process at the /include directories containing the missing header(s).

How to figure out which header file(s) are missing? Well, either re-examine all the output of the build process before it quits, and look for "file not found" errors referring to header files, or do a search using your file-manager, or something like `find` and `grep` to find files that ARE on the system, and contain the defines for (the words) "dpotrf_" and/or "dpotrs_" and/or "ssyevd_", and then make sure that these files' path/location is in the search path of the compiler/linker.

Kind regards,
Sasha
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Several "undefined reference to" error when compiling a C programm acer_peri Programming 8 12-11-2008 06:45 AM
"undefined reference"linker error for static field w/ C++ astorm Programming 5 08-27-2008 04:00 AM
Error: Make on kismet-2005-08-R1 "undefined reference" zeevolking Linux - Software 1 12-23-2005 09:40 PM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 08:43 PM
ncurses compile error: "undefined reference" Mr. Eek Linux From Scratch 1 05-12-2003 05:25 PM


All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration