Motion - Bug Report 2005x 02x 07x 100303
You are here: Foswiki>Motion Web>BugReports>BugReport2005x02x07x100303 (25 Feb 2005, AngelCarpintero)Edit Attach

BUG: still get configure: error: cannot compute sizeof (short int),77

i get this error during configure "configure: error: cannot compute sizeof (short int),77"

it was reported in snap8 but the solution put ther (installing libidn) didn't help because i compiled libidn myself and still get this error. i didn't have this problem with any other app and i compile many many of them daily

Test case

Environment

Motion version: 3.1.18
ffmpeg version: 0.4.9pre1
Shared libraries: curl, xmlrpc, ffmpeg, mysql, postgresql
Server OS: yoper, kernel 2.6.8

-- SebaT - 07 Feb 2005

Follow up

Could you be so kind and copy paste the exact output from configure into this topic. Press the edit button and paste the text between the two <VERBATIM> and </VERBATIM> tags below.

We need this to be able to guess what your problem is and how to fix it. Obviously we developers do not see this to we cannot reproduce it.

EDIT: I have the same problem on Slackware 9.1. And as the original poster doesnt seem to send his config.log I m sending mine smile Martin Susil

EDIT2: I have just tried ./configure --without-mysql --without-pgsql and it works... Configure in version 3.1.17 worked fine on the same system though.

EDIT3: Sorry for the delay - it was my first conntact with wiki page so i expected an email afters somebody responds to my bugreport- indeed in my case it ./configure --without-mysql helped so it had to be mysql isntalation problem


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

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure 

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

hostname = server
uname -m = i686
uname -r = 2.4.22
uname -s = Linux
uname -v = #4 Tue Sep 2 17:39:59 PDT 2003

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

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

PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /usr/share/texmf/bin


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

configure:1365: checking for gcc
configure:1381: found /usr/bin/gcc
configure:1391: result: gcc
configure:1635: checking for C compiler version
configure:1638: gcc --version </dev/null >&5
gcc (GCC) 3.2.3
Copyright (C) 2002 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:1641: $? = 0
configure:1643: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.2.3
configure:1646: $? = 0
configure:1648: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1651: $? = 1
configure:1674: checking for C compiler default output file name
configure:1677: gcc    conftest.c  >&5
configure:1680: $? = 0
configure:1726: result: a.out
configure:1731: checking whether the C compiler works
configure:1737: ./a.out
configure:1740: $? = 0
configure:1757: result: yes
configure:1764: checking whether we are cross compiling
configure:1766: result: no
configure:1769: checking for suffix of executables
configure:1771: gcc -o conftest    conftest.c  >&5
configure:1774: $? = 0
configure:1799: result: 
configure:1805: checking for suffix of object files
configure:1826: gcc -c   conftest.c >&5
configure:1829: $? = 0
configure:1851: result: o
configure:1855: checking whether we are using the GNU C compiler
configure:1879: gcc -c   conftest.c >&5
configure:1885: $? = 0
configure:1889: test -z 
          || test ! -s conftest.err
configure:1892: $? = 0
configure:1895: test -s conftest.o
configure:1898: $? = 0
configure:1911: result: yes
configure:1917: checking whether gcc accepts -g
configure:1938: gcc -c -g  conftest.c >&5
configure:1944: $? = 0
configure:1948: test -z 
          || test ! -s conftest.err
configure:1951: $? = 0
configure:1954: test -s conftest.o
configure:1957: $? = 0
configure:1968: result: yes
configure:1985: checking for gcc option to accept ANSI C
configure:2055: gcc  -c -g -O2  conftest.c >&5
configure:2061: $? = 0
configure:2065: test -z 
          || test ! -s conftest.err
configure:2068: $? = 0
configure:2071: test -s conftest.o
configure:2074: $? = 0
configure:2092: result: none needed
configure:2110: gcc -c -g -O2  conftest.c >&5
conftest.c:2: syntax error before "me"
configure:2116: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2266: checking for pthread_create in -lpthread
configure:2296: gcc -o conftest -g -O2   conftest.c -lpthread   -lm >&5
configure:2302: $? = 0
configure:2306: test -z 
          || test ! -s conftest.err
