All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling
@ 2014-12-25  4:34 Adam Jiang
  2014-12-25  4:47 ` Baruch Siach
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Jiang @ 2014-12-25  4:34 UTC (permalink / raw)
  To: buildroot

Hi,

I am trying to add a new package to buildroot. the package is built upon
autotools. thus, it is supposed to be very easy to make it
cross-compilable. ever, i got suck at AC_CHECK_LIB macro. it doesn't
work well at cross-compiling while it does work on normal compiling.

AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [AC_MSG_WARN("unable to find
the FCGX_InitRequest() function")])

always failed even though I do have libfcgi in my configuration. The
error message looks like

checking for FCGX_InitRequest in -lfcgi... no
configure: WARNING: unable to find the FCGX_InitRequest() function

I don't think AC_CHECK_LIB will not work on cross-compiling because it
seems there are lots of other target packages in buildroot using the
macro. Most probably, I am doing something wrong.

Does AC_CHECK_LIB work in buildroot? If the macro needs some changes,
how could I do it?

Thanks,
/Adam

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling
  2014-12-25  4:34 [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling Adam Jiang
@ 2014-12-25  4:47 ` Baruch Siach
  2014-12-25  6:27   ` Adam Jiang
  0 siblings, 1 reply; 7+ messages in thread
From: Baruch Siach @ 2014-12-25  4:47 UTC (permalink / raw)
  To: buildroot

Hi Adam,

On Thu, Dec 25, 2014 at 01:34:59PM +0900, Adam Jiang wrote:
> I am trying to add a new package to buildroot. the package is built upon
> autotools. thus, it is supposed to be very easy to make it
> cross-compilable. ever, i got suck at AC_CHECK_LIB macro. it doesn't
> work well at cross-compiling while it does work on normal compiling.
> 
> AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [AC_MSG_WARN("unable to find
> the FCGX_InitRequest() function")])
> 
> always failed even though I do have libfcgi in my configuration. The
> error message looks like
> 
> checking for FCGX_InitRequest in -lfcgi... no
> configure: WARNING: unable to find the FCGX_InitRequest() function
> 
> I don't think AC_CHECK_LIB will not work on cross-compiling because it
> seems there are lots of other target packages in buildroot using the
> macro. Most probably, I am doing something wrong.
> 
> Does AC_CHECK_LIB work in buildroot? If the macro needs some changes,
> how could I do it?

What do you have in config.log for the FCGX_InitRequest check?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling
  2014-12-25  4:47 ` Baruch Siach
@ 2014-12-25  6:27   ` Adam Jiang
  2014-12-25  6:49     ` Baruch Siach
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Jiang @ 2014-12-25  6:27 UTC (permalink / raw)
  To: buildroot

Thank you, Baruch.

Here is what I got from grep in config.log.

$ grep -i FCGX_InitRequest output/build/visage-master/config.log
configure:5626: checking for FCGX_InitRequest in -lfcgi
| char FCGX_InitRequest ();
| return FCGX_InitRequest ();
configure:5689: WARNING: unable to find the FCGX_InitRequest() function
ac_cv_lib_fcgi_FCGX_InitRequest=no

I have also attached 'config.log' as well.

