[Pw_forum] Espresso on Mac OSX 10.4

fabrizio cleri fcleri at yahoo.it
Thu May 11 17:09:23 CEST 2006


Ciao to everybody,

A warning for those compiling with xlf under Mac OSX 10.4 ("Tiger"). You will most likely get the following linkage error:

 ld: Undefined symbols:
 _sprintf$LDBLStub
 _fprintf$LDBLStub
 _printf$LDBLStub

This is becoming a known problem in the Apple Developers' community, it seems to happen because these functions in Tiger are actually macros which translate into symbols in the System stub library which is not included on the link line.

In the case of a F90 compilation (I am using the IBM xlf compiler) the way around this problem is to link explicitly also the library /usr/lib/libSystemstubs.a by adding

-lSystemStubs

to the LDFLAGS in make.sys.

have fun,
fc

_______________________________________________
Fabrizio Cleri
Institut d'Electronique, Microélectronique et Nanotechnologie
Université de Science et Technologie de Lille
59652 Villeneuve d'Ascq, France
tel.: +33-320-197928
e-mail: fabrizio.cleri at isen.fr



Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20060511/2c17f5fd/attachment.html>


More information about the users mailing list