configure:2309: $? = 0
configure:2312: test -s conftest
configure:2315: $? = 0
configure:2328: result: yes
configure:2345: checking for jpeg_set_defaults in -ljpeg
configure:2375: gcc -o conftest -g -O2   conftest.c -ljpeg   -lm -lpthread >&5
configure:2381: $? = 0
configure:2385: test -z 
          || test ! -s conftest.err
configure:2388: $? = 0
configure:2391: test -s conftest
configure:2394: $? = 0
configure:2407: result: yes
configure:2440: checking for ffmpeg autodetecting
configure:2448: result: found
configure:2573: checking for xmlrpc-c
configure:2591: result: no
configure:2608: checking for MySQL
configure:2692: result: yes
configure:2701: checking for PostgreSQL
configure:2729: result: yes
configure:2735: checking for PQcmdTuples in -lpq
configure:2765: gcc -o conftest -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql  -Wl,-rpath,/usr/local/lib -L/usr/local/pgsql/lib conftest.c -lpq   -lm -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz >&5
configure:2771: $? = 0
configure:2775: test -z 
          || test ! -s conftest.err
configure:2778: $? = 0
configure:2781: test -s conftest
configure:2784: $? = 0
configure:2797: result: yes
configure:2807: checking for PQoidValue in -lpq
configure:2837: gcc -o conftest -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql  -Wl,-rpath,/usr/local/lib -L/usr/local/pgsql/lib conftest.c -lpq   -lm -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz >&5
configure:2843: $? = 0
configure:2847: test -z 
          || test ! -s conftest.err
configure:2850: $? = 0
configure:2853: test -s conftest
configure:2856: $? = 0
configure:2869: result: yes
configure:2879: checking for PQclientEncoding in -lpq
configure:2909: gcc -o conftest -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql  -Wl,-rpath,/usr/local/lib -L/usr/local/pgsql/lib conftest.c -lpq   -lm -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz >&5
configure:2915: $? = 0
configure:2919: test -z 
          || test ! -s conftest.err
configure:2922: $? = 0
configure:2925: test -s conftest
configure:2928: $? = 0
configure:2941: result: yes
configure:2951: checking for pg_encoding_to_char in -lpq
configure:2981: gcc -o conftest -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql  -Wl,-rpath,/usr/local/lib -L/usr/local/pgsql/lib conftest.c -lpq   -lm -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz >&5
configure:2987: $? = 0
configure:2991: test -z 
          || test ! -s conftest.err
configure:2994: $? = 0
configure:2997: test -s conftest
configure:3000: $? = 0
configure:3013: result: yes
configure:3043: checking how to run the C preprocessor
configure:3078: gcc -E  conftest.c
configure:3084: $? = 0
configure:3116: gcc -E  conftest.c
conftest.c:14:28: ac_nonexistent.h: No such file or directory
configure:3122: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_PQCMDTUPLES 1
| #define HAVE_PQOIDVALUE 1
| #define HAVE_PQCLIENTENCODING 1
| #define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
| #define HAVE_PGSQL 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3161: result: gcc -E
configure:3185: gcc -E  conftest.c
configure:3191: $? = 0
configure:3223: gcc -E  conftest.c
conftest.c:14:28: ac_nonexistent.h: No such file or directory
configure:3229: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_PQCMDTUPLES 1
| #define HAVE_PQOIDVALUE 1
| #define HAVE_PQCLIENTENCODING 1
| #define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
| #define HAVE_PGSQL 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3273: checking for egrep
configure:3283: result: grep -E
configure:3288: checking for ANSI C header files
configure:3313: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3319: $? = 0
configure:3323: test -z 
          || test ! -s conftest.err
