From: Masatake YAMATO <[email protected]>
Subject: Re: [LTP] [PATCH 2/3] Proc01: Fix for PPC64 and Support 
SELinux-enabled Environment v2
Date: Tue, 17 Feb 2009 15:37:56 +0900 (JST)

> Hi,
> 
>> > --- old/m4/ltp-common.m4   1970-01-01 09:00:00.000000000 +0900
>> > +++ new/m4/ltp-common.m4   2009-02-16 13:04:46.000000000 +0900
>> > @@ -0,0 +1,35 @@
>> > +dnl
>> > +dnl Copyright (c) Red Hat Inc., 2009
>> > +dnl
>> > +dnl This program is free software;  you can redistribute it and/or
>> > +dnl modify it under the terms of the GNU General Public License as
>> > +dnl published by the Free Software Foundation; either version 2 of
>> > +dnl the License, or (at your option) any later version.
>> > +dnl
>> > +dnl This program is distributed in the hope that it will be useful,
>> > +dnl but WITHOUT ANY WARRANTY;  without even the implied warranty of
>> > +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
>> > +dnl the GNU General Public License for more details.
>> > +dnl
>> > +dnl You should have received a copy of the GNU General Public License
>> > +dnl along with this program;  if not, write to the Free Software
>> > +dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
>> > +dnl USA
>> > +dnl
>> > +dnl Author: Masatake YAMATO <[email protected]>
>> > +dnl
>> > +
>> > +# LTP_CHECK_LIB(/LIBRARY/,/FUNCTIONS/,[/OTHER-LIBRARIES/])
>> > +# --------------------------------------------------
>> > +# LTP_CHECK_LIB works like AC_CHECK_LIB.
>> > +# But it is customized for LTP.
>> > +#
>> > +# 1. LIBS is not updated even if /FUNCTION/ is found in /LIBRARY/.
>> > +# 2. Instead of LIBS, /LIBRARY/_LIBS is set.
>> > +# 3. /LIBRARY/_LIBS is passed to AC_SUBST.
>> > +#
>> > +AC_DEFUN([LTP_CHECK_LIB],
>> > +[AH_TEMPLATE(AS_TR_CPP([HAVE_LIB$1]),
>> > +[Define to 1 if you have the `$1' library (-l$1).])
>> > +AC_CHECK_LIB($1,$2,[AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1)) 
>> > AS_TR_CPP([$1_LIBS])="-l$1 $3"],,$3)
>> > +AC_SUBST(AS_TR_CPP([$1_LIBS]))])
>> > 
>> 
>> It looks like even if the actual library is installed without the
>> header, HAVE_LIBSELINUX is not set.
>> 
>> # rpm -qa | grep libselinux
>> libselinux-2.0.73-1.fc10.i386
>> 
>> # ls -l /usr/lib/libselinux.so
>> lrwxrwxrwx 1 root root 25 2009-02-17 00:10 /usr/lib/libselinux.so ->
>> ../../lib/libselinux.so.1
>> 
>> $ ./configure
>> ...
>> checking selinux/selinux.h usability... no
>> checking selinux/selinux.h presence... no
>> checking for selinux/selinux.h... no
>> checking for is_selinux_enabled in -lselinux... no
>> ...
>> 
>> $ cat include/config.h
>> ...
>> /* #undef HAVE_LIBSELINUX */
>> /* #undef HAVE_SELINUX_SELINUX_H */
>> ...
>> 
>> So, it does not look like what you want to do here.
> 
> A bit strange for me.
> Could you send me /tmp/ltp/new/config.log?
>
> Masatake YAMATO

Sign, it looks like /usr/lib/libselinux.so is actually part of
libselinux-devel package in Fedora 10,

# rpm -ql libselinux-devel | grep lib
/usr/lib/libselinux.so

# rpm -ql libselinux
/lib/libselinux.so.1
/var/run/setrans

In case libselinux-devel is missing, there is no /usr/lib/libselinux.so
symbolic link (sorry, the above output of "ls -l" seems was taken with
libselinux-devel installed), so the test program does not look like
compile properly.

...
configure:5985: checking for is_selinux_enabled in -lselinux
configure:6020: gcc -o conftest -g -O2   conftest.c -lselinux   >&5
/usr/bin/ld: cannot find -lselinux
collect2: ld returned 1 exit status
...

Is that something you want to deal with, i.e. with actual libselinux
installed, but no libselinux-devel? Anyway, I have attached the
config.log file.

CAI Qian
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ltp configure cvs, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.27.5-117.fc10.i686
uname -s = Linux
uname -v = #1 SMP Tue Nov 18 12:19:59 EST 2008

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1889: checking for a BSD-compatible install
configure:1957: result: /usr/bin/install -c
configure:1968: checking whether build environment is sane
configure:2011: result: yes
configure:2036: checking for a thread-safe mkdir -p
configure:2075: result: /bin/mkdir -p
configure:2088: checking for gawk
configure:2104: found /bin/gawk
configure:2115: result: gawk
configure:2126: checking whether make sets $(MAKE)
configure:2148: result: yes
configure:2343: checking build system type
configure:2361: result: i686-pc-linux-gnu
configure:2383: checking host system type
configure:2398: result: i686-pc-linux-gnu
configure:2468: checking for gcc
configure:2484: found /usr/bin/gcc
configure:2495: result: gcc
configure:2727: checking for C compiler version
configure:2735: gcc --version >&5
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2739: $? = 0
configure:2746: gcc -v >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla 
--enable-bootstrap --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk 
--disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib 
--with-cpu=generic --build=i386-redhat-linux
Thread model: posix
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) 
configure:2750: $? = 0
configure:2757: gcc -V >&5
gcc: '-V' option must have argument
configure:2761: $? = 1
configure:2784: checking for C compiler default output file name
configure:2806: gcc    conftest.c  >&5
configure:2810: $? = 0
configure:2848: result: a.out
configure:2867: checking whether the C compiler works
configure:2877: ./a.out
configure:2881: $? = 0
configure:2900: result: yes
configure:2907: checking whether we are cross compiling
configure:2909: result: no
configure:2912: checking for suffix of executables
configure:2919: gcc -o conftest    conftest.c  >&5
configure:2923: $? = 0
configure:2949: result: 
configure:2955: checking for suffix of object files
configure:2981: gcc -c   conftest.c >&5
configure:2985: $? = 0
configure:3010: result: o
configure:3014: checking whether we are using the GNU C compiler
configure:3043: gcc -c   conftest.c >&5
configure:3050: $? = 0
configure:3067: result: yes
configure:3076: checking whether gcc accepts -g
configure:3106: gcc -c -g  conftest.c >&5
configure:3113: $? = 0
configure:3214: result: yes
configure:3231: checking for gcc option to accept ISO C89
configure:3305: gcc  -c -g -O2  conftest.c >&5
configure:3312: $? = 0
configure:3335: result: none needed
configure:3364: checking for style of include used by make
configure:3392: result: GNU
configure:3417: checking dependency style of gcc
configure:3508: result: none
configure:3566: checking for ar
configure:3582: found /usr/bin/ar
configure:3593: result: ar
configure:3658: checking for ranlib
configure:3674: found /usr/bin/ranlib
configure:3685: result: ranlib
configure:3714: checking how to run the C preprocessor
configure:3754: gcc -E  conftest.c
configure:3761: $? = 0
configure:3792: gcc -E  conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:3799: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3832: result: gcc -E
configure:3861: gcc -E  conftest.c
configure:3868: $? = 0
configure:3899: gcc -E  conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:3906: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3946: checking for grep that handles long lines and -e
configure:4006: result: /bin/grep
configure:4011: checking for egrep
configure:4075: result: /bin/grep -E
configure:4080: checking for ANSI C header files
configure:4110: gcc -c -g -O2  conftest.c >&5
configure:4117: $? = 0
configure:4216: gcc -o conftest -g -O2   conftest.c  >&5
configure:4220: $? = 0
configure:4226: ./conftest
configure:4230: $? = 0
configure:4248: result: yes
configure:4272: checking for sys/types.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4272: checking for sys/stat.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4272: checking for stdlib.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4272: checking for string.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4272: checking for memory.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4272: checking for strings.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4272: checking for inttypes.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4272: checking for stdint.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4272: checking for unistd.h
configure:4293: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4317: result: yes
configure:4350: checking ifaddrs.h usability
configure:4367: gcc -c -g -O2  conftest.c >&5
configure:4374: $? = 0
configure:4388: result: yes
configure:4392: checking ifaddrs.h presence
configure:4407: gcc -E  conftest.c
configure:4414: $? = 0
configure:4428: result: yes
configure:4461: checking for ifaddrs.h
configure:4470: result: yes
configure:4350: checking sys/capability.h usability
configure:4367: gcc -c -g -O2  conftest.c >&5
conftest.c:54:28: error: sys/capability.h: No such file or directory
configure:4374: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/capability.h>
configure:4388: result: no
configure:4392: checking sys/capability.h presence
configure:4407: gcc -E  conftest.c
conftest.c:21:28: error: sys/capability.h: No such file or directory
configure:4414: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| /* end confdefs.h.  */
| #include <sys/capability.h>
configure:4428: result: no
configure:4461: checking for sys/capability.h
configure:4470: result: no
configure:4350: checking sys/inotify.h usability
configure:4367: gcc -c -g -O2  conftest.c >&5
configure:4374: $? = 0
configure:4388: result: yes
configure:4392: checking sys/inotify.h presence
configure:4407: gcc -E  conftest.c
configure:4414: $? = 0
configure:4428: result: yes
configure:4461: checking for sys/inotify.h
configure:4470: result: yes
configure:4350: checking linux/types.h usability
configure:4367: gcc -c -g -O2  conftest.c >&5
configure:4374: $? = 0
configure:4388: result: yes
configure:4392: checking linux/types.h presence
configure:4407: gcc -E  conftest.c
configure:4414: $? = 0
configure:4428: result: yes
configure:4461: checking for linux/types.h
configure:4470: result: yes
configure:4520: checking libaio.h usability
configure:4537: gcc -c -g -O2  conftest.c >&5
conftest.c:56:20: error: libaio.h: No such file or directory
configure:4544: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <libaio.h>
configure:4558: result: no
configure:4562: checking libaio.h presence
configure:4577: gcc -E  conftest.c
conftest.c:23:20: error: libaio.h: No such file or directory
configure:4584: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| /* end confdefs.h.  */
| #include <libaio.h>
configure:4598: result: no
configure:4631: checking for libaio.h
configure:4640: result: no
configure:4792: checking for modify_ldt
configure:4848: gcc -o conftest -g -O2   conftest.c  >&5
configure:4855: $? = 0
configure:4877: result: yes
configure:4905: checking asm/ldt.h usability
configure:4922: gcc -c -g -O2  conftest.c >&5
configure:4929: $? = 0
configure:4943: result: yes
configure:4947: checking asm/ldt.h presence
configure:4962: gcc -E  conftest.c
configure:4969: $? = 0
configure:4983: result: yes
configure:5016: checking for asm/ldt.h
configure:5025: result: yes
configure:5041: checking for struct user_desc
configure:5071: gcc -c -g -O2  conftest.c >&5
configure:5078: $? = 0
configure:5107: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:31: error: expected expression before ')' token
configure:5114: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| #define HAVE_MODIFY_LDT 1
| #define HAVE_ASM_LDT_H 1
| /* end confdefs.h.  */
| #include <asm/ldt.h>
| 
| 
| int
| main ()
| {
| if (sizeof ((struct user_desc)))
|         return 0;
|   ;
|   return 0;
| }
configure:5137: result: yes
configure:5147: checking for struct modify_ldt_ldt_s
configure:5177: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:32: error: invalid application of 'sizeof' to incomplete type 
'struct modify_ldt_ldt_s' 
configure:5184: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| #define HAVE_MODIFY_LDT 1
| #define HAVE_ASM_LDT_H 1
| #define HAVE_STRUCT_USER_DESC 1
| /* end confdefs.h.  */
| #include <asm/ldt.h>
| 
| 
| int
| main ()
| {
| if (sizeof (struct modify_ldt_ldt_s))
|        return 0;
|   ;
|   return 0;
| }
configure:5243: result: no
configure:5261: checking for signalfd
configure:5317: gcc -o conftest -g -O2   conftest.c  >&5
configure:5324: $? = 0
configure:5346: result: yes
configure:5374: checking sys/signalfd.h usability
configure:5391: gcc -c -g -O2  conftest.c >&5
configure:5398: $? = 0
configure:5412: result: yes
configure:5416: checking sys/signalfd.h presence
configure:5431: gcc -E  conftest.c
configure:5438: $? = 0
configure:5452: result: yes
configure:5485: checking for sys/signalfd.h
configure:5494: result: yes
configure:5520: checking for linux/signalfd.h
configure:5544: gcc -c -g -O2  conftest.c >&5
configure:5551: $? = 0
configure:5568: result: yes
configure:5520: checking for signalfd.h
configure:5544: gcc -c -g -O2  conftest.c >&5
conftest.c:34:22: error: signalfd.h: No such file or directory
configure:5551: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| #define HAVE_MODIFY_LDT 1
| #define HAVE_ASM_LDT_H 1
| #define HAVE_STRUCT_USER_DESC 1
| #define HAVE_SIGNALFD 1
| #define HAVE_SYS_SIGNALFD_H 1
| #define HAVE_LINUX_SIGNALFD_H 1
| /* end confdefs.h.  */
| #ifdef HAVE_LINUX_TYPES_H
| #include <linux/types.h>
| #endif
| 
| 
| #include <signalfd.h>
configure:5568: result: no
configure:5583: checking for struct signalfd_siginfo.ssi_signo
configure:5621: gcc -c -g -O2  conftest.c >&5
configure:5628: $? = 0
configure:5696: result: yes
configure:5706: checking for struct signalfd_siginfo.signo
configure:5744: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:45: error: 'struct signalfd_siginfo' has no member named 'signo'
configure:5751: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| #define HAVE_MODIFY_LDT 1
| #define HAVE_ASM_LDT_H 1
| #define HAVE_STRUCT_USER_DESC 1
| #define HAVE_SIGNALFD 1
| #define HAVE_SYS_SIGNALFD_H 1
| #define HAVE_LINUX_SIGNALFD_H 1
| #define HAVE_STRUCT_SIGNALFD_SIGINFO_SSI_SIGNO 1
| /* end confdefs.h.  */
| #if defined HAVE_SYS_SIGNALFD_H
| #include <sys/signalfd.h>
| #elif defined HAVE_LINUX_SIGNALFD_H
| #ifdef HAVE_LINUX_TYPES_H
| #include <linux/types.h>
| #endif
| #include <linux/signalfd.h>
| #elif defined HAVE_SIGNALFD_H
| #include <signalfd.h>
| #endif
| 
| int
| main ()
| {
| static struct signalfd_siginfo ac_aggr;
| if (ac_aggr.signo)
| return 0;
|   ;
|   return 0;
| }
configure:5794: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:45: error: 'struct signalfd_siginfo' has no member named 'signo'
configure:5801: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| #define HAVE_MODIFY_LDT 1
| #define HAVE_ASM_LDT_H 1
| #define HAVE_STRUCT_USER_DESC 1
| #define HAVE_SIGNALFD 1
| #define HAVE_SYS_SIGNALFD_H 1
| #define HAVE_LINUX_SIGNALFD_H 1
| #define HAVE_STRUCT_SIGNALFD_SIGINFO_SSI_SIGNO 1
| /* end confdefs.h.  */
| #if defined HAVE_SYS_SIGNALFD_H
| #include <sys/signalfd.h>
| #elif defined HAVE_LINUX_SIGNALFD_H
| #ifdef HAVE_LINUX_TYPES_H
| #include <linux/types.h>
| #endif
| #include <linux/signalfd.h>
| #elif defined HAVE_SIGNALFD_H
| #include <signalfd.h>
| #endif
| 
| int
| main ()
| {
| static struct signalfd_siginfo ac_aggr;
| if (sizeof ac_aggr.signo)
| return 0;
|   ;
|   return 0;
| }
configure:5819: result: no
configure:5848: checking selinux/selinux.h usability
configure:5865: gcc -c -g -O2  conftest.c >&5
conftest.c:63:29: error: selinux/selinux.h: No such file or directory
configure:5872: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| #define HAVE_MODIFY_LDT 1
| #define HAVE_ASM_LDT_H 1
| #define HAVE_STRUCT_USER_DESC 1
| #define HAVE_SIGNALFD 1
| #define HAVE_SYS_SIGNALFD_H 1
| #define HAVE_LINUX_SIGNALFD_H 1
| #define HAVE_STRUCT_SIGNALFD_SIGINFO_SSI_SIGNO 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <selinux/selinux.h>
configure:5886: result: no
configure:5890: checking selinux/selinux.h presence
configure:5905: gcc -E  conftest.c
conftest.c:30:29: error: selinux/selinux.h: No such file or directory
configure:5912: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| #define HAVE_MODIFY_LDT 1
| #define HAVE_ASM_LDT_H 1
| #define HAVE_STRUCT_USER_DESC 1
| #define HAVE_SIGNALFD 1
| #define HAVE_SYS_SIGNALFD_H 1
| #define HAVE_LINUX_SIGNALFD_H 1
| #define HAVE_STRUCT_SIGNALFD_SIGINFO_SSI_SIGNO 1
| /* end confdefs.h.  */
| #include <selinux/selinux.h>
configure:5926: result: no
configure:5959: checking for selinux/selinux.h
configure:5968: result: no
configure:5985: checking for is_selinux_enabled in -lselinux
configure:6020: gcc -o conftest -g -O2   conftest.c -lselinux   >&5
/usr/bin/ld: cannot find -lselinux
collect2: ld returned 1 exit status
configure:6027: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ltp"
| #define PACKAGE_TARNAME "ltp"
| #define PACKAGE_VERSION "cvs"
| #define PACKAGE_STRING "ltp cvs"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "ltp"
| #define VERSION "cvs"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IFADDRS_H 1
| #define HAVE_SYS_INOTIFY_H 1
| #define HAVE_LINUX_TYPES_H 1
| #define HAVE_MODIFY_LDT 1
| #define HAVE_ASM_LDT_H 1
| #define HAVE_STRUCT_USER_DESC 1
| #define HAVE_SIGNALFD 1
| #define HAVE_SYS_SIGNALFD_H 1
| #define HAVE_LINUX_SIGNALFD_H 1
| #define HAVE_STRUCT_SIGNALFD_SIGINFO_SSI_SIGNO 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char is_selinux_enabled ();
| int
| main ()
| {
| return is_selinux_enabled ();
|   ;
|   return 0;
| }
configure:6048: result: no
configure:6176: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by ltp config.status cvs, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on localhost.localdomain

config.status:792: creating config.mk
config.status:792: creating m4/Makefile
config.status:792: creating include/config.h
config.status:1066: executing depfiles commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_modify_ldt=yes
ac_cv_func_signalfd=yes
ac_cv_header_asm_ldt_h=yes
ac_cv_header_ifaddrs_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_libaio_h=no
ac_cv_header_linux_signalfd_h=yes
ac_cv_header_linux_types_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_selinux_selinux_h=no
ac_cv_header_signalfd_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_capability_h=no
ac_cv_header_sys_inotify_h=yes
ac_cv_header_sys_signalfd_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_lib_selinux_is_selinux_enabled=no
ac_cv_member_struct_signalfd_siginfo_signo=no
ac_cv_member_struct_signalfd_siginfo_ssi_signo=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_type_struct_modify_ldt_ldt_s=no
ac_cv_type_struct_user_desc=yes
am_cv_CC_dependencies_compiler_type=none

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/caiqian/buffer/ltp/missing --run aclocal-1.10'
AIO_LIBS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/caiqian/buffer/ltp/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /home/caiqian/buffer/ltp/missing --run autoconf'
AUTOHEADER='${SHELL} /home/caiqian/buffer/ltp/missing --run autoheader'
AUTOMAKE='${SHELL} /home/caiqian/buffer/ltp/missing --run automake-1.10'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=none'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GREP='/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/caiqian/buffer/ltp/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT='o'
PACKAGE='ltp'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='ltp'
PACKAGE_STRING='ltp cvs'
PACKAGE_TARNAME='ltp'
PACKAGE_VERSION='cvs'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SELINUX_LIBS=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='cvs'
ac_ct_CC='gcc'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/caiqian/buffer/ltp/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "ltp"
#define PACKAGE_TARNAME "ltp"
#define PACKAGE_VERSION "cvs"
#define PACKAGE_STRING "ltp cvs"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE "ltp"
#define VERSION "cvs"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_IFADDRS_H 1
#define HAVE_SYS_INOTIFY_H 1
#define HAVE_LINUX_TYPES_H 1
#define HAVE_MODIFY_LDT 1
#define HAVE_ASM_LDT_H 1
#define HAVE_STRUCT_USER_DESC 1
#define HAVE_SIGNALFD 1
#define HAVE_SYS_SIGNALFD_H 1
#define HAVE_LINUX_SIGNALFD_H 1
#define HAVE_STRUCT_SIGNALFD_SIGINFO_SSI_SIGNO 1

configure: exit 0
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to