RPM's -fsigned-char (Re: [COMMITTERS] 
Author Message
 RPM's -fsigned-char (Re: [COMMITTERS]


> >> as for the behavior of Linux distribution vendors who set RPM_OPT_FLAGS
> >> differently from the way they built libc, well, words fail me...
> > Which distros would these be? I know that Mandrake chooses some mutually
> > exclusive flags (-On and -fast-math) but am not sure which other ones
> > are inconsistant...
> The particular problem I was having was with LinuxPPC 2000.  gcc's
> default behavior on PPC is -funsigned-char, and that seems to be the
> way that libc was built in that distro.  But /usr/lib/rpm/rpmrc sets
> RPM_OPT_FLAGS to "-fsigned-char -O2".  (The -O2 wreaks havoc with
> Postgres too, pre-fmgr-rewrite, but at least we knew about that effect.)
> On closer examination, I think the blame lies with the RPM people and
> not with LinuxPPC per se, because /usr/lib/rpm/rpmrc comes straight
> from the RPM distro.  Seems to me that libc *should* be built with

It's more of a combination -- if the LinuxPPC people are overriding the
default RPM_OPT_FLAGS with their own stuff for libc, that's not an RPM

OTOH, RPM_OPT_FLAGS for that compiler on PPC should not have -O2, if -O2
causes other packages on that platform to barf.  Of course, IIRC, we
have historically had problems with -O2 on some architectures pre-fmgr
rewrite.  So the problem lies with all three: it's our problem -O2
causes problems; it's LinuxPPC's problem that libc is compiled with the
non-RPM_OPT_FLAGS char signage; and it's RPM's problem that
RPM_OPT_FLAGS has a non-default char signage for PPC.  So, the short
term fix is to patch our spec file (which we've done for PPC).

The person to inform of generic RPM issues is Jeff Johnson

Lamar Owen
WGCR Internet Radio
1 Peter 4:11

Sat, 10 May 2003 04:15:03 GMT
 [ 1 post ] 

 Relevant Pages 

1. RPM's -fsigned-char (Re: [COMMITTERS] pgsql/src/backend/utils/adt (cash.c))

2. registerIndexTableOutParameter with TABLE OF CHAR(20), corresponding JDBC datatype of Oracle's CHAR

3. Can't insert char into CHAR column

4. RPM won't install

5. 7.3 RPM's for SuSE?

6. Updated glib rpm's from Redhat fix Informix on Red Hat 8

7. What if you don't have rpm capability

8. Can't save BLOB from RS to Variable to File without extra char's

9. The '%' char

10. Char, Varchar and '-'

11. Special char '&'

12. Adding '0' to pad a char

Powered by phpBB® Forum Software