Opened 15 years ago

Closed 15 years ago

#19713 closed defect (fixed)

Undefined symbol linking to libatlas

Reported by: aronnax@… Owned by: jameskyle@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: anddam (Andrea D'Amore), jameskyle@…
Port: atlas

Description

When attempting to build a program that uses a particular clapack function, the linker complains that the symbol is undefined. In particular, I get the following error message:

$ gcc-mp-4.3 -I/opt/local/include -L/opt/local/lib -lcblas -llapack -latlas main.c
Undefined symbols:
  "_clapack_dgesv", referenced from:
      _biasfilter_update in cc65P2Zm.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Change History (10)

comment:1 Changed 15 years ago by aronnax@…

Cc: aronnax@… added

Cc Me!

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Cc: aronnax@… removed
Owner: changed from macports-tickets@… to ajb78@…
Port: atlas added

comment:3 Changed 15 years ago by anddam (Andrea D'Amore)

Cc: and.damore added
Summary: atlas-3.8.2Undefined symbol linking to libatlas

I'm having issues building atlas@3.8.2, what installed version do you actually have?

comment:4 Changed 15 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:5 Changed 15 years ago by anddam (Andrea D'Amore)

Cc: and.damore removed

comment:6 Changed 15 years ago by jameskyle@…

Cc: jameskyle@… added

Cc Me!

comment:7 Changed 15 years ago by jameskyle@…

I have this symbol in my build of atlas. Just compiled from an updated port repository (3.8.3):

 % nm /opt/local/lib/liblapack.dylib | grep _clapack_dgesv
004425e0 T _clapack_dgesv

Could you verify you're running the most recent version and possibly provide sample source to reproduce the problem with?

comment:8 Changed 15 years ago by tobypeterson

Owner: changed from ajb78@… to macports-tickets@…

comment:9 Changed 15 years ago by jameskyle@…

Owner: changed from macports-tickets@… to jameskyle@…

Make sure you're using the latest build. Also try using the full path to the macports lapack library. The lookup error and lack of that exact symbol from the incomplete API that apple provides was the incentive for my reworking of the macports atlas port.

comment:10 Changed 15 years ago by jameskyle@…

Resolution: fixed
Status: newclosed

Closing this ticket after suggesting fix and receiving no followup from reporters.

Note: See TracTickets for help on using tickets.