[Mageia-dev] Build failures. GCC related?

Colin Guthrie mageia at colin.guthr.ie
Fri Jun 29 15:33:21 CEST 2012


Hi,

As I rebuild things for new systemd/udev I see a few build problems
related to the basic "read", "close" etc functions.

Before I continue rebuilding can something maybe take a look at these
examples and let me know what they think?

Cheers

e.g. see here for libcec (very simple library):
http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20120629130430.colin.valstar.8451/log/libcec-1.5-0.git20120305.3.mga3/build.0.20120629130450.log


and here in gvfs when checking for samba support:


configure:17463: checking for SMBCCTX.close
configure:17463: gcc -c -O2 -g -pipe -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
-I/usr/includ
e conftest.c >&5
conftest.c: In function 'main':
conftest.c:70:12: error: 'SMBCCTX' has no member named 'close'
configure:17463: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gvfs"
| #define PACKAGE_TARNAME "gvfs"
| #define PACKAGE_VERSION "1.13.2"
| #define PACKAGE_STRING "gvfs 1.13.2"
| #define PACKAGE_BUGREPORT
"http://bugzilla.gnome.org/enter_bug.cgi?product=gvfs"
| #define PACKAGE_URL ""
| #define PACKAGE "gvfs"
| #define VERSION "1.13.2"
| #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 RETSIGTYPE void
| #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
| #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
| #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
| #define GETTEXT_PACKAGE "gvfs"
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define ENABLE_NLS 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_STROPTS_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UTMP_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPT 1
| #define HAVE_POSIX_OPENPT 1
| #define HAVE_GRANTPT 1
| #define HAVE_UNLOCKPT 1
| #define HAVE_PTSNAME 1
| #define HAVE_PTSNAME_R 1
| #define HAVE_SOCKETPAIR 1
| #define HAVE_LOGIN_TTY /**/
| #define HAVE_HTTP 1
| #define HAVE_AVAHI /**/
| #define HAVE_LIBXML /**/
| #define HAVE_LIBUDEV 1
| #define HAVE_FUSE 1
| #define HAVE_UDISKS2 1
| #define HAVE_LIBSYSTEMD_LOGIN 1
| #define HAVE_GUDEV 1
| #define HAVE_CDDA 1
| #define HAVE_AFC 1
| #define HAVE_EXPAT_H 1
| #define HAVE_OBEXFTP 1
| #define HAVE_GPHOTO2 1
| #define HAVE_KEYRING 1
| #define HAVE_BLURAY 1
| #define HAVE_SAMBA_FLAGS /**/
| /* end confdefs.h.  */
| #include <libsmbclient.h>
|
| int
| main ()
| {
| static SMBCCTX ac_aggr;
| if (ac_aggr.close)
| return 0;
|   ;
|   return 0;
| }
configure:17463: gcc -c -O2 -g -pipe -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
-I/usr/includ
e conftest.c >&5
conftest.c: In function 'main':
conftest.c:70:19: error: 'SMBCCTX' has no member named 'close'
configure:17463: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gvfs"
| #define PACKAGE_TARNAME "gvfs"
| #define PACKAGE_VERSION "1.13.2"
| #define PACKAGE_STRING "gvfs 1.13.2"
| #define PACKAGE_BUGREPORT
"http://bugzilla.gnome.org/enter_bug.cgi?product=gvfs"
| #define PACKAGE_URL ""
| #define PACKAGE "gvfs"
| #define VERSION "1.13.2"
| #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 RETSIGTYPE void

| #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
| #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
| #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
| #define GETTEXT_PACKAGE "gvfs"
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define ENABLE_NLS 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_STROPTS_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_UTMP_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPT 1
| #define HAVE_POSIX_OPENPT 1
| #define HAVE_GRANTPT 1
| #define HAVE_UNLOCKPT 1
| #define HAVE_PTSNAME 1
| #define HAVE_PTSNAME_R 1
| #define HAVE_SOCKETPAIR 1
| #define HAVE_LOGIN_TTY /**/
| #define HAVE_HTTP 1
| #define HAVE_AVAHI /**/
| #define HAVE_LIBXML /**/
| #define HAVE_LIBUDEV 1
| #define HAVE_FUSE 1
| #define HAVE_UDISKS2 1
| #define HAVE_LIBSYSTEMD_LOGIN 1
| #define HAVE_GUDEV 1
| #define HAVE_CDDA 1
| #define HAVE_AFC 1
| #define HAVE_EXPAT_H 1
| #define HAVE_OBEXFTP 1
| #define HAVE_GPHOTO2 1
| #define HAVE_KEYRING 1
| #define HAVE_BLURAY 1
| #define HAVE_SAMBA_FLAGS /**/
| /* end confdefs.h.  */
| #include <libsmbclient.h>
|
| int
| main ()
| {
| static SMBCCTX ac_aggr;
| if (sizeof ac_aggr.close)
| return 0;
|   ;
|   return 0;
| }
configure:17463: result: no

-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/




More information about the Mageia-dev mailing list