Re: Installing OAF (RPM package) from source...



on 1/26/01 2:21 AM, Jens Finke at jens eknif de wrote:

> Ok, I've looked deeper into it. You are right, that in the tarballs the
> enable-more-warnings flag is off per default. But in the following
> packages the *.spec.in files add it explicitly to the configure command
> line: oaf, gnome-vfs, nautilus, medusa.

Oh, right. We do that largely so that the builds on our Tinderbox use the
stricter rules so we notice changes that cause problems. Maybe we should
reconsider this if we want it to be easy for people to build from source
RPMs and find some other way of making the Tinderbox RPM builds use the
stricter warnings as errors.

> However, you mentioned, that my setup is wrong. Well, compiling oaf
> with --enable-more-warnings gives me the following error:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../liboaf -I../liboaf
> -I/usr/lib/glib/include -I/opt/gnome/include -I/usr/lib/glib/include
> -DVERSION=\"0.6.1\" -Wall -Wchar-subscripts -Wmissing-declarations
> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Werror -O3
> -mpentiumpro -march=pentiumpro -malign-functions=4 -funroll-loops
> -fomit-frame-pointer -fno-strength-reduce -Wsign-promo -Wno-sign-compare
> -Wp,-MD,.deps/oaf-stubs.pp -c oaf-stubs.c  -fPIC -DPIC -o oaf-stubs.lo
> cc1: warnings being treated as errors
> In file included from /usr/include/string.h:346,
> from oaf-stubs.c:5:
> /usr/include/bits/string2.h: In function `__strcpy_small':
> /usr/include/bits/string2.h:419: warning: pointer of type `void *' used in
> arithmetic
> /usr/include/bits/string2.h:427: warning: pointer of type `void *' used in
> arithmetic
> /usr/include/bits/string2.h:432: warning: pointer of type `void *' used in
> arithmetic
> /usr/include/bits/string2.h:437: warning: pointer of type `void *' used in
> arithmetic
> /usr/include/bits/string2.h:439: warning: pointer of type `void *' used in
> arithmetic
> /usr/include/bits/string2.h:444: warning: pointer of type `void *' used in
> arithmetic
> make[2]: *** [oaf-stubs.lo] Error 1
> make[2]: Leaving directory `/home/jens/gnome-cvs/oaf/liboaf'
> 
> So obviously it has nothing to do with oaf directly, but with my setup. My
> libc version is 2.1.3 which contains /usr/include/bits/string2.h. I assume
> you don't get this error, so what libc version are you using?

This warning is due to an error in the glibc headers as you say. The version
I have is glibc-devel-2.2-9, and it does not have this problem.

    -- Darin





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