pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/42336: devel/glib2 does not compile on Solaris10
The following reply was made to PR pkg/42336; it has been noted by GNATS.
From: Uwe Klaus <uklaus%hgb-leipzig.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/42336: devel/glib2 does not compile on Solaris10
Date: Tue, 17 Nov 2009 18:53:09 +0100 (CET)
On Tue, 17 Nov 2009, David Holland wrote:
> On Tue, Nov 17, 2009 at 03:25:00PM +0000, uklaus%hgb-leipzig.de@localhost
> wrote:
> > checking for res_query... no
> > checking for res_query in -lresolv... yes
> > checking number of arguments to statfs()... unknown
> > configure: error: unable to determine number of arguments to statfs()
>
> What does config.log say about what blew up?
configure:35277: cc -c -xO3 -xtarget=ultra -Xa -I/opt/pkg/include
-I/usr/include -DPREFIX="\"/opt/pkg\"" -DPKGLOCALEDIR="\"lib\""
-DPKG_SYSCONFDIR="\"/opt/pkg/etc\"" -I/opt/pkg/include -I/usr/include
-DG_DISABLE_SINGLE_INCLUDES conftest.c >&5
"/usr/include/sys/feature_tests.h", line 332: #error: "Compiler or options
invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX
applications"
cc: acomp failed for conftest.c
configure:35284: $? = 2
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.22.2"
| #define PACKAGE_STRING "glib 2.22.2"
| #define PACKAGE_BUGREPORT
"http://bugzilla.gnome.org/enter_bug.cgi?product=glib"
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 22
| #define GLIB_MICRO_VERSION 2
| #define GLIB_INTERFACE_AGE 2
| #define GLIB_BINARY_AGE 2202
| #define _FILE_OFFSET_BITS 64
| #define NEED_ICONV_CACHE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_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 GETTEXT_PACKAGE "glib20"
| #define GLIB_LOCALE_DIR "/opt/pkg/share/locale"
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define STDC_HEADERS 1
| #define HAVE_VPRINTF 1
| #define HAVE_DOPRNT 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_MMAP 1
| #define HAVE_MEMALIGN 1
| #define HAVE_VALLOC 1
| #define HAVE_FSYNC 1
| #define HAVE_ATEXIT 1
| #define HAVE_GMTIME_R 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_LONG 4
| #define SIZEOF_INT 4
| #define SIZEOF_VOID_P 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF___INT64 0
| #define HAVE_LONG_LONG_FORMAT 1
| #define G_HAVE___INLINE__ 1
| #define G_HAVE_INLINE 1
| #define WORDS_BIGENDIAN 1
| #define HAVE_DIRENT_H 1
| #define HAVE_FLOAT_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_PWD_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_VALUES_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_SYS_STATFS_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_MNTTAB_H 1
| #define HAVE_SYS_VFSTAB_H 1
| #define HAVE_SYS_UIO_H 1
| #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 HAVE_STRUCT_STAT_ST_BLKSIZE 1
| #define HAVE_STRUCT_STAT_ST_BLOCKS 1
| #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
| #define HAVE_LANGINFO_CODESET 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SETLOCALE 1
| #define SIZEOF_SIZE_T 4
| #define HAVE_LSTAT 1
| #define HAVE_STRERROR 1
| #define HAVE_STRSIGNAL 1
| #define HAVE_MEMMOVE 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_POLL 1
| #define HAVE_GETCWD 1
| #define HAVE_SETENV 1
| #define HAVE_UNSETENV 1
| #define HAVE_GETC_UNLOCKED 1
| #define HAVE_READLINK 1
| #define HAVE_SYMLINK 1
| #define HAVE_FDWALK 1
| #define HAVE_CHOWN 1
| #define HAVE_LCHOWN 1
| #define HAVE_FCHMOD 1
| #define HAVE_FCHOWN 1
| #define HAVE_LINK 1
| #define HAVE_STATVFS 1
| #define HAVE_STATFS 1
| #define HAVE_UTIMES 1
| #define HAVE_GETGRGID 1
| #define HAVE_GETPWUID 1
| #define HAVE_HASMNTOPT 1
| #define HAVE_C99_VSNPRINTF 1
| #define HAVE_UNIX98_PRINTF 1
| #define HAVE_NETDB_H 1
| #define HAVE_SETREUID 1
| #define HAVE_ARPA_NAMESER_COMPAT_H 1
| #define _XOPEN_SOURCE_EXTENDED 1
| #define _XOPEN_SOURCE 2
| #define __EXTENSIONS__ 1
| /* end confdefs.h. */
| #include <unistd.h>
| #ifdef HAVE_SYS_PARAM_H
| #include <sys/param.h>
| #endif
| #ifdef HAVE_SYS_VFS_H
| #include <sys/vfs.h>
| #endif
| #ifdef HAVE_SYS_MOUNT_H
| #include <sys/mount.h>
| #endif
| #ifdef HAVE_SYS_STATFS_H
| #include <sys/statfs.h>
| #endif
| int
| main ()
| {
| struct statfs st;
| statfs(NULL, &st, sizeof (st), 0);
| ;
| return 0;
| }
configure:35302: result: unknown
configure:35304: error: unable to determine number of arguments to statfs()
Similar situation as reported in
http://mail-index.netbsd.org/pkgsrc-bugs/2009/06/16/msg032728.html
Adding -D_XPG6 helped to succeed.
--- Makefile.orig 2009-10-16 09:25:20.224193000 +0200
+++ Makefile
@@ -82,6 +82,8 @@ TOOLS_NOOP+= gtkdoc-rebase
CONFIGURE_ENV+= ac_cv_func_mmap_fixed_mapped=yes
.endif
+CFLAGS.SunOS+= -D_XPG6
+
PLIST_VARS+= fam
.if ${OPSYS} != "HPUX" && ${OPSYS} != "OSF1"
Regards,
Uwe
Home |
Main Index |
Thread Index |
Old Index