bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NCR MP-RAS and 1.913


From: Edouard G. Parmelan
Subject: Re: NCR MP-RAS and 1.913
Date: Wed, 25 Apr 2001 18:45:48 +0200
User-agent: Mutt/1.2.5i

Robert Boehne wrote:

> > I test libtool CVS Tree (1.913 2001/04/23 21:59:34) on NCR MP-RAS and I
> > discover a namespace clash
> > 
> > System file sys/mp/mplock.h define external functions mutex_lock and
> > mutex_unlock.
> 
> The functions mutex_lock and mutex_unlock are not
> defined by libltdl, only used by it.  So any problem
> you're having is somthing else.  What are the symptoms
> of your problem?

ltdl.c can't be compiled on NCR MP-RAS.

gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c   -fPIC -DPIC -o .libs/ltdl.lo
ltdl.c:200: `mutex_lock' redeclared as different kind of symbol
/usr/include/sys/mp/mplock.h:241: previous declaration of `mutex_lock'
ltdl.c:200: warning: `mutex_lock' was declared `extern' and later `static'
ltdl.c:201: `mutex_unlock' redeclared as different kind of symbol
/usr/include/sys/mp/mplock.h:242: previous declaration of `mutex_unlock'
ltdl.c:201: warning: `mutex_unlock' was declared `extern' and later `static'
make[1]: *** [ltdl.lo] Error 1

Extracted from sys/mp/mplock.h:

extern void mutex_init      ( mutex_t *lp, int flags, lockinfo_t *info );
extern int  mutex_lock      ( mutex_t *lp, int flags, int (*spl)() );

with my small patch, "All 83 tests passed".
-- 
Edouard G. Parmelan
http://egp.free.fr



reply via email to

[Prev in Thread] Current Thread [Next in Thread]