Opened 9 years ago

Last modified 8 years ago

#46626 new defect

slatec @4.1_0+gcc49 Mavericks Slatec Linking Error

Reported by: paul.whelan07@… Owned by: smaret (Sebastien Maret)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: slatec

Description (last modified by mf2k (Frank Schima))

I have just installed the Slatec Common Mathematical Library for fortran using Macports. The installation was smooth with no errors. However, when writing a simple example code that calls the QAG integration routine from the library I get the following error:

Undefined symbols for architecture x86_64:
  "_slamch_", referenced from:
      _r1mach_ in libslatec.a(r1mach.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

slamch is begin referred from r1mach - which is a routine that deals with machine constants I think. This is an unexpected error given that the dependencies should have been taken care of by MacPorts.

I’m using Mavericks 10.9.5 on in Intel laptop if that helps.

Many thanks. Paul

Attachments (1)

quadpack_example.f90 (2.5 KB) - added by paul.whelan07@… 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by paul.whelan07@…

Attachment: quadpack_example.f90 added

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: slatec gfortran removed
Owner: changed from macports-tickets@… to sebastien.maret@…

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers slatec), if any.

comment:2 Changed 9 years ago by paul.whelan07@…

Sure - I will do

thanks

comment:3 in reply to:  2 Changed 8 years ago by shiqiu@…

Replying to paul.whelan07@…:

Sure - I will do

thanks

Linking lapack resolves the problem.

Note: See TracTickets for help on using tickets.