|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2084 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 2084.
Report 2084 Actions
Problem Report Number 2084 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1055 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1998-05-12 08:00 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSTH version 5.1.2 Test Identification PTHR.os/all/General 5 Problem Summary TSD5TH.00052 Because of an error in the makefile, the General_5 binary fails to build on our implementation when building as a 64-bit object. The build output is noted in the first journal output above. This failu... Problem Text
Because of an error in the makefile, the General_5 binary fails to build
on our implementation when building as a 64-bit object. The build output
is noted in the first journal output above. This failure to build results
in the eventual failure at execution time due to the missing General_5
binary.
The failure to build General_5 is due to a problem in the makefile.
Specifically, the General.o and General_5.o objects are built with the -c
option and the -xarch=v9 flag. However, at link time, though $(LDFLAGS) is
set to -xarch-=v9 and is used for creating T.General, $(LDFLAGS) is not
used for creation of General_5. As a result, the build fails when it
attempts to create a 32-bit object using the 64-bit General_5.o:
ld: fatal: file General_5.o: wrong machine class
ld: fatal: File processing errors. No output written to General_5
*** Error code 1
make: Fatal error: Command failed for target `General_5'
The fix that is required to the makefile is to change the following lines
in tset/PTHR.os/all/General/Makefile:
General_5: $(OFILES_5) $(THRTCMCHILD) $(LIBS)
$(CC) -o $@ $(OFILES_5) $(THRTCMCHILD) $(LIBS) -l pthread
@echo " $@ made"
to
General_5: $(OFILES_5) $(THRTCMCHILD) $(LIBS)
$(CC) -o $@ $(OFILES_5) $(THRTCMCHILD) $(LIBS) -l pthread $(LDFLAGS)
@echo " $@ made"Test Output
**********************************************************************
/tset/PTHR.os/all/General/T.General Failed
Make Information:
/usr/bin/c89 -I/export/home5/suites/TET3.1/vsx4/SRC/../../inc/tet3
-I/export/home5/suites/TET3.1/vsx4/SRC/INC
-I/export/home5/suites/TET3.1/vsx4/SRC/SYSINC
-D_XOPEN_SOURCE=500 -DUNDEF_MACROS -D_REENTRANT -xarch=v9 -c
General.c
/usr/bin/c89 -o T.General General.o
/export/home5/suites/TET3.1/vsx4/SRC/../../lib/tet3/thrtcm.o
/export/home5/suites/TET3.1/vsx4/SRC/LIB/thrstartup.o
/export/home5/suites/TET3.1/vsx4/SRC/LIB/thrtsetlib.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/thrgenlib.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/thrvlib.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/libvsth.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/vport.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/libvst
h_rt.a /export/home5/suites/TET3.1/vsx4/SRC/../../lib/tet3/libthrapi.a
-lpthread -lpthread -lrt -xarch=v9 -xO0 -lm
T.General made
/export/home5/suites/TET3.1/vsx4/SRC/BIN/chmog 755 vsx0 vsxg0 -m
T.General /export/home5/suites/TET3.1/vsx4/TESTROOT/tset/PTHR.os
/all/General/T.General
T.General installed in /export/home5/suites/TET3.1/vsx4/TESTROOT/tset/P
THR.os/all/General/T.General
/usr/bin/c89 -I/export/home5/suites/TET3.1/vsx4/SRC/../../inc/tet3
-I/export/home5/suites/TET3.1/vsx4/SRC/INC
-I/export/home5/suites/TET3.1/vsx4/SRC/SYSINC
-D_XOPEN_SOURCE=500 -DUNDEF_MACROS -D_REENTRANT -xarch=v9 -c
General_5.c
/usr/bin/c89 -o General_5 General_5.o
/export/home5/suites/TET3.1/vsx4/SRC/../../lib/tet3/thrtcmchild.o
/export/home5/suites/TET3.1/vsx4/SRC/LIB/thrtsetlib.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/thrgenlib.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/thrvlib.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/libvsth.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/vport.a
/export/home5/suites/TET3.1/vsx4/SRC/LIB/libvsth_rt.a
/export/home5/suites/TET3.1/vsx4/SRC/..
/../lib/tet3/libthrapi.a -l pthread
ld: fatal: file General_5.o: wrong machine class
ld: fatal: File processing errors. No output written to General_5
**********************************************************************
********************************************************************
/tset/PTHR.os/all/General/T.General 5 Unresolved
Test Description:
The operand -l pthread shall make visible all functions referenced
in <pthread.h> and pthread_atfork() referenced in <unistd.h>.
Test Information:
The operand -l pthread shall make visible all functions referenced
in <pthread.h> and pthread_atfork() referenced in <unistd.h>
XCAE Ref: Component LIBPTHREAD
Assertion 5(A)
child process gave unexpected exit code 1
********************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This test is evaluating the assertion that a -lpthread directive makes
all the POSIX.1-1996 and UNIX98 threads symbols
visible and that some implementations may have to provide additional
linker directives when compiling for compilation models which are not
the system defaults. We therefore recommend that a waiver be granted
on the basis of a test suite deficiency.
It must be noted however that LD_FLAGS, if used for this purpose, must
not contain the name of the system's threads library.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
This is an agreed Test Suite Deficiency.
Problem Reporting System Options:
- View Report 2084
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority