[Lsb-infrastructure] First look at April 18 updates

Stew Benedict stewb at linux-foundation.org
Tue Apr 22 08:21:50 PDT 2008


On Tue, 22 Apr 2008, Denis Silakov wrote:

> Wichmann, Mats D wrote:
> >> Are there any reasons to build tests in old-fashioned style?
> >>     
> > I hope not, but it's quite possible: the core test is *VERY*
> > old code, as is the heritage of xts5 (although the test itself
> > is somewhat newer).  I believe we'll find there are still
> > code constructs using pre-ANSI/ISO C in both.  I know xts5 doesn't
> > have "real" prototypes because the X team was afraid adopting
> > this would shut the code out of some platforms (I've gotten the
> > go-ahead to submit patches in this area if any are needed).
> >
> > I don't know where various introductions intersect and where
> > we'll run into problems, if any.  But it is possible there
> > will be some.
> 
> Well, I've got enough reasons:) Patches to mkheader and specdb.pm module
> went to bug 2056 (http://bugs.linuxbase.org/show_bug.cgi?id=2056).
> 
> As for C standard mentioned in Jeff's letter, '//' comments are allowed
> in ISOC99.
> 

Just did a build stripping out all the references to -ansi.  Most of the 
test built, with these errors now (sorry for the ugly pastes):

520|595 1 00005732 1 1|make[1]: Entering directory 
`/nethome/stewb/tmp/rpm-build/BUILD/lsb-test-core-3.90.0/tet/test_sets/tset/LSB.os/network/gethostbyaddr'
520|595 1 00005732 1 2|lsbcc  
-I/nethome/stewb/tmp/rpm-build/BUILD/lsb-test-core-3.90.0/tet/test_sets/SRC/../../inc/tet3 
-I. 
-I/nethome/stewb/tmp/rpm-build/BUILD/lsb-test-core-3.90.0/tet/test_sets/SRC/INC  
-D_XOPEN_SOURCE=500 -DUNDEF_MACROS      -c -o gethostbyaddr.o 
gethostbyaddr.c
520|595 1 00005732 1 3|gethostbyaddr.c: In function test1:
520|595 1 00005732 1 4|gethostbyaddr.c:78: error: h_errno undeclared 
(first use in this function)
520|595 1 00005732 1 5|gethostbyaddr.c:78: error: (Each undeclared 
identifier is reported only once
520|595 1 00005732 1 6|gethostbyaddr.c:78: error: for each function it 
appears in.)
520|595 1 00005732 1 7|gethostbyaddr.c:79: warning: gethostbyaddr is 
deprecated (declared at /opt/lsb/include/netdb.h:151)
520|595 1 00005732 1 8|gethostbyaddr.c: In function test2:
520|595 1 00005732 1 9|gethostbyaddr.c:107: error: h_errno undeclared 
(first use in this function)
520|595 1 00005732 1 10|gethostbyaddr.c:108: warning: gethostbyaddr is 
deprecated (declared at /opt/lsb/include/netdb.h:151)
520|595 1 00005732 1 11|make[1]: *** [gethostbyaddr.o] Error 1

(same for gethostbyname)

520|601 1 00006018 1 1|make[1]: Entering directory 
`/nethome/stewb/tmp/rpm-build/BUILD/lsb-test-core-3.90.0/tet/test_sets/tset/LSB.os/jump/makecontext'
520|601 1 00006018 1 2|lsbcc  -I../../../../../inc/tet3 
-I/nethome/stewb/tmp/rpm-build/BUILD/lsb-test-core-3.90.0/tet/test_sets/SRC/INC  
-D_XOPEN_SOURCE=500 -DUNDEF_MACROS      -c -o makecontext.o makecontext.c
520|601 1 00006018 1 3|In file included from makecontext.c:56:
520|601 1 00006018 1 4|/opt/lsb/include/ucontext.h:287: error: array type 
has incomplete element type
520|601 1 00006018 1 5|/opt/lsb/include/ucontext.h:288: error: array type 
has incomplete element type
520|601 1 00006018 1 6|/opt/lsb/include/ucontext.h:348: error: field 
vrregs has incomplete type
520|601 1 00006018 1 7|make[1]: *** [makecontext.o] Error 1

(same for setcontext)
 
-- 
Stew Benedict
The Linux Foundation


More information about the lsb-infrastructure mailing list