configure:3326: $? = 0
configure:3329: test -s conftest.o
configure:3332: $? = 0
configure:3418: gcc -o conftest -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  -Wl,-rpath,/usr/local/lib conftest.c  -lm -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz -L/usr/local/pgsql/lib -lpq >&5
configure:3421: $? = 0
configure:3423: ./conftest
./conftest: error while loading shared libraries: libpq.so.3: cannot open shared object file: No such file or directory
configure:3426: $? = 127
configure: program exited with status 127
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_PQCMDTUPLES 1
| #define HAVE_PQOIDVALUE 1
| #define HAVE_PQCLIENTENCODING 1
| #define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
| #define HAVE_PGSQL 1
| /* end confdefs.h.  */
| #include <ctype.h>
| #if ((' ' & 0x0FF) == 0x020)
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
| #else
| # define ISLOWER(c)          (('a' <= (c) && (c) <= 'i')            || ('j' <= (c) && (c) <= 'r')            || ('s' <= (c) && (c) <= 'z'))
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
| #endif
| 
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
| int
| main ()
| {
|   int i;
|   for (i = 0; i < 256; i++)
|     if (XOR (islower (i), ISLOWER (i))
|    || toupper (i) != TOUPPER (i))
|       exit(2);
|   exit (0);
| }
configure:3441: result: no
configure:3465: checking for sys/types.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3465: checking for sys/stat.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3465: checking for stdlib.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3465: checking for string.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3465: checking for memory.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3465: checking for strings.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3465: checking for inttypes.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3465: checking for stdint.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3465: checking for unistd.h
configure:3481: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3487: $? = 0
configure:3491: test -z 
          || test ! -s conftest.err
configure:3494: $? = 0
configure:3497: test -s conftest.o
configure:3500: $? = 0
configure:3511: result: yes
configure:3545: checking stdio.h usability
configure:3557: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3563: $? = 0
configure:3567: test -z 
          || test ! -s conftest.err
configure:3570: $? = 0
configure:3573: test -s conftest.o
configure:3576: $? = 0
configure:3586: result: yes
configure:3590: checking stdio.h presence
configure:3600: gcc -E  conftest.c
configure:3606: $? = 0
configure:3626: result: yes
configure:3661: checking for stdio.h
configure:3668: result: yes
configure:3536: checking for stdlib.h
configure:3541: result: yes
configure:3536: checking for unistd.h
configure:3541: result: yes
configure:3545: checking fcntl.h usability
configure:3557: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3563: $? = 0
configure:3567: test -z 
          || test ! -s conftest.err
configure:3570: $? = 0
configure:3573: test -s conftest.o
configure:3576: $? = 0
configure:3586: result: yes
configure:3590: checking fcntl.h presence
configure:3600: gcc -E  conftest.c
configure:3606: $? = 0
configure:3626: result: yes
configure:3661: checking for fcntl.h
configure:3668: result: yes
configure:3545: checking time.h usability
configure:3557: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3563: $? = 0
configure:3567: test -z 
          || test ! -s conftest.err
configure:3570: $? = 0
configure:3573: test -s conftest.o
configure:3576: $? = 0
configure:3586: result: yes
configure:3590: checking time.h presence
configure:3600: gcc -E  conftest.c
configure:3606: $? = 0
configure:3626: result: yes
configure:3661: checking for time.h
configure:3668: result: yes
configure:3545: checking signal.h usability
configure:3557: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3563: $? = 0
configure:3567: test -z 
          || test ! -s conftest.err
configure:3570: $? = 0
configure:3573: test -s conftest.o
configure:3576: $? = 0
configure:3586: result: yes
configure:3590: checking signal.h presence
configure:3600: gcc -E  conftest.c
configure:3606: $? = 0
configure:3626: result: yes
configure:3661: checking for signal.h
configure:3668: result: yes
configure:3545: checking sys/ioctl.h usability
configure:3557: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3563: $? = 0
configure:3567: test -z 
          || test ! -s conftest.err
configure:3570: $? = 0
configure:3573: test -s conftest.o
configure:3576: $? = 0
configure:3586: result: yes
configure:3590: checking sys/ioctl.h presence
configure:3600: gcc -E  conftest.c
configure:3606: $? = 0
configure:3626: result: yes
configure:3661: checking for sys/ioctl.h
configure:3668: result: yes
configure:3545: checking sys/mman.h usability
configure:3557: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3563: $? = 0
configure:3567: test -z 
          || test ! -s conftest.err
configure:3570: $? = 0
configure:3573: test -s conftest.o
configure:3576: $? = 0
configure:3586: result: yes
configure:3590: checking sys/mman.h presence
configure:3600: gcc -E  conftest.c
configure:3606: $? = 0
configure:3626: result: yes
configure:3661: checking for sys/mman.h
configure:3668: result: yes
configure:3545: checking linux/videodev.h usability
configure:3557: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  conftest.c >&5
configure:3563: $? = 0
configure:3567: test -z 
          || test ! -s conftest.err
