[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems building lib/getloadavg.c on Solaris 2.5.1
From: |
Albert Chin |
Subject: |
Problems building lib/getloadavg.c on Solaris 2.5.1 |
Date: |
Tue, 2 Nov 2004 22:36:44 -0600 |
User-agent: |
Mutt/1.5.6i |
Solaris 2.5.1 has uint32_t in <synch.h>. I fixed a bug in
m4/uint32_t.m4 to correctly define uint32_t on this platform if
uint32_t is unavailable in AC_INCLUDES_DEFAULT. However, <synch.h>
isn't in AC_INCLUDES_DEFAULT. So, we AC_DEFINE(uint32_t and
lib/getloadavg.c pulls in <synch.h>, causing a conflict between the
typedef in <synch.h> and the #define in "config.h":
cc -DHAVE_CONFIG_H -DLIBDIR=\"/opt/TWWfsw/coreutils53/lib\" -I. -I.
-I.. -I.. -I. -I/opt/TWWfsw/libiconv19/include
-I/opt/TWWfsw/gettext014/include -mr -Qn -xO2 -xtarget=generic -c
getloadavg.c
"/usr/include/sys/synch.h", line 22: invalid type combination
"/usr/include/sys/synch.h", line 22: warning: useless declaration
"/usr/include/sys/synch.h", line 22: warning: typedef declares no type name
cc: acomp failed for getloadavg.c
So, how do we solve this? Do I augment m4/uint32_t.m4 to include
<synch.h> if available and then add:
#ifdef HAVE_SYNC_H
#include <sync.h>
#endif
wherever uint32_t is needed?
--
albert chin (address@hidden)
- Problems building lib/getloadavg.c on Solaris 2.5.1,
Albert Chin <=