Subject: Re: Problem compiling mysql-server
To: None <port-macppc@netbsd.org>
From: Donald Lee <donlee_ppc@icompute.com>
List: port-macppc
Date: 02/19/2002 18:24:12
OK. I did some digging. __lint__ is not documented, as far as I
can find. Experimentation tells me that it is defined by lint(1),
but not by gcc. (unless requested, of course)
__LINT__ _is_ documented, but not in NetBSD in the man pages.
Is there a place in the man pages that I can get a list of the pre-defined
macros? Is this something that is available only via FSF?
So, to answer the question, note the slightly expanded and annotated
snippet from /usr/include/sys/cdefs.h.
#if !defined(_STANDALONE) && !defined(_KERNEL)
#ifdef __GNUC__
#define __RENAME(x) ___RENAME(x) // GNU C compiler
#else
#ifdef __lint__
#define __RENAME(x) __symbolrename(x) // lint run
#else
#error "No function renaming possible" // any non-gnu, non-lint
#endif /* __lint__ */
#endif /* __GNUC__ */
#else /* _STANDALONE || _KERNEL */
#define __RENAME(x) no renaming in kernel or standalone environment
#endif
Looks to me like any compiler other than gcc simply won't work.
Assuming that this guy (mec) is using gnu cpp, I have no idea
what's wrong.
?
-dgl-
>Hello, I have snipped the full path to make the things readable :
>
>> cpp
>> -I/tmp/[...]/.buildlink/include
>> -Dunix
>> -I/tmp/[...]/mysql-3.23.47/mit-pthreads
>> -I/tmp/[...]/mysql-3.23.47/mit-pthreads/include
>> -I/tmp/[...]/mysql-3.23.47/mit-pthreads/include
>> -DPTHREAD_KERNEL
>> /tmp/[...]/mysql-3.23.47/mit-pthreads/syscall.S > syscall.i
>
>>In file included from /tmp/[...]/mysql-3.23.47/mit-pthreads/syscall.S:5:
>>/usr/include/sys/cdefs.h:212: #error "No function renaming possible"
>>/tmp/[...]/mysql-3.23.47/mit-pthreads/syscall.S:32: unterminated character constant
>>*** Error code 1
>
>Looking at /usr/include/sys/cdefs.h, which is the correct version,
>according to cvsweb, we have :
>
>| #ifdef __lint__
>| #define __RENAME(x) __symbolrename(x)
>| #else
>| #error "No function renaming possible"
>| #endif /* __lint__ */
>
>My sourcetree and my pkg tree are up-to-date.
>
>Any hint ?
>
>Thanks,
>
>--
>Xav
>http://www.freetibet.org
>http://www.tibet.fr/