configure:3570: $? = 0
configure:3573: test -s conftest.o
configure:3576: $? = 0
configure:3586: result: yes
configure:3590: checking linux/videodev.h presence
configure:3600: gcc -E  conftest.c
configure:3606: $? = 0
configure:3626: result: yes
configure:3661: checking for linux/videodev.h
configure:3668: result: yes
configure:3682: checking for memmem
configure:3739: gcc -o conftest -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include  -Wl,-rpath,/usr/local/lib conftest.c  -lm -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz -L/usr/local/pgsql/lib -lpq >&5
configure:3745: $? = 0
configure:3749: test -z 
          || test ! -s conftest.err
configure:3752: $? = 0
configure:3755: test -s conftest
configure:3758: $? = 0
configure:3770: result: yes
configure:3777: checking for short int
configure:3801: gcc -c -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include -DHAVE_MEMMEM  conftest.c >&5
configure:3807: $? = 0
configure:3811: test -z 
          || test ! -s conftest.err
configure:3814: $? = 0
configure:3817: test -s conftest.o
configure:3820: $? = 0
configure:3831: result: yes
configure:3834: checking size of short int
configure:4153: gcc -o conftest -I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include -DHAVE_MEMMEM  -Wl,-rpath,/usr/local/lib conftest.c  -lm -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz -L/usr/local/pgsql/lib -lpq >&5
configure:4156: $? = 0
configure:4158: ./conftest
./conftest: error while loading shared libraries: libpq.so.3: cannot open shared object file: No such file or directory
configure:4161: $? = 127
configure: program exited with status 127
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_PQCMDTUPLES 1
| #define HAVE_PQOIDVALUE 1
| #define HAVE_PQCLIENTENCODING 1
| #define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
| #define HAVE_PGSQL 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_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_TIME_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_LINUX_VIDEODEV_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (short int)); }
| unsigned long ulongval () { return (long) (sizeof (short int)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
| 
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     exit (1);
|   if (((long) (sizeof (short int))) < 0)
|     {
|       long i = longval ();
|       if (i != ((long) (sizeof (short int))))
|    exit (1);
|       fprintf (f, "%ld\n", i);
|     }
|   else
|     {
|       unsigned long i = ulongval ();
|       if (i != ((long) (sizeof (short int))))
|    exit (1);
|       fprintf (f, "%lu\n", i);
|     }
|   exit (ferror (f) || fclose (f) != 0);
| 
|   ;
|   return 0;
| }
configure:4171: error: cannot compute sizeof (short int), 77
See `config.log' for more details.

## ---------------- ##
## 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_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_exeext=
ac_cv_func_memmem=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_linux_videodev_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_signal_h=yes
ac_cv_header_stdc=no
ac_cv_header_stdint_h=yes
ac_cv_header_stdio_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_ioctl_h=yes
ac_cv_header_sys_mman_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_time_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_jpeg_jpeg_set_defaults=yes
ac_cv_lib_pq_PQclientEncoding=yes
ac_cv_lib_pq_PQcmdTuples=yes
ac_cv_lib_pq_PQoidValue=yes
ac_cv_lib_pq_pg_encoding_to_char=yes
ac_cv_lib_pthread_pthread_create=yes
ac_cv_objext=o
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_type_short_int=yes

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

BIN_PATH=''
CC='gcc'
CFLAGS='-I/usr/local/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/local/pgsql/include -DHAVE_MEMMEM'
CONTROL_LIBS=''
CONTROL_OBJ=''
CPP='gcc -E'
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
FFMPEG_OBJ='ffmpeg.o'
LDFLAGS='-Wl,-rpath,/usr/local/lib'
LIBOBJS=''
LIBS=' -lm -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz -L/usr/local/pgsql/lib -lpq'
LTLIBOBJS=''
MOTION_CONTROL=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
VERSION='3.1.18'
VIDEO='video.o'
XML_HTTP_OBJ=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define HAVE_FCNTL_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_LINUX_VIDEODEV_H 1
#define HAVE_MEMORY_H 1
#define HAVE_PGSQL 1
#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
#define HAVE_PQCLIENTENCODING 1
#define HAVE_PQCMDTUPLES 1
#define HAVE_PQOIDVALUE 1
#define HAVE_SIGNAL_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_MMAN_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_TIME_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 1 

Fix record

I don't think this is really a Motion problem. From the above log, it appears that the problem is caused by the previous installation of the postgre-sql package. Apparently the package has been installed in /usr/local/pgsql, and the configuration test program is trying (unsuccessfully) to load the runtime library libpq.so.3 from /usr/local/pgsql/lib. Perhaps you could try checking the postgre installation, assure that ldconfig has been run, and check that libpq.so and libpq.so.3 are installed in /usr/local/pgsql/lib. If postgre-sql is installed somewhere else, you might also try the configure parameter --with-pgsql=DIR.

HTH Bill

Same Problem - even without mysql/pgsql

Hi, I am absolutely new to this, but let me try:

Environment

Motion version: 3.1.18
ffmpeg version: 0.4.9-3 pre1
Shared libraries: xmlrpc, ffmpeg, mysql
Server OS: SuSE 9.2, Kernel 2.6.8-smp

And now the problem:

I installed motion without the shared libraries mentioned above - and it worked. I then wanted to compile again to use these libraries. Therefore I extracetd the tar.gz again into a directory, installed all libraries and tried ./configure again. I receive the same error-message:

checking size of short int... configure: error: cannot compute sizeof (short int), 77

Obvously I have changed quite a bit since the first install. I have not installed PostgresSQL. I tried the --without-mysql and --without-pgsql, still the same problem. Is this part of the config.log helping?

configure:3773: result: no
configure:3780: checking for short int
configure:3804: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3810: $? = 0
configure:3814: test -z 
          || test ! -s conftest.err
configure:3817: $? = 0
configure:3820: test -s conftest.o
configure:3823: $? = 0
configure:3834: result: yes
configure:3837: checking size of short int
configure:4156: gcc -o conftest -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  -Wl,-rpath,/usr/lib conftest.c  -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lxmlrpc -lxml2 -lpthread -lz -lm    >&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
configure:4159: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */

I must admit that I am not familiar with the ldconfig-command, could someone still help please?

Here the full config.log:

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

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --without-mysql --without-pgsql

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

hostname = linux
uname -m = i686
uname -r = 2.6.8-24.10-smp
uname -s = Linux
uname -v = #1 SMP Wed Dec 22 11:54:27 UTC 2004

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

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

PATH: /home/andi/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /bin
PATH: /usr/games
PATH: /opt/gnome/bin
PATH: /opt/kde3/bin
PATH: /usr/lib/jvm/jre/bin


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

configure:1365: checking for gcc
configure:1381: found /usr/bin/gcc
configure:1391: result: gcc
configure:1635: checking for C compiler version
configure:1638: gcc --version </dev/null >&5
gcc (GCC) 3.3.4 (pre 3.3.5 20040809)
Copyright (C) 2003 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:1641: $? = 0
configure:1643: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.4 (pre 3.3.5 20040809)
configure:1646: $? = 0
configure:1648: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1651: $? = 1
configure:1674: checking for C compiler default output file name
configure:1677: gcc    conftest.c  >&5
configure:1680: $? = 0
configure:1726: result: a.out
configure:1731: checking whether the C compiler works
configure:1737: ./a.out
configure:1740: $? = 0
configure:1757: result: yes
configure:1764: checking whether we are cross compiling
configure:1766: result: no
configure:1769: checking for suffix of executables
configure:1771: gcc -o conftest    conftest.c  >&5
configure:1774: $? = 0
configure:1799: result: 
configure:1805: checking for suffix of object files
configure:1826: gcc -c   conftest.c >&5
configure:1829: $? = 0
configure:1851: result: o
configure:1855: checking whether we are using the GNU C compiler
configure:1879: gcc -c   conftest.c >&5
configure:1885: $? = 0
configure:1889: test -z 
          || test ! -s conftest.err
configure:1892: $? = 0
configure:1895: test -s conftest.o
configure:1898: $? = 0
configure:1911: result: yes
configure:1917: checking whether gcc accepts -g
configure:1938: gcc -c -g  conftest.c >&5
configure:1944: $? = 0
configure:1948: test -z 
          || test ! -s conftest.err
configure:1951: $? = 0
configure:1954: test -s conftest.o
configure:1957: $? = 0
configure:1968: result: yes
configure:1985: checking for gcc option to accept ANSI C
configure:2055: gcc  -c -g -O2  conftest.c >&5
configure:2061: $? = 0
configure:2065: test -z 
          || test ! -s conftest.err
configure:2068: $? = 0
configure:2071: test -s conftest.o
configure:2074: $? = 0
configure:2092: result: none needed
configure:2110: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2116: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2266: checking for pthread_create in -lpthread
configure:2296: gcc -o conftest -g -O2   conftest.c -lpthread   -lm >&5
configure:2302: $? = 0
configure:2306: test -z 
          || test ! -s conftest.err
configure:2309: $? = 0
configure:2312: test -s conftest
configure:2315: $? = 0
configure:2328: result: yes
configure:2345: checking for jpeg_set_defaults in -ljpeg
configure:2375: gcc -o conftest -g -O2   conftest.c -ljpeg   -lm -lpthread >&5
configure:2381: $? = 0
configure:2385: test -z 
          || test ! -s conftest.err
configure:2388: $? = 0
configure:2391: test -s conftest
configure:2394: $? = 0
configure:2407: result: yes
configure:2440: checking for ffmpeg autodetecting
configure:2443: result: found
configure:2573: checking for xmlrpc-c
configure:2591: result: yes
configure:2608: checking for MySQL
configure:2676: result: skipped
configure:2701: checking for PostgreSQL
configure:2711: result: skipped
configure:3043: checking how to run the C preprocessor
configure:3078: gcc -E  conftest.c
configure:3084: $? = 0
configure:3116: gcc -E  conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:3122: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3161: result: gcc -E
configure:3185: gcc -E  conftest.c
configure:3191: $? = 0
configure:3223: gcc -E  conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:3229: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3273: checking for egrep
configure:3283: result: grep -E
configure:3288: checking for ANSI C header files
configure:3313: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3319: $? = 0
configure:3323: test -z 
          || test ! -s conftest.err
configure:3326: $? = 0
configure:3329: test -s conftest.o
configure:3332: $? = 0
configure:3421: gcc -o conftest -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  -Wl,-rpath,/usr/lib conftest.c  -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lxmlrpc -lxml2 -lpthread -lz -lm    >&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
configure:3424: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ctype.h>
| #if ((' ' & 0x0FF) == 0x020)
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
| #else
| # define ISLOWER(c)          (('a' <= (c) && (c) <= 'i')            || ('j' <= (c) && (c) <= 'r')            || ('s' <= (c) && (c) <= 'z'))
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
| #endif
| 
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
| int
| main ()
| {
|   int i;
|   for (i = 0; i < 256; i++)
|     if (XOR (islower (i), ISLOWER (i))
|    || toupper (i) != TOUPPER (i))
|       exit(2);
|   exit (0);
| }
configure:3444: result: no
configure:3468: checking for sys/types.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3468: checking for sys/stat.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3468: checking for stdlib.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3468: checking for string.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3468: checking for memory.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3468: checking for strings.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3468: checking for inttypes.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3468: checking for stdint.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3468: checking for unistd.h
configure:3484: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3490: $? = 0
configure:3494: test -z 
          || test ! -s conftest.err
configure:3497: $? = 0
configure:3500: test -s conftest.o
configure:3503: $? = 0
configure:3514: result: yes
configure:3548: checking stdio.h usability
configure:3560: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3566: $? = 0
configure:3570: test -z 
          || test ! -s conftest.err
configure:3573: $? = 0
configure:3576: test -s conftest.o
configure:3579: $? = 0
configure:3589: result: yes
configure:3593: checking stdio.h presence
configure:3603: gcc -E  conftest.c
configure:3609: $? = 0
configure:3629: result: yes
configure:3664: checking for stdio.h
configure:3671: result: yes
configure:3539: checking for stdlib.h
configure:3544: result: yes
configure:3539: checking for unistd.h
configure:3544: result: yes
configure:3548: checking fcntl.h usability
configure:3560: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3566: $? = 0
configure:3570: test -z 
          || test ! -s conftest.err
configure:3573: $? = 0
configure:3576: test -s conftest.o
configure:3579: $? = 0
configure:3589: result: yes
configure:3593: checking fcntl.h presence
configure:3603: gcc -E  conftest.c
configure:3609: $? = 0
configure:3629: result: yes
configure:3664: checking for fcntl.h
configure:3671: result: yes
configure:3548: checking time.h usability
configure:3560: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3566: $? = 0
configure:3570: test -z 
          || test ! -s conftest.err
configure:3573: $? = 0
configure:3576: test -s conftest.o
configure:3579: $? = 0
configure:3589: result: yes
configure:3593: checking time.h presence
configure:3603: gcc -E  conftest.c
configure:3609: $? = 0
configure:3629: result: yes
configure:3664: checking for time.h
configure:3671: result: yes
configure:3548: checking signal.h usability
configure:3560: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3566: $? = 0
configure:3570: test -z 
          || test ! -s conftest.err
configure:3573: $? = 0
configure:3576: test -s conftest.o
configure:3579: $? = 0
configure:3589: result: yes
configure:3593: checking signal.h presence
configure:3603: gcc -E  conftest.c
configure:3609: $? = 0
configure:3629: result: yes
configure:3664: checking for signal.h
configure:3671: result: yes
configure:3548: checking sys/ioctl.h usability
configure:3560: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3566: $? = 0
configure:3570: test -z 
          || test ! -s conftest.err
configure:3573: $? = 0
configure:3576: test -s conftest.o
configure:3579: $? = 0
configure:3589: result: yes
configure:3593: checking sys/ioctl.h presence
configure:3603: gcc -E  conftest.c
configure:3609: $? = 0
configure:3629: result: yes
configure:3664: checking for sys/ioctl.h
configure:3671: result: yes
configure:3548: checking sys/mman.h usability
configure:3560: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3566: $? = 0
configure:3570: test -z 
          || test ! -s conftest.err
configure:3573: $? = 0
configure:3576: test -s conftest.o
configure:3579: $? = 0
configure:3589: result: yes
configure:3593: checking sys/mman.h presence
configure:3603: gcc -E  conftest.c
configure:3609: $? = 0
configure:3629: result: yes
configure:3664: checking for sys/mman.h
configure:3671: result: yes
configure:3548: checking linux/videodev.h usability
configure:3560: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3566: $? = 0
configure:3570: test -z 
          || test ! -s conftest.err
configure:3573: $? = 0
configure:3576: test -s conftest.o
configure:3579: $? = 0
configure:3589: result: yes
configure:3593: checking linux/videodev.h presence
configure:3603: gcc -E  conftest.c
configure:3609: $? = 0
configure:3629: result: yes
configure:3664: checking for linux/videodev.h
configure:3671: result: yes
configure:3685: checking for memmem
configure:3742: gcc -o conftest -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  -Wl,-rpath,/usr/lib conftest.c  -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lxmlrpc -lxml2 -lpthread -lz -lm    >&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
configure:3748: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #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_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_TIME_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_LINUX_VIDEODEV_H 1
| /* end confdefs.h.  */
| /* Define memmem to an innocuous variant, in case <limits.h> declares memmem.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define memmem innocuous_memmem
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char memmem (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 
| #undef memmem
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char memmem ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined (__stub_memmem) || defined (__stub___memmem)
| choke me
| #else
| char (*f) () = memmem;
| #endif
| #ifdef __cplusplus
| }
| #endif
| 
| int
| main ()
| {
| return f != memmem;
|   ;
|   return 0;
| }
configure:3773: result: no
configure:3780: checking for short int
configure:3804: gcc -c -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  conftest.c >&5
configure:3810: $? = 0
configure:3814: test -z 
          || test ! -s conftest.err
configure:3817: $? = 0
configure:3820: test -s conftest.o
configure:3823: $? = 0
configure:3834: result: yes
configure:3837: checking size of short int
configure:4156: gcc -o conftest -I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include  -Wl,-rpath,/usr/lib conftest.c  -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lxmlrpc -lxml2 -lpthread -lz -lm    >&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
configure:4159: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #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_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_TIME_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_LINUX_VIDEODEV_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (short int)); }
| unsigned long ulongval () { return (long) (sizeof (short int)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
| 
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     exit (1);
|   if (((long) (sizeof (short int))) < 0)
|     {
|       long i = longval ();
|       if (i != ((long) (sizeof (short int))))
|    exit (1);
|       fprintf (f, "%ld\n", i);
|     }
|   else
|     {
|       unsigned long i = ulongval ();
|       if (i != ((long) (sizeof (short int))))
|    exit (1);
|       fprintf (f, "%lu\n", i);
|     }
|   exit (ferror (f) || fclose (f) != 0);
| 
|   ;
|   return 0;
| }
configure:4174: error: cannot compute sizeof (short int), 77
See `config.log' for more details.

## ---------------- ##
## 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_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_exeext=
ac_cv_func_memmem=no
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_linux_videodev_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_signal_h=yes
ac_cv_header_stdc=no
ac_cv_header_stdint_h=yes
ac_cv_header_stdio_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_ioctl_h=yes
ac_cv_header_sys_mman_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_time_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_jpeg_jpeg_set_defaults=yes
ac_cv_lib_pthread_pthread_create=yes
ac_cv_objext=o
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_type_short_int=yes

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

BIN_PATH=''
CC='gcc'
CFLAGS='-I/usr/include/ffmpeg -g -O2 -DHAVE_FFMPEG -DHAVE_XMLRPC -I/usr/include'
CONTROL_LIBS='-L -L/usr/lib -lxmlrpc_client  -lxmlrpc -lxml2 -lpthread -lz -lm    '
CONTROL_OBJ='motion-control.o'
CPP='gcc -E'
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
FFMPEG_OBJ='ffmpeg.o'
LDFLAGS='-Wl,-rpath,/usr/lib'
LIBOBJS=''
LIBS=' -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lxmlrpc -lxml2 -lpthread -lz -lm   '
LTLIBOBJS=''
MOTION_CONTROL='motion-control'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
VERSION='3.1.18'
VIDEO='video.o'
XML_HTTP_OBJ='xmlrpc-httpd.o control.o'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define HAVE_FCNTL_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_LINUX_VIDEODEV_H 1
#define HAVE_MEMORY_H 1
#define HAVE_SIGNAL_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_MMAN_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_TIME_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 1

Thank you!

-- Andreas - 12 Feb 2005

The problem is related to xmlrpc-c package of suse 9.2 :

Check that command from command line:


xmlrpc-c-config libwww-client --libs

The output have to be:


-L/usr/lib -lxmlrpc_client  -lxmlrpc -lxml2

Motion assigned to CONTROL_LIBS :

CONTROL_LIBS='-L -L/usr/lib -lxmlrpc_client -lxmlrpc -lxml2 -lpthread -lz -lm '

And the error is :


conftest.c  -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lxmlrpc -lxml2 -lpthread -lz -lm    >&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status

So the problem is that -lxml2 is not found in your system , try :


find / -name "libxml2.*"  > found-xml2

And let's see if there's this shared library in the file found-xml2

-- AngelCarpintero - 12 Feb 2005


If you want to compile motion without xmlrpc-c support apply the this patch


 tar xfvz motion-3.1.18.tar.gz
 gunzip configure.in-xmlrpc-c.diff.gz
 cp configure.in-xmlrpc-c.diff motion-3.1.18/.
 cd motion-3.1.18 ; patch < configure.in-xmlrpc-c.diff
 autoconf ; ./configure --without-xmlrpc-c --without-mysql --without-pgsql 

-- AngelCarpintero - 13 Feb 2005


Hi and thanks a lot!!!

I knew I had forgotten something: I never found the libwww rpm for SuSE 9.2 and then left it...

I did the following test:

linux:/home/andi/motion-3.1.18 # xmlrpc-c-config libwww-client --libs
-L -L/usr/lib -lxmlrpc_client  -lxmlrpc -lxml2 -lpthread -lz -lm

linux:/home/andi/motion-3.1.18 # find / -iname "libxml2.*"
/usr/lib/libxml2.so.2.6.12
/usr/lib/libxml2.so.2

Now is that good or bad? I suppose I try to compile without xmlrpc first and then get me libwww later and try again. Thanks for help & teaching me something new!!!

-- Andreas - 12 Feb 2005


Thanks so much again, just tried the patch without xmlrpc and it worked perfectly! Now I have to get an understanding of what the rpc and libwww-stuff are all about... Cheers

-- Andreas - 12 Feb 2005

Fix record

Patch included in motion-3.1.19_snap4 .

-- AngelCarpintero - 25 Feb 2005

BugReportForm edit

TopicTitle still get configure: error: cannot compute sizeof (short int),77
BugStatus Released
AssignedBugTo KennethLavrsen
SubmittedBy SebaT
I Attachment Action Size Date Who Comment
configure.in-xmlrpc-c.diff.gzgz configure.in-xmlrpc-c.diff.gz manage 482 bytes 13 Feb 2005 - 00:40 AngelCarpintero make xmlrpc-c optional in configure
Topic revision: r10 - 25 Feb 2005, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.