OK, when I run fink install glib2 here's what I see:

...<standard configure script stuff>...
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
...
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option '-shared'
/usr/bin/ld: unknown flag: -export-dynamic
collect2: ld returned 1 exit status
checking for RTLD_GLOBAL brokenness... no
checking for preceeding underscore in symbols... no
checking for dlerror... yes
checking for the suffix of shared libraries... .so
checking for gspawn implementation... gspawn.lo
checking for GIOChannel implementation... giounix.lo
checking for platform-dependent source...
checking whether to compile timeloop... yes
checking if building for some Win32 platform... no
checking for thread implementation... posix
checking thread related cflags...
checking for pthread_create/pthread_join... yes
checking for sched_get_priority_min... yes
checking thread related libraries...
checking for localtime_r... yes
checking for posix getpwuid_r... yes
checking size of pthread_t... 4
checking for pthread_attr_setstacksize... yes
checking for minimal/maximal thread priority... sched_get_priority_min (SCHED_OTHER)/sched_get_priority_max(SCHED_OTHER)
checking for pthread_setschedparam... yes
checking for posix yield function... sched_yield
checking size of pthread_mutex_t... 44
checking byte contents of PTHREAD_MUTEX_INITIALIZER... 50,-86,-85,-89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0
checking whether to use assembler code for atomic operations... powerpc
checking value of POLLIN...
checking value of POLLOUT...
checking value of POLLPRI...
checking value of POLLERR...
checking value of POLLHUP...
checking value of POLLNVAL...
configure: error: Could not determine values for POLL* constants
### execution of ./configure failed, exit code 1
Removing build lock...
/sw/bin/dpkg-lockwait -r fink-buildlock-glib2-2.6.6-111
(Reading database ... 67774 files and directories currently installed.)
Removing fink-buildlock-glib2-2.6.6-111 ...
Failed: phase compiling: glib2-2.6.6-111 failed

config.log shows:
...
configure:36067: checking value of POLLIN
configure:36377: gcc -o conftest -O3 -funroll-loops -fstrict-aliasing -Wall -no-cpp-precomp -isystem /sw/include -D_POLL_EMUL_H_ conftest.c -lintl -L/sw/lib >&5
conftest.c: In function 'longval':
conftest.c:127: error: 'POLLIN' undeclared (first use in this function)
conftest.c:127: error: (Each undeclared identifier is reported only once
conftest.c:127: error: for each function it appears in.)
conftest.c: In function 'ulongval':
conftest.c:128: error: 'POLLIN' undeclared (first use in this function)
conftest.c: In function 'main':
conftest.c:138: error: 'POLLIN' undeclared (first use in this function)
configure:36380: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.6.6"
| #define PACKAGE_STRING "glib 2.6.6"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi? product=glib"
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 6
| #define GLIB_MICRO_VERSION 6
| #define GLIB_INTERFACE_AGE 6
| #define GLIB_BINARY_AGE 606
| #define G_COMPILED_WITH_DEBUGGING "minimum"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #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 "/sw/share/locale"
| #define USE_LIBICONV_GNU 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_VPRINTF 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_ATEXIT 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 SANE_MALLOC_PROTOS 1
| #define G_HAVE___INLINE 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_SYS_PARAM_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_LANGINFO_H 1
| #define HAVE_NL_LANGINFO 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_MKSTEMP 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_STPCPY 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_POLL 1
| #define HAVE_GETCWD 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_VASPRINTF 1
| #define HAVE_SETENV 1
| #define HAVE_UNSETENV 1
| #define HAVE_GETC_UNLOCKED 1
| #define HAVE_READLINK 1
| #define HAVE_SYMLINK 1
| #define HAVE_C99_VSNPRINTF 1
| #define HAVE_UNIX98_PRINTF 1
| #define HAVE_GOOD_PRINTF 1
| #define HAVE_LONG_LONG 1
| #define HAVE_LONG_DOUBLE 1
| #define HAVE_WCHAR_T 1
| #define HAVE_WINT_T 1
| #define HAVE_PTRDIFF_T 1
| #define HAVE_INTTYPES_H_WITH_UINTMAX 1
| #define HAVE_STDINT_H_WITH_UINTMAX 1
| #define HAVE_INTMAX_T 1
| #define HAVE_SNPRINTF 1
| #define HAVE_C99_SNPRINTF 1
| #define REALLOC_0_WORKS 1
| #define HAVE_CODESET 1
| #define HAVE_STRLCPY 1
| #define G_VA_COPY __va_copy
| #define HAVE_LOCALTIME_R 1
| #define HAVE_POSIX_GETPWUID_R 1
| #define GLIB_SIZEOF_SYSTEM_THREAD 4
| #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
| #define POSIX_MIN_PRIORITY sched_get_priority_min(SCHED_OTHER)
| #define POSIX_MAX_PRIORITY sched_get_priority_max(SCHED_OTHER)
| #define POSIX_YIELD_FUNC sched_yield()
| #define G_THREAD_SOURCE "gthread-posix.c"
| #define GLIB_SIZEOF_GMUTEX 44
| #define GLIB_BYTE_CONTENTS_GMUTEX 50,-86,-85,-89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0
| #define G_ATOMIC_POWERPC 1
| /* end confdefs.h.  */
|
| #include <sys/types.h>
| #include <sys/poll.h>
|
| long longval () { return POLLIN; }
| unsigned long ulongval () { return POLLIN; }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     exit (1);
|   if ((POLLIN) < 0)
|     {
|       long i = longval ();
|       if (i != (POLLIN))
|     exit (1);
|       fprintf (f, "%ld\n", i);
|     }
|   else
|     {
|       unsigned long i = ulongval ();
|       if (i != (POLLIN))
|     exit (1);
|       fprintf (f, "%lu\n", i);
|     }
|   exit (ferror (f) || fclose (f) != 0);
|
|   ;
|   return 0;
| }
configure:36401: result:
configure:36404: checking value of POLLOUT
configure:36714: gcc -o conftest -O3 -funroll-loops -fstrict-aliasing -Wall -no-cpp-precomp -isystem /sw/include -D_POLL_EMUL_H_ conftest.c -lintl -L/sw/lib >&5
...
the same thing is repeated for POLLOUT, POLLERR, POLLHUP, etc.

These are all defined in sys/poll.h, so for some reason I guess it's not picking them up properly.


On Nov 1, 2005, at 9:54 PM, Martin Costabel wrote:

Hugo Mallinson wrote:

Trying to upgrade to glib-2.6.6 I get this fatal error during the configuration stage.


Could you be more specific? And perhaps quote the corresponding section of your config.log file?

--
Martin





-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to