Skip to content

Instantly share code, notes, and snippets.

@ariejan
Last active December 16, 2015 08:08
Show Gist options
  • Save ariejan/5403214 to your computer and use it in GitHub Desktop.
Save ariejan/5403214 to your computer and use it in GitHub Desktop.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ticker configure 0.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = picard.ariejan.net
uname -m = x86_64
uname -r = 3.5.0-21-generic
uname -s = Linux
uname -v = #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012
/usr/bin/uname -p = unknown
/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: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2113: checking for a BSD-compatible install
configure:2181: result: /usr/bin/install -c
configure:2192: checking whether build environment is sane
configure:2242: result: yes
configure:2383: checking for a thread-safe mkdir -p
configure:2422: result: /bin/mkdir -p
configure:2435: checking for gawk
configure:2465: result: no
configure:2435: checking for mawk
configure:2451: found /usr/bin/mawk
configure:2462: result: mawk
configure:2473: checking whether make sets $(MAKE)
configure:2495: result: yes
configure:2621: checking for gcc
configure:2637: found /usr/bin/gcc
configure:2648: result: gcc
configure:2877: checking for C compiler version
configure:2886: gcc --version >&5
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 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:2897: $? = 0
configure:2886: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.2-2ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)
configure:2897: $? = 0
configure:2886: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2897: $? = 4
configure:2886: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2897: $? = 4
configure:2917: checking whether the C compiler works
configure:2939: gcc conftest.c >&5
configure:2943: $? = 0
configure:2991: result: yes
configure:2994: checking for C compiler default output file name
configure:2996: result: a.out
configure:3002: checking for suffix of executables
configure:3009: gcc -o conftest conftest.c >&5
configure:3013: $? = 0
configure:3035: result:
configure:3057: checking whether we are cross compiling
configure:3065: gcc -o conftest conftest.c >&5
configure:3069: $? = 0
configure:3076: ./conftest
configure:3080: $? = 0
configure:3095: result: no
configure:3100: checking for suffix of object files
configure:3122: gcc -c conftest.c >&5
configure:3126: $? = 0
configure:3147: result: o
configure:3151: checking whether we are using the GNU C compiler
configure:3170: gcc -c conftest.c >&5
configure:3170: $? = 0
configure:3179: result: yes
configure:3188: checking whether gcc accepts -g
configure:3208: gcc -c -g conftest.c >&5
configure:3208: $? = 0
configure:3249: result: yes
configure:3266: checking for gcc option to accept ISO C89
configure:3329: gcc -c -g -O2 conftest.c >&5
configure:3329: $? = 0
configure:3342: result: none needed
configure:3373: checking for style of include used by make
configure:3401: result: GNU
configure:3427: checking dependency style of gcc
configure:3538: result: gcc3
configure:3557: checking for library containing PQconnectdb
configure:3588: gcc -o conftest -g -O2 conftest.c >&5
/tmp/ccKkWVl4.o: In function `main':
/home/ariejan/vortex-ticker/conftest.c:20: undefined reference to `PQconnectdb'
collect2: error: ld returned 1 exit status
configure:3588: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ticker"
| #define PACKAGE_TARNAME "ticker"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "ticker 0.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| /* 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 PQconnectdb ();
| int
| main ()
| {
| return PQconnectdb ();
| ;
| return 0;
| }
configure:3588: gcc -o conftest -g -O2 conftest.c -lpq >&5
configure:3588: $? = 0
configure:3605: result: -lpq
configure:3624: checking how to run the C preprocessor
configure:3655: gcc -E conftest.c
configure:3655: $? = 0
configure:3669: gcc -E conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3669: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ticker"
| #define PACKAGE_TARNAME "ticker"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "ticker 0.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3694: result: gcc -E
configure:3714: gcc -E conftest.c
configure:3714: $? = 0
configure:3728: gcc -E conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3728: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ticker"
| #define PACKAGE_TARNAME "ticker"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "ticker 0.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3757: checking for grep that handles long lines and -e
configure:3815: result: /bin/grep
configure:3820: checking for egrep
configure:3882: result: /bin/grep -E
configure:3887: checking for ANSI C header files
configure:3907: gcc -c -g -O2 conftest.c >&5
configure:3907: $? = 0
configure:3980: gcc -o conftest -g -O2 conftest.c -lpq >&5
configure:3980: $? = 0
configure:3980: ./conftest
configure:3980: $? = 0
configure:3991: result: yes
configure:4004: checking for sys/types.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4004: checking for sys/stat.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4004: checking for stdlib.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4004: checking for string.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4004: checking for memory.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4004: checking for strings.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4004: checking for inttypes.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4004: checking for stdint.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4004: checking for unistd.h
configure:4004: gcc -c -g -O2 conftest.c >&5
configure:4004: $? = 0
configure:4004: result: yes
configure:4018: checking for stdlib.h
configure:4018: result: yes
configure:4032: checking libpq-fe.h usability
configure:4032: gcc -c -g -O2 conftest.c >&5
conftest.c:53:22: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
configure:4032: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ticker"
| #define PACKAGE_TARNAME "ticker"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "ticker 0.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #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_STDLIB_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 <libpq-fe.h>
configure:4032: result: no
configure:4032: checking libpq-fe.h presence
configure:4032: gcc -E conftest.c
conftest.c:20:22: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
configure:4032: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ticker"
| #define PACKAGE_TARNAME "ticker"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "ticker 0.1"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #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_STDLIB_H 1
| /* end confdefs.h. */
| #include <libpq-fe.h>
configure:4032: result: no
configure:4032: checking for libpq-fe.h
configure:4032: result: no
## ---------------- ##
## Cache variables. ##
## ---------------- ##
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_header_inttypes_h=yes
ac_cv_header_libpq_fe_h=no
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_unistd_h=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=mawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_search_PQconnectdb=-lpq
am_cv_CC_dependencies_compiler_type=gcc3
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/ariejan/vortex-ticker/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AUTOCONF='${SHELL} /home/ariejan/vortex-ticker/missing --run autoconf'
AUTOHEADER='${SHELL} /home/ariejan/vortex-ticker/missing --run autoheader'
AUTOMAKE='${SHELL} /home/ariejan/vortex-ticker/missing --run automake-1.11'
AWK='mawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
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='-lpq '
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/ariejan/vortex-ticker/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT='o'
PACKAGE='ticker'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='ticker'
PACKAGE_STRING='ticker 0.1'
PACKAGE_TARNAME='ticker'
PACKAGE_URL=''
PACKAGE_VERSION='0.1'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.1'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_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=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/ariejan/vortex-ticker/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='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "ticker"
#define PACKAGE_TARNAME "ticker"
#define PACKAGE_VERSION "0.1"
#define PACKAGE_STRING "ticker 0.1"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""
#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_STDLIB_H 1
configure: exit 1
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([ticker], [0.1], [[email protected]])
AM_INIT_AUTOMAKE([1.11 foreign no-define])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile src/Makefile])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
have_pq=no
AC_SEARCH_LIBS([PQconnectdb], [pq], [have_pq=yes], [
AC_MSG_ERROR(["Error: Required library pq not found. Install it and try again"])
])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
if test "x${have_pq}" = xyes; then
AC_CHECK_HEADERS([libpq-fe.h], [], [have_pq=no])
fi
if test "x${have_pq}" = xno; then
echo "----------------------------------------------"
echo " The pq library and header file is "
echo " required to build vortex-ticker. Stopping... "
echo " Check 'config.log' for more information. "
echo "----------------------------------------------"
(exit 1); exit 1;
fi
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
# Output
AC_OUTPUT
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src
#include "../config.h"
#include <stdio.h>
#include <stdlib.h>
#include <libpq-fe.h>
static void exit_nicely(PGconn *conn)
{
PQfinish(conn);
exit(1);
}
static void show_count_result(PGresult *res)
{
int i;
for (i = 0; i < PQntuples(res); i++)
{
char *countResult;
int count;
countResult = PQgetvalue(res, i, PQfnumber(res, "count"));
count = atoi(countResult);
printf("Found %d jobs in database.\n", count);
}
}
int main(int argc, char **argv)
{
const char *conninfo;
PGconn *conn;
PGresult *res;
conninfo = "host=localhost dbname=tradecraft_development user=ariejan";
conn = PQconnectdb(conninfo);
if (PQstatus(conn) != CONNECTION_OK)
{
fprintf(stderr, "Connection to database failed: %s",
PQerrorMessage(conn));
exit_nicely(conn);
}
res = PQexec(conn, "BEGIN");
if (PQresultStatus(res) != PGRES_COMMAND_OK)
{
fprintf(stderr, "BEGIN command failed: %s",
PQerrorMessage(conn));
PQclear(res);
exit_nicely(conn);
}
PQclear(res);
res = PQexec(conn, "SELECT COUNT(1) AS count FROM jobs");
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
fprintf(stderr, "BEGIN command failed: %s",
PQerrorMessage(conn));
PQclear(res);
exit_nicely(conn);
}
show_count_result(res);
PQclear(res);
res = PQexec(conn, "COMMIT");
if (PQresultStatus(res) != PGRES_COMMAND_OK)
{
fprintf(stderr, "COMMIT command failed: %s",
PQerrorMessage(conn));
PQclear(res);
exit_nicely(conn);
}
PQclear(res);
PQfinish(conn);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment