Bug#564401: gmime2.4: FTBFS: conftest.c:69: undefined reference to `gmtime_s'

Lucas Nussbaum lucas at lucas-nussbaum.net
Sat Jan 9 10:30:31 UTC 2010


Source: gmime2.4
Version: 2.4.11-1
Severity: serious
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-2010-01-08 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
> configure:9190: $? = 0
> configure:9203: result: no
> configure:9223: checking for gcc option to produce PIC
> configure:9495: result: -fPIC -DPIC
> configure:9507: checking if gcc PIC flag -fPIC -DPIC works
> configure:9525: gcc -c -g -O2  -fPIC -DPIC -DPIC conftest.c >&5
> configure:9529: $? = 0
> configure:9542: result: yes
> configure:9566: checking if gcc static flag -static works
> configure:9594: result: yes
> configure:9609: checking if gcc supports -c -o file.o
> configure:9630: gcc -c -g -O2  -o out/conftest2.o conftest.c >&5
> configure:9634: $? = 0
> configure:9656: result: yes
> configure:9664: checking if gcc supports -c -o file.o
> configure:9711: result: yes
> configure:9744: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
> configure:10735: result: yes
> configure:10772: checking whether -lc should be explicitly linked in
> configure:10777: gcc -c -g -O2  conftest.c >&5
> configure:10780: $? = 0
> configure:10795: gcc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep  -lc  \>/dev/null 2\>\&1
> configure:10798: $? = 0
> configure:10810: result: no
> configure:10974: checking dynamic linker characteristics
> configure:11407: gcc -o conftest -g -O2   -Wl,-rpath -Wl,/foo conftest.c  >&5
> configure:11407: $? = 0
> configure:11637: result: GNU/Linux ld.so
> configure:11739: checking how to hardcode library paths into programs
> configure:11764: result: immediate
> configure:12284: checking whether stripping libraries is possible
> configure:12289: result: yes
> configure:12324: checking if libtool supports shared libraries
> configure:12326: result: yes
> configure:12329: checking whether to build shared libraries
> configure:12350: result: yes
> configure:12353: checking whether to build static libraries
> configure:12357: result: yes
> configure:12398: checking for bash
> configure:12416: found /bin/bash
> configure:12428: result: /bin/bash
> configure:12436: checking if dolt supports this host
> configure:12463: result: yes, replacing libtool
> configure:12591: checking whether to enable maintainer-specific portions of Makefiles
> configure:12600: result: no
> configure:12616: checking sys/mman.h usability
> configure:12616: gcc -c -g -O2  conftest.c >&5
> configure:12616: $? = 0
> configure:12616: result: yes
> configure:12616: checking sys/mman.h presence
> configure:12616: gcc -E  conftest.c
> configure:12616: $? = 0
> configure:12616: result: yes
> configure:12616: checking for sys/mman.h
> configure:12616: result: yes
> configure:12628: checking sys/param.h usability
> configure:12628: gcc -c -g -O2  conftest.c >&5
> configure:12628: $? = 0
> configure:12628: result: yes
> configure:12628: checking sys/param.h presence
> configure:12628: gcc -E  conftest.c
> configure:12628: $? = 0
> configure:12628: result: yes
> configure:12628: checking for sys/param.h
> configure:12628: result: yes
> configure:12640: checking winsock2.h usability
> configure:12640: gcc -c -g -O2  conftest.c >&5
> conftest.c:58:22: error: winsock2.h: No such file or directory
> configure:12640: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define PACKAGE "gmime"
> | #define VERSION "2.4.11"
> | #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_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | #define HAVE_SYS_MMAN_H 1
> | #define HAVE_SYS_PARAM_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 <winsock2.h>
> configure:12640: result: no
> configure:12640: checking winsock2.h presence
> configure:12640: gcc -E  conftest.c
> conftest.c:25:22: error: winsock2.h: No such file or directory
> configure:12640: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define PACKAGE "gmime"
> | #define VERSION "2.4.11"
> | #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_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | #define HAVE_SYS_MMAN_H 1
> | #define HAVE_SYS_PARAM_H 1
> | /* end confdefs.h.  */
> | #include <winsock2.h>
> configure:12640: result: no
> configure:12640: checking for winsock2.h
> configure:12640: result: no
> configure:12652: checking for string.h
> configure:12652: result: yes
> configure:12664: checking for stdlib.h
> configure:12664: result: yes
> configure:12676: checking for unistd.h
> configure:12676: result: yes
> configure:12688: checking netdb.h usability
> configure:12688: gcc -c -g -O2  conftest.c >&5
> configure:12688: $? = 0
> configure:12688: result: yes
> configure:12688: checking netdb.h presence
> configure:12688: gcc -E  conftest.c
> configure:12688: $? = 0
> configure:12688: result: yes
> configure:12688: checking for netdb.h
> configure:12688: result: yes
> configure:12700: checking regex.h usability
> configure:12700: gcc -c -g -O2  conftest.c >&5
> configure:12700: $? = 0
> configure:12700: result: yes
> configure:12700: checking regex.h presence
> configure:12700: gcc -E  conftest.c
> configure:12700: $? = 0
> configure:12700: result: yes
> configure:12700: checking for regex.h
> configure:12700: result: yes
> configure:12712: checking time.h usability
> configure:12712: gcc -c -g -O2  conftest.c >&5
> configure:12712: $? = 0
> configure:12712: result: yes
> configure:12712: checking time.h presence
> configure:12712: gcc -E  conftest.c
> configure:12712: $? = 0
> configure:12712: result: yes
> configure:12712: checking for time.h
> configure:12712: result: yes
> configure:12724: checking poll.h usability
> configure:12724: gcc -c -g -O2  conftest.c >&5
> configure:12724: $? = 0
> configure:12724: result: yes
> configure:12724: checking poll.h presence
> configure:12724: gcc -E  conftest.c
> configure:12724: $? = 0
> configure:12724: result: yes
> configure:12724: checking for poll.h
> configure:12724: result: yes
> configure:12735: checking for off_t
> configure:12735: gcc -c -g -O2  conftest.c >&5
> configure:12735: $? = 0
> configure:12735: gcc -c -g -O2  conftest.c >&5
> conftest.c: In function 'main':
> conftest.c:68: error: expected expression before ')' token
> configure:12735: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define PACKAGE "gmime"
> | #define VERSION "2.4.11"
> | #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_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | #define HAVE_SYS_MMAN_H 1
> | #define HAVE_SYS_PARAM_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_NETDB_H 1
> | #define HAVE_REGEX_H 1
> | #define HAVE_TIME_H 1
> | #define HAVE_POLL_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 ((off_t)))
> | 	    return 0;
> |   ;
> |   return 0;
> | }
> configure:12735: result: yes
> configure:12746: checking for size_t
> configure:12746: gcc -c -g -O2  conftest.c >&5
> configure:12746: $? = 0
> configure:12746: gcc -c -g -O2  conftest.c >&5
> conftest.c: In function 'main':
> conftest.c:68: error: expected expression before ')' token
> configure:12746: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define PACKAGE "gmime"
> | #define VERSION "2.4.11"
> | #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_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | #define HAVE_SYS_MMAN_H 1
> | #define HAVE_SYS_PARAM_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_NETDB_H 1
> | #define HAVE_REGEX_H 1
> | #define HAVE_TIME_H 1
> | #define HAVE_POLL_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:12746: result: yes
> configure:12757: checking for ssize_t
> configure:12757: gcc -c -g -O2  conftest.c >&5
> configure:12757: $? = 0
> configure:12757: gcc -c -g -O2  conftest.c >&5
> conftest.c: In function 'main':
> conftest.c:68: error: expected expression before ')' token
> configure:12757: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define PACKAGE "gmime"
> | #define VERSION "2.4.11"
> | #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_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | #define HAVE_SYS_MMAN_H 1
> | #define HAVE_SYS_PARAM_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_NETDB_H 1
> | #define HAVE_REGEX_H 1
> | #define HAVE_TIME_H 1
> | #define HAVE_POLL_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 ((ssize_t)))
> | 	    return 0;
> |   ;
> |   return 0;
> | }
> configure:12757: result: yes
> configure:12769: checking for nfds_t
> configure:12789: gcc -c -g -O2  conftest.c >&5
> configure:12789: $? = 0
> configure:12790: result: yes
> configure:12806: checking for strftime
> configure:12806: gcc -o conftest -g -O2   conftest.c  >&5
> conftest.c:55: warning: conflicting types for built-in function 'strftime'
> configure:12806: $? = 0
> configure:12806: result: yes
> configure:12806: checking for localtime
> configure:12806: gcc -o conftest -g -O2   conftest.c  >&5
> configure:12806: $? = 0
> configure:12806: result: yes
> configure:12806: checking for gmtime_r
> configure:12806: gcc -o conftest -g -O2   conftest.c  >&5
> configure:12806: $? = 0
> configure:12806: result: yes
> configure:12806: checking for gmtime_s
> configure:12806: gcc -o conftest -g -O2   conftest.c  >&5
> /tmp/ccCOV5ob.o: In function `main':
> /build/user-gmime2.4_2.4.11-1-amd64-vZRFC4/gmime2.4-2.4.11/conftest.c:69: undefined reference to `gmtime_s'
> collect2: ld returned 1 exit status

The full build log is available from:
   http://people.debian.org/~lucas/logs/2010-01-08/gmime2.4_2.4.11-1_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |






More information about the pkg-gnome-maintainers mailing list