On 12/25/2014 01:47 PM, Baruch Siach wrote:
> Hi Adam,
>
> On Thu, Dec 25, 2014 at 01:34:59PM +0900, Adam Jiang wrote:
>> I am trying to add a new package to buildroot. the package is built upon
>> autotools. thus, it is supposed to be very easy to make it
>> cross-compilable. ever, i got suck at AC_CHECK_LIB macro. it doesn't
>> work well at cross-compiling while it does work on normal compiling.
>>
>> AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [AC_MSG_WARN("unable to find
>> the FCGX_InitRequest() function")])
>>
>> always failed even though I do have libfcgi in my configuration. The
>> error message looks like
>>
>> checking for FCGX_InitRequest in -lfcgi... no
>> configure: WARNING: unable to find the FCGX_InitRequest() function
>>
>> I don't think AC_CHECK_LIB will not work on cross-compiling because it
>> seems there are lots of other target packages in buildroot using the
>> macro. Most probably, I am doing something wrong.
>>
>> Does AC_CHECK_LIB work in buildroot? If the macro needs some changes,
>> how could I do it?
> What do you have in config.log for the FCGX_InitRequest check?
>
> baruch
>

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

It was created by visage configure 0.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --target=arm-buildroot-linux-uclibcgnueabi --host=arm-buildroot-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --program-prefix= --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --enable-ipv6 --enable-static --enable-shared

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

hostname = chaoj-nv-desktop.nvidia.com
uname -m = x86_64
uname -r = 3.16.2-3
uname -s = Linux
uname -v = #1 SMP Thu Oct 16 15:22:38 JST 2014

/usr/bin/uname -p = Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
/bin/uname -X     = unknown

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

PATH: /home/adam/projects/coweb/output/host/bin
PATH: /home/adam/projects/coweb/output/host/sbin
PATH: /home/adam/projects/coweb/output/host/usr/bin
PATH: /home/adam/projects/coweb/output/host/usr/sbin
PATH: /home/adam/bin
PATH: /usr/sbin
PATH: /sbin
PATH: /home/adam/bin/p4v/bin
PATH: /home/adam/bin/p4v/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3
PATH: /opt/android-ndk
PATH: /opt/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin
PATH: /opt/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin
PATH: /opt/android-ndk/toolchains/llvm-3.3/prebuilt/linux-x86_64/bin
PATH: /opt/android-ndk/toolchains/llvm-3.4/prebuilt/linux-x86_64/bin
PATH: /opt/android-ndk/toolchains/mipsel-linux-android-4.6/prebuilt/linux-x86_64/bin
PATH: /opt/android-ndk/toolchains/mipsel-linux-android-4.8/prebuilt/linux-x86_64/bin
PATH: /opt/android-ndk/toolchains/renderscript/prebuilt/linux-x86_64/bin
PATH: /opt/android-ndk/toolchains/x86-4.6/prebuilt/linux-x86_64/bin
PATH: /opt/android-ndk/toolchains/x86-4.8/prebuilt/linux-x86_64/bin
PATH: /opt/android-sdk-update-manager/tools
PATH: /opt/android-sdk-update-manager/platform-tools


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

configure:2303: checking for a BSD-compatible install
configure:2371: result: /usr/bin/install -c
configure:2382: checking whether build environment is sane
configure:2437: result: yes
configure:2496: checking for arm-buildroot-linux-uclibcgnueabi-strip
configure:2523: result: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-strip
configure:2588: checking for a thread-safe mkdir -p
configure:2627: result: /bin/mkdir -p
configure:2634: checking for gawk
configure:2650: found /usr/bin/gawk
configure:2661: result: gawk
configure:2672: checking whether make sets $(MAKE)
configure:2694: result: yes
configure:2723: checking whether make supports nested variables
configure:2740: result: yes
configure:2884: checking for arm-buildroot-linux-uclibcgnueabi-gcc
configure:2911: result: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
configure:3180: checking for C compiler version
configure:3189: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc --version >&5
arm-buildroot-linux-uclibcgnueabi-gcc (Buildroot 2014.08-gd75e7d4) 4.8.3
Copyright (C) 2013 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:3200: $? = 0
configure:3189: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
COLLECT_LTO_WRAPPER=/home/adam/projects/coweb/output/host/usr/libexec/gcc/arm-buildroot-linux-uclibcgnueabi/4.8.3/lto-wrapper
Target: arm-buildroot-linux-uclibcgnueabi
Configured with: ./configure --prefix=/home/adam/projects/coweb/output/host/usr --sysconfdir=/home/adam/projects/coweb/output/host/etc --enable-static --target=arm-buildroot-linux-uclibcgnueabi --with-sysroot=/home/adam/projects/coweb/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --with-gmp=/home/adam/projects/coweb/output/host/usr --with-mpfr=/home/adam/projects/coweb/output/host/usr --enable-target-optspace --disable-libsanitizer --enable-tls --disable-libmudflap --enable-threads --with-mpc=/home/adam/projects/coweb/output/host/usr --without-isl --without-cloog --disable-decimal-float --with-arch=armv6zk --with-abi=aapcs-linux --with-cpu=arm1176jzf-s --with-fpu=vfp --with-float=softfp --with-mode=arm --with-pkgversion='Buildroot 2014.08-gd75e7d4' --with-bugurl=http://bugs.buildroot.net/ --enable-languages=c,c++ --with-build-time-tools=/home/adam/projects/coweb/output/host/usr/arm-buildroot-linux-uclibcgnueabi/bin --enable-shared --disable-libgomp --with-float=hard
Thread model: posix
gcc version 4.8.3 (Buildroot 2014.08-gd75e7d4) 
configure:3200: $? = 0
configure:3189: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -V >&5
arm-buildroot-linux-uclibcgnueabi-gcc: error: unrecognized command line option '-V'
arm-buildroot-linux-uclibcgnueabi-gcc: fatal error: no input files
compilation terminated.
configure:3200: $? = 1
configure:3189: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -qversion >&5
arm-buildroot-linux-uclibcgnueabi-gcc: error: unrecognized command line option '-qversion'
arm-buildroot-linux-uclibcgnueabi-gcc: fatal error: no input files
compilation terminated.
configure:3200: $? = 1
configure:3220: checking whether the C compiler works
configure:3242: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c  >&5
configure:3246: $? = 0
configure:3294: result: yes
configure:3297: checking for C compiler default output file name
configure:3299: result: a.out
configure:3305: checking for suffix of executables
configure:3312: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c  >&5
configure:3316: $? = 0
configure:3338: result: 
configure:3360: checking whether we are cross compiling
configure:3398: result: yes
configure:3403: checking for suffix of object files
configure:3425: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:3429: $? = 0
configure:3450: result: o
configure:3454: checking whether we are using the GNU C compiler
configure:3473: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:3473: $? = 0
configure:3482: result: yes
configure:3491: checking whether /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc accepts -g
configure:3511: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:3511: $? = 0
configure:3552: result: yes
configure:3569: checking for /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc option to accept ISO C89
configure:3632: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc  -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:3632: $? = 0
configure:3645: result: none needed
configure:3670: checking whether /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc understands -c and -o together
configure:3692: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c conftest.c -o conftest2.o
configure:3695: $? = 0
configure:3692: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c conftest.c -o conftest2.o
configure:3695: $? = 0
configure:3707: result: yes
configure:3735: checking for style of include used by make
configure:3763: result: GNU
configure:3789: checking dependency style of /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
configure:3900: result: gcc3
configure:4027: checking for C++ compiler version
configure:4036: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++ --version >&5
arm-buildroot-linux-uclibcgnueabi-g++ (Buildroot 2014.08-gd75e7d4) 4.8.3
Copyright (C) 2013 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:4047: $? = 0
configure:4036: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++ -v >&5
Using built-in specs.
COLLECT_GCC=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++
COLLECT_LTO_WRAPPER=/home/adam/projects/coweb/output/host/usr/libexec/gcc/arm-buildroot-linux-uclibcgnueabi/4.8.3/lto-wrapper
Target: arm-buildroot-linux-uclibcgnueabi
Configured with: ./configure --prefix=/home/adam/projects/coweb/output/host/usr --sysconfdir=/home/adam/projects/coweb/output/host/etc --enable-static --target=arm-buildroot-linux-uclibcgnueabi --with-sysroot=/home/adam/projects/coweb/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --with-gmp=/home/adam/projects/coweb/output/host/usr --with-mpfr=/home/adam/projects/coweb/output/host/usr --enable-target-optspace --disable-libsanitizer --enable-tls --disable-libmudflap --enable-threads --with-mpc=/home/adam/projects/coweb/output/host/usr --without-isl --without-cloog --disable-decimal-float --with-arch=armv6zk --with-abi=aapcs-linux --with-cpu=arm1176jzf-s --with-fpu=vfp --with-float=softfp --with-mode=arm --with-pkgversion='Buildroot 2014.08-gd75e7d4' --with-bugurl=http://bugs.buildroot.net/ --enable-languages=c,c++ --with-build-time-tools=/home/adam/projects/coweb/output/host/usr/arm-buildroot-linux-uclibcgnueabi/bin --enable-shared --disable-libgomp --with-float=hard
Thread model: posix
gcc version 4.8.3 (Buildroot 2014.08-gd75e7d4) 
configure:4047: $? = 0
configure:4036: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++ -V >&5
arm-buildroot-linux-uclibcgnueabi-g++: error: unrecognized command line option '-V'
arm-buildroot-linux-uclibcgnueabi-g++: fatal error: no input files
compilation terminated.
configure:4047: $? = 1
configure:4036: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++ -qversion >&5
arm-buildroot-linux-uclibcgnueabi-g++: error: unrecognized command line option '-qversion'
arm-buildroot-linux-uclibcgnueabi-g++: fatal error: no input files
compilation terminated.
configure:4047: $? = 1
configure:4051: checking whether we are using the GNU C++ compiler
configure:4070: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.cpp >&5
configure:4070: $? = 0
configure:4079: result: yes
configure:4088: checking whether /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++ accepts -g
configure:4108: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++ -c -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.cpp >&5
configure:4108: $? = 0
configure:4149: result: yes
configure:4174: checking dependency style of /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++
configure:4285: result: gcc3
configure:4304: checking for gawk
configure:4331: result: gawk
configure:4350: checking for arm-buildroot-linux-uclibcgnueabi-gcc
configure:4377: result: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
configure:4646: checking for C compiler version
configure:4655: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc --version >&5
arm-buildroot-linux-uclibcgnueabi-gcc (Buildroot 2014.08-gd75e7d4) 4.8.3
Copyright (C) 2013 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:4666: $? = 0
configure:4655: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
COLLECT_LTO_WRAPPER=/home/adam/projects/coweb/output/host/usr/libexec/gcc/arm-buildroot-linux-uclibcgnueabi/4.8.3/lto-wrapper
Target: arm-buildroot-linux-uclibcgnueabi
Configured with: ./configure --prefix=/home/adam/projects/coweb/output/host/usr --sysconfdir=/home/adam/projects/coweb/output/host/etc --enable-static --target=arm-buildroot-linux-uclibcgnueabi --with-sysroot=/home/adam/projects/coweb/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --with-gmp=/home/adam/projects/coweb/output/host/usr --with-mpfr=/home/adam/projects/coweb/output/host/usr --enable-target-optspace --disable-libsanitizer --enable-tls --disable-libmudflap --enable-threads --with-mpc=/home/adam/projects/coweb/output/host/usr --without-isl --without-cloog --disable-decimal-float --with-arch=armv6zk --with-abi=aapcs-linux --with-cpu=arm1176jzf-s --with-fpu=vfp --with-float=softfp --with-mode=arm --with-pkgversion='Buildroot 2014.08-gd75e7d4' --with-bugurl=http://bugs.buildroot.net/ --enable-languages=c,c++ --with-build-time-tools=/home/adam/projects/coweb/output/host/usr/arm-buildroot-linux-uclibcgnueabi/bin --enable-shared --disable-libgomp --with-float=hard
Thread model: posix
gcc version 4.8.3 (Buildroot 2014.08-gd75e7d4) 
configure:4666: $? = 0
configure:4655: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -V >&5
arm-buildroot-linux-uclibcgnueabi-gcc: error: unrecognized command line option '-V'
arm-buildroot-linux-uclibcgnueabi-gcc: fatal error: no input files
compilation terminated.
configure:4666: $? = 1
configure:4655: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -qversion >&5
arm-buildroot-linux-uclibcgnueabi-gcc: error: unrecognized command line option '-qversion'
arm-buildroot-linux-uclibcgnueabi-gcc: fatal error: no input files
compilation terminated.
configure:4666: $? = 1
configure:4670: checking whether we are using the GNU C compiler
configure:4698: result: yes
configure:4707: checking whether /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc accepts -g
configure:4768: result: yes
configure:4785: checking for /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc option to accept ISO C89
configure:4861: result: none needed
configure:4886: checking whether /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc understands -c and -o together
configure:4923: result: yes
configure:4942: checking dependency style of /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
configure:5053: result: gcc3
configure:5073: checking how to run the C preprocessor
configure:5143: result: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-cpp
configure:5163: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c
configure:5163: $? = 0
configure:5177: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:5177: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "visage"
| #define PACKAGE_TARNAME "visage"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "visage 0.1"
| #define PACKAGE_BUGREPORT "chaoj at infipwr.com"
| #define PACKAGE_URL ""
| #define PACKAGE "visage"
| #define VERSION "0.1"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5206: checking whether ln -s works
configure:5210: result: yes
configure:5217: checking whether make sets $(MAKE)
configure:5239: result: yes
configure:5251: checking for arm-buildroot-linux-uclibcgnueabi-ranlib
configure:5278: result: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-ranlib
configure:5345: checking for grep that handles long lines and -e
configure:5403: result: /bin/grep
configure:5408: checking for egrep
configure:5470: result: /bin/grep -E
configure:5475: checking for ANSI C header files
configure:5495: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5495: $? = 0
configure:5579: result: yes
configure:5592: checking for sys/types.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5592: checking for sys/stat.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5592: checking for stdlib.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5592: checking for string.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5592: checking for memory.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5592: checking for strings.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5592: checking for inttypes.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5592: checking for stdint.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5592: checking for unistd.h
configure:5592: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5592: $? = 0
configure:5592: result: yes
configure:5623: checking fcgiapp.h usability
configure:5623: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5623: $? = 0
configure:5623: result: yes
configure:5623: checking fcgiapp.h presence
configure:5623: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c
configure:5623: $? = 0
configure:5623: result: yes
configure:5623: checking for fcgiapp.h
configure:5623: result: yes
configure:5626: checking for FCGX_InitRequest in -lfcgi
configure:5651: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c -lfcgi   >&5
/home/adam/projects/coweb/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libfcgi.so: undefined reference to `frexp'
collect2: error: ld returned 1 exit status
configure:5651: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "visage"
| #define PACKAGE_TARNAME "visage"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "visage 0.1"
| #define PACKAGE_BUGREPORT "chaoj at infipwr.com"
| #define PACKAGE_URL ""
| #define PACKAGE "visage"
| #define VERSION "0.1"
| #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
| /* 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 FCGX_InitRequest ();
| int
| main ()
| {
| return FCGX_InitRequest ();
|   ;
|   return 0;
| }
configure:5660: result: no
configure:5689: WARNING: unable to find the FCGX_InitRequest() function
configure:5698: checking for size_t
configure:5698: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5698: $? = 0
configure:5698: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
conftest.c: In function 'main':
conftest.c:57:21: error: expected expression before ')' token
 if (sizeof ((size_t)))
                     ^
configure:5698: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "visage"
| #define PACKAGE_TARNAME "visage"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "visage 0.1"
| #define PACKAGE_BUGREPORT "chaoj at infipwr.com"
| #define PACKAGE_URL ""
| #define PACKAGE "visage"
| #define VERSION "0.1"
| #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
| /* 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
| int
| main ()
| {
| if (sizeof ((size_t)))
| 	    return 0;
|   ;
|   return 0;
| }
configure:5698: result: yes
configure:5711: checking for working alloca.h
configure:5728: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c  -lfcgi -lm >&5
configure:5728: $? = 0
configure:5736: result: yes
configure:5744: checking for alloca
configure:5781: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c  -lfcgi -lm >&5
configure:5781: $? = 0
configure:5789: result: yes
configure:5898: checking for stdlib.h
configure:5898: result: yes
configure:5898: checking for string.h
configure:5898: result: yes
configure:5898: checking syslog.h usability
configure:5898: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:5898: $? = 0
configure:5898: result: yes
configure:5898: checking syslog.h presence
configure:5898: /home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c
configure:5898: $? = 0
configure:5898: result: yes
configure:5898: checking for syslog.h
configure:5898: result: yes
configure:6022: checking that generated files are newer than configure
configure:6028: result: done
configure:6059: creating ./config.status

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

This file was extended by visage config.status 0.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

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

on chaoj-nv-desktop.nvidia.com

config.status:871: creating Makefile
config.status:871: creating src/Makefile
config.status:871: creating web/Makefile
config.status:871: creating test/Makefile
config.status:871: creating config.h
config.status:1100: executing depfiles commands
configure:7374: WARNING: unrecognized options: --disable-gtk-doc, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --enable-ipv6, --enable-static, --enable-shared

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

ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os '
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64'
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-cpp
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os '
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBFCGI_CPPFLAGS_set=
ac_cv_env_LIBFCGI_CPPFLAGS_value=
ac_cv_env_LIBFCGI_LDFLAGS_set=
ac_cv_env_LIBFCGI_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-unknown-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-buildroot-linux-uclibcgnueabi
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-buildroot-linux-uclibcgnueabi
ac_cv_func_alloca_works=yes
ac_cv_func_calloc_0_nonnull=yes
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_memcmp_working=yes
ac_cv_func_mmap_fixed_mapped=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_have_decl_malloc=yes
ac_cv_header_fcgiapp_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
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_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_syslog_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lbl_unaligned_fail=yes
ac_cv_lib_fcgi_FCGX_InitRequest=no
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_CC=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
ac_cv_prog_CPP=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-cpp
ac_cv_prog_RANLIB=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-ranlib
ac_cv_prog_STRIP=/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_type_size_t=yes
ac_cv_working_alloca_h=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes
ax_cv_have_LIBFCGI=no
gl_cv_func_malloc_0_nonnull=yes
lt_cv_sys_lib_search_path_spec=

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

ACLOCAL='${SHELL} /home/adam/projects/coweb/output/build/visage-master/missing aclocal-1.14'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /home/adam/projects/coweb/output/build/visage-master/missing autoconf'
AUTOHEADER='${SHELL} /home/adam/projects/coweb/output/build/visage-master/missing autoheader'
AUTOMAKE='${SHELL} /home/adam/projects/coweb/output/build/visage-master/missing automake-1.14'
AWK='gawk'
CC='/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os '
CPP='/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-cpp'
CPPFLAGS='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64'
CXX='/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-g++'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -mhard-float -Os '
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=''
LIBFCGI_CPPFLAGS=''
LIBFCGI_LDFLAGS=''
LIBOBJS=''
LIBS=' -lfcgi -lm'
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/adam/projects/coweb/output/build/visage-master/missing makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT='o'
PACKAGE='visage'
PACKAGE_BUGREPORT='chaoj at infipwr.com'
PACKAGE_NAME='visage'
PACKAGE_STRING='visage 0.1'
PACKAGE_TARNAME='visage'
PACKAGE_URL=''
PACKAGE_VERSION='0.1'
PATH_SEPARATOR=':'
RANLIB='/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='/home/adam/projects/coweb/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-strip'
VERSION='0.1'
ac_ct_CC=''
ac_ct_CXX=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build_alias='x86_64-unknown-linux-gnu'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='/usr'
host_alias='arm-buildroot-linux-uclibcgnueabi'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/adam/projects/coweb/output/build/visage-master/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&^&&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias='arm-buildroot-linux-uclibcgnueabi'

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

/* confdefs.h */
#define PACKAGE_NAME "visage"
#define PACKAGE_TARNAME "visage"
#define PACKAGE_VERSION "0.1"
#define PACKAGE_STRING "visage 0.1"
#define PACKAGE_BUGREPORT "chaoj at infipwr.com"
#define PACKAGE_URL ""
#define PACKAGE "visage"
#define VERSION "0.1"
#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_ALLOCA_H 1
#define HAVE_ALLOCA 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_SYSLOG_H 1

configure: exit 0

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling
  2014-12-25  6:27   ` Adam Jiang
@ 2014-12-25  6:49     ` Baruch Siach
  2014-12-25 13:03       ` Adam Jiang
  2014-12-25 13:25       ` Adam Jiang
  0 siblings, 2 replies; 7+ messages in thread
From: Baruch Siach @ 2014-12-25  6:49 UTC (permalink / raw)
  To: buildroot

Hi adam,

On Thu, Dec 25, 2014 at 03:27:40PM +0900, Adam Jiang wrote:
> Here is what I got from grep in config.log.
> 
> $ grep -i FCGX_InitRequest output/build/visage-master/config.log
> configure:5626: checking for FCGX_InitRequest in -lfcgi
> | char FCGX_InitRequest ();
> | return FCGX_InitRequest ();
> configure:5689: WARNING: unable to find the FCGX_InitRequest() function
> ac_cv_lib_fcgi_FCGX_InitRequest=no
> 
> I have also attached 'config.log' as well.

The interesting part in your config.log is

	libfcgi.so: undefined reference to `frexp'

This means that libfcgi.so depends on the math library (libm), but you didn't 
add it to the compile command line (-lm). Please try adding -lm to the 
AC_CHECK_LIB macro OTHER-LIBRARIES parameter as follows:

	AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [LIBS="$LIBS -lfcgi],
		[AC_MSG_WARN("unable to find the FCGX_InitRequest() function")],
		[-lm])

baruch

> On 12/25/2014 01:47 PM, Baruch Siach wrote:
> > On Thu, Dec 25, 2014 at 01:34:59PM +0900, Adam Jiang wrote:
> >> I am trying to add a new package to buildroot. the package is built upon
> >> autotools. thus, it is supposed to be very easy to make it
> >> cross-compilable. ever, i got suck at AC_CHECK_LIB macro. it doesn't
> >> work well at cross-compiling while it does work on normal compiling.
> >>
> >> AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [AC_MSG_WARN("unable to find
> >> the FCGX_InitRequest() function")])
> >>
> >> always failed even though I do have libfcgi in my configuration. The
> >> error message looks like
> >>
> >> checking for FCGX_InitRequest in -lfcgi... no
> >> configure: WARNING: unable to find the FCGX_InitRequest() function
> >>
> >> I don't think AC_CHECK_LIB will not work on cross-compiling because it
> >> seems there are lots of other target packages in buildroot using the
> >> macro. Most probably, I am doing something wrong.
> >>
> >> Does AC_CHECK_LIB work in buildroot? If the macro needs some changes,
> >> how could I do it?
> > What do you have in config.log for the FCGX_InitRequest check?

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling
  2014-12-25  6:49     ` Baruch Siach
@ 2014-12-25 13:03       ` Adam Jiang
  2014-12-26 14:31         ` Thomas Petazzoni
  2014-12-25 13:25       ` Adam Jiang
  1 sibling, 1 reply; 7+ messages in thread
From: Adam Jiang @ 2014-12-25 13:03 UTC (permalink / raw)
  To: buildroot

Hi, Baruch

On 12/25/2014 03:49 PM, Baruch Siach wrote:
> Hi adam,
>
> On Thu, Dec 25, 2014 at 03:27:40PM +0900, Adam Jiang wrote:
>> Here is what I got from grep in config.log.
>>
>> $ grep -i FCGX_InitRequest output/build/visage-master/config.log
>> configure:5626: checking for FCGX_InitRequest in -lfcgi
>> | char FCGX_InitRequest ();
>> | return FCGX_InitRequest ();
>> configure:5689: WARNING: unable to find the FCGX_InitRequest() function
>> ac_cv_lib_fcgi_FCGX_InitRequest=no
>>
>> I have also attached 'config.log' as well.
> The interesting part in your config.log is
>
> 	libfcgi.so: undefined reference to `frexp'
>
> This means that libfcgi.so depends on the math library (libm), but you didn't
> add it to the compile command line (-lm). Please try adding -lm to the
> AC_CHECK_LIB macro OTHER-LIBRARIES parameter as follows:
>
> 	AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [LIBS="$LIBS -lfcgi],
> 		[AC_MSG_WARN("unable to find the FCGX_InitRequest() function")],
> 		[-lm])

Em...I can understand the issue now. However, would it be possible for 
libfcgi to resolve its dependency somehow?

/Adam

> baruch
>
>> On 12/25/2014 01:47 PM, Baruch Siach wrote:
>>> On Thu, Dec 25, 2014 at 01:34:59PM +0900, Adam Jiang wrote:
>>>> I am trying to add a new package to buildroot. the package is built upon
>>>> autotools. thus, it is supposed to be very easy to make it
>>>> cross-compilable. ever, i got suck at AC_CHECK_LIB macro. it doesn't
>>>> work well at cross-compiling while it does work on normal compiling.
>>>>
>>>> AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [AC_MSG_WARN("unable to find
>>>> the FCGX_InitRequest() function")])
>>>>
>>>> always failed even though I do have libfcgi in my configuration. The
>>>> error message looks like
>>>>
>>>> checking for FCGX_InitRequest in -lfcgi... no
>>>> configure: WARNING: unable to find the FCGX_InitRequest() function
>>>>
>>>> I don't think AC_CHECK_LIB will not work on cross-compiling because it
>>>> seems there are lots of other target packages in buildroot using the
>>>> macro. Most probably, I am doing something wrong.
>>>>
>>>> Does AC_CHECK_LIB work in buildroot? If the macro needs some changes,
>>>> how could I do it?
>>> What do you have in config.log for the FCGX_InitRequest check?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling
  2014-12-25  6:49     ` Baruch Siach
  2014-12-25 13:03       ` Adam Jiang
@ 2014-12-25 13:25       ` Adam Jiang
  1 sibling, 0 replies; 7+ messages in thread
From: Adam Jiang @ 2014-12-25 13:25 UTC (permalink / raw)
  To: buildroot

On 12/25/2014 03:49 PM, Baruch Siach wrote:
> Hi adam,
>
> On Thu, Dec 25, 2014 at 03:27:40PM +0900, Adam Jiang wrote:
>> Here is what I got from grep in config.log.
>>
>> $ grep -i FCGX_InitRequest output/build/visage-master/config.log
>> configure:5626: checking for FCGX_InitRequest in -lfcgi
>> | char FCGX_InitRequest ();
>> | return FCGX_InitRequest ();
>> configure:5689: WARNING: unable to find the FCGX_InitRequest() function
>> ac_cv_lib_fcgi_FCGX_InitRequest=no
>>
>> I have also attached 'config.log' as well.
> The interesting part in your config.log is
>
> 	libfcgi.so: undefined reference to `frexp'
>
> This means that libfcgi.so depends on the math library (libm), but you didn't
> add it to the compile command line (-lm). Please try adding -lm to the
> AC_CHECK_LIB macro OTHER-LIBRARIES parameter as follows:
>
> 	AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [LIBS="$LIBS -lfcgi],
> 		[AC_MSG_WARN("unable to find the FCGX_InitRequest() function")],
> 		[-lm])

Probably, the dependency on '-lm' issue is caused by difference between 
glibc and uclibc. Does uclibc split math library into another library 
and don't implicitly include it?

/adam

> baruch
>
>> On 12/25/2014 01:47 PM, Baruch Siach wrote:
>>> On Thu, Dec 25, 2014 at 01:34:59PM +0900, Adam Jiang wrote:
>>>> I am trying to add a new package to buildroot. the package is built upon
>>>> autotools. thus, it is supposed to be very easy to make it
>>>> cross-compilable. ever, i got suck at AC_CHECK_LIB macro. it doesn't
>>>> work well at cross-compiling while it does work on normal compiling.
>>>>
>>>> AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [AC_MSG_WARN("unable to find
>>>> the FCGX_InitRequest() function")])
>>>>
>>>> always failed even though I do have libfcgi in my configuration. The
>>>> error message looks like
>>>>
>>>> checking for FCGX_InitRequest in -lfcgi... no
>>>> configure: WARNING: unable to find the FCGX_InitRequest() function
>>>>
>>>> I don't think AC_CHECK_LIB will not work on cross-compiling because it
>>>> seems there are lots of other target packages in buildroot using the
>>>> macro. Most probably, I am doing something wrong.
>>>>
>>>> Does AC_CHECK_LIB work in buildroot? If the macro needs some changes,
>>>> how could I do it?
>>> What do you have in config.log for the FCGX_InitRequest check?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling
  2014-12-25 13:03       ` Adam Jiang
@ 2014-12-26 14:31         ` Thomas Petazzoni
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2014-12-26 14:31 UTC (permalink / raw)
  To: buildroot

Dear Adam Jiang,

On Thu, 25 Dec 2014 22:03:02 +0900, Adam Jiang wrote:

> > 	AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [LIBS="$LIBS -lfcgi],
> > 		[AC_MSG_WARN("unable to find the FCGX_InitRequest() function")],
> > 		[-lm])
> 
> Em...I can understand the issue now. However, would it be possible for 
> libfcgi to resolve its dependency somehow?

For dynamic linking, this should happen automatically, provided libfcgi
is properly linked against libm. But indeed, after a quick look, it
turns out that libfcgi uses frexp() but isn't linked against libm:

$ readelf -a libfcgi.so.0.0.0
[...]
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libnsl.so.0]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.0]
 0x0000000e (SONAME)                     Library soname: [libfcgi.so.0]
[...]
   176: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND frexp

To me, this looks like a bug in libfcgi build system.

However, even if libfcgi is linked against libm, this will not solve
the case of static linking. In this case, the only proper solution
would be to extend libfcgi to install a .pc (pkg-config) file, and have
your package use PKG_CHECK_MODULES() instead of AC_CHECK_LIB().

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-26 14:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-25  4:34 [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling Adam Jiang
2014-12-25  4:47 ` Baruch Siach
2014-12-25  6:27   ` Adam Jiang
2014-12-25  6:49     ` Baruch Siach
2014-12-25 13:03       ` Adam Jiang
2014-12-26 14:31         ` Thomas Petazzoni
2014-12-25 13:25       ` Adam Jiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.