[ewg] OFED 1.5.2rc4 fails to build on RHEL4 Update 8 x86_64

Todd Rimmer todd.rimmer at qlogic.com
Wed Aug 18 12:39:40 PDT 2010


I tried an install.pl --all on this distro.

The ibacm module fails to build with undefined references to __sync_fetch_and_add and __sync_fetch_and_sub.

I see these exist on newer distros, but they are not available on RHEL4.  ibacm is using this in its linux/osd.h file to define atomic_inc and atomic_dec.  

An alternative might be to use /usr/include/asm/atomic.h as this has atomic_inc and atomic_dec macros already defined.  I would also be more portable.

Todd Rimmer
Chief Architect 
QLogic Network Systems Group
Voice: 610-233-4852     Fax: 610-233-4777
Todd.Rimmer at QLogic.com  www.QLogic.com



More information about the ewg mailing list