Hi,

Bootstrapping 2.3 withoug GCC fails in building  RPM 4.1.2
(Solaris 10 x86 / Sun Studio 9). It seems likely to me
that bootstrapping 2.3 without gcc is broken everywhere:

The Error occurs at line 99 in "rpmfile.h"  when compiling "files.c"

This Line is specific to the Gnu Compilers, and should never
be seen by Sun C. It is seen, since "files.c" includes indirectly
"beecrypt-4.1.2/gnu.h" , which triggers the error by the following construct:


beecrypt-4.1.2/gnu.h: ####################

#if defined(__GNUC__)
# if !defined(__GNUC_PREREQ__)
#  define __GNUC_PREREQ__(maj, min) (__GNUC__ > (maj) || __GNUC__ == (maj) && 
__GNUC_MINOR__ >= (min))
# endif
#else
# define __GNUC__ 0
# define __GNUC_PREREQ__(maj, min) 0
#endif



so gnu.h #defines __GNUC__ if previously not #defined, which can break ANY
Non-Gnu Compiler in Line 99 of


rpmfile.h: ##########

#if defined(__GNUC__)
} __attribute__((__packed__));          <-- Line 99 !!!!!
#else
};






/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lib -I../rpmdb -I../rpmio -I../popt -DOPENPKG -DOPENPKG_SUNOS -I/tmp/openpkg-2.3.0/zlib-1.2.2 -I/tmp/openpkg-2.3.0/bzip2-1.0.2 -I/tmp/openpkg-2.3.0/beecrypt-4.1.2 -DOPENPKG -DOPENPKG_SUNOS
-I/tmp/openpkg-2.3.0/zlib-1.2.2 -I/tmp/openpkg-2.3.0/bzip2-1.0.2 -I/tmp/openpkg-2.3.0/beecrypt-4.1.2 -c files.c -o files.o

"rpmfile.h", line 99: syntax error before or at: (
"rpmfile.h", line 99: warning: syntax error:  empty declaration
...
cc: acomp failed for files.c
make[2]: *** [files.lo] Error 1
make[2]: Leaving directory /tmp/openpkg-2.3.0/rpm-4.2.1'
make: *** [all] Error 2
+ exit 2 ./openpkg.boot:ERROR: script returned non-null value



Best regards

Michael Nast


------------------------------------- Dr. Michael Nast

Technische Universit�t M�nchen | Telefon : ++49-89-289-18283
RBG-MA                         | Fax:      ++49-89-289-18282
Boltzmannstr. 3                |
85748 Garching b. M�nchen      | Email:    [EMAIL PROTECTED]
Raum 00.07.051                 | http://www.ma.tum.de

begin:vcard
fn:Michael Nast
n:Nast;Michael
org:RBG-MA;Zentrum Mathematik
adr;quoted-printable:;;Boltzmannstr. 3;M=C3=BCnchen;Freistaat Bayern;85747;Germany
email;internet:[EMAIL PROTECTED]
title;quoted-printable:TU M=C3=BCnchen
tel;work:++49-89-289-18283
tel;fax:++49-89-289-18282
x-mozilla-html:TRUE
url:http://www.ma.tum.de
version:2.1
end:vcard

Reply via email to