* libmudflap
@ 2003-04-25 12:19 Eyal Lebedinsky
2003-04-25 13:06 ` libmudflap Eyal Lebedinsky
0 siblings, 1 reply; 2+ messages in thread
From: Eyal Lebedinsky @ 2003-04-25 12:19 UTC (permalink / raw)
To: list, gcc, Eigler, Frank Ch.
Now that I am adding many wrapper functions, I note that there are
a large number of compile warnings even in the vanilla build:
../../../gcc/libmudflap/mf-runtime.c:1821: warning: implicit declaration
of function `__wrap_alloca'
../../../gcc/libmudflap/mf-runtime.c:2052: warning: implicit declaration
of function `kill'
../../../gcc/libmudflap/mf-runtime.c:2058: warning: implicit declaration
of function `snprintf'
../../../gcc/libmudflap/mf-hooks.c:539: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:588: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:621: warning: implicit declaration of
function `strcasecmp'
../../../gcc/libmudflap/mf-hooks.c:631: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:645: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:649: warning: implicit declaration of
function `strncasecmp'
../../../gcc/libmudflap/mf-hooks.c:682: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:746: warning: implicit declaration of
function `memmem'
../../../gcc/libmudflap/mf-hooks.c:762: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:772: warning: implicit declaration of
function `bzero'
../../../gcc/libmudflap/mf-hooks.c:782: warning: implicit declaration of
function `bcopy'
../../../gcc/libmudflap/mf-hooks.c:792: warning: implicit declaration of
function `bcmp'
../../../gcc/libmudflap/mf-hooks.c:801: warning: implicit declaration of
function `index'
../../../gcc/libmudflap/mf-hooks.c:810: warning: implicit declaration of
function `rindex'
../../../gcc/libmudflap/mf-hooks.c:323: warning: implicit declaration of
function `getpagesize'
../../../gcc/libmudflap/mf-hooks.c:373: warning: implicit declaration of
function `getpagesize'
../../../gcc/libmudflap/mf-hooks.c:417: warning: implicit declaration of
function `__wrap_free'
../../../gcc/libmudflap/mf-hooks.c:430: warning: implicit declaration of
function `__wrap_malloc'
These relate to two issues
1) the library is built with strict rules, so non-posix funcs
are not prototyped.
2) some wrappers refer to other wrappers using CALL_WRAP() and
no prototype is present for the callee.
While thses warnings are not fatal, it is probably a good idea
to adjust the build process so that these are cleared - it is
not always portable to covert int to ptr.
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libmudflap
2003-04-25 12:19 libmudflap Eyal Lebedinsky
@ 2003-04-25 13:06 ` Eyal Lebedinsky
0 siblings, 0 replies; 2+ messages in thread
From: Eyal Lebedinsky @ 2003-04-25 13:06 UTC (permalink / raw)
To: list, gcc
Eyal Lebedinsky wrote:
>
> Now that I am adding many wrapper functions, I note that there are
> a large number of compile warnings even in the vanilla build:
>
> ../../../gcc/libmudflap/mf-runtime.c:1821: warning: implicit declaration
> of function `__wrap_alloca'
[trimmed]
> These relate to two issues
> 1) the library is built with strict rules, so non-posix funcs
> are not prototyped.
> 2) some wrappers refer to other wrappers using CALL_WRAP() and
> no prototype is present for the callee.
OK, I figured the main problem here - the Makefile specifies '-ansi'.
Removing it fixes the simple problems.
strnlen(), memmem() and memrchr() need "#define _GNU_SOURCE"
for <string.h> which is probably missing.
The reference to __wrap_alloca() is really unprototyped and
mf-runtime.c needs fixing.
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-25 12:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-25 12:19 libmudflap Eyal Lebedinsky
2003-04-25 13:06 ` libmudflap Eyal Lebedinsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).