Subject: Re: pkgsrc on solaris 8/sparc + bmake gnome2
To: None <tech-pkg@netbsd.org>
From: Super-User <jjacocks@mac.com>
List: tech-pkg
Date: 06/25/2003 17:50:32
Klaus Heinz wrote:

> adam morley wrote:
>
> > I used gcc-3.2.3 from www.sunfreeware.com.  I have a feeling I should
>
> I use 2.95.3 from sunfreeware with bootstrap-pkgsrc and had practically
> no problems getting this to work.
>
> ciao
>      Klaus

All of my problems also went away when I did the above.

I now have managed to get bootstrapped, and gcc-3.3 installed internal to
pkg.

To see if my gcc-3.3 installation actually works, I built glib-2.2.
However, it doesn't seem to be detecting/linking GNU iconv correctly.

# which gcc
/usr/pkg/gcc-3.3/bin/gcc
# echo $CC
/usr/pkg/gcc-3.3/bin/gcc
# echo LD_LIBRARY_PATH
LD_LIBRARY_PATH
# ls -l /usr/pkg/lib/libiconv*
-rw-r--r--   1 root     root      941184 Jun 25 12:46
/usr/pkg/lib/libiconv.a
-r--r--r--   1 root     root         754 Jun 25 12:46
/usr/pkg/lib/libiconv.la
-r--r--r--   1 root     root      940104 Jun 25 12:46
/usr/pkg/lib/libiconv_plug.so
lrwxrwxrwx   1 root     other         15 Jun 25 12:46
/usr/pkg/lib/libiconv.so -> libiconv.so.3.0
lrwxrwxrwx   1 root     other         15 Jun 25 12:46
/usr/pkg/lib/libiconv.so.3 -> libiconv.so.3.0
-r-xr-xr-x   1 root     root      937540 Jun 25 12:46
/usr/pkg/lib/libiconv.so.3.0
# pkg_info
digest-20021220     Message digest wrapper utility
libtool-base-1.4.20010614nb14 Generic shared library support script (the
script itself)
libiconv-1.8nb1     character set conversion library
gettext-lib-0.11.5  tools for providing messages in different languages,
libintl
gtexinfo-4.6        GNU info file manipulation utilities
gmake-3.80nb1       GNU version of 'make' utility
gcc3-3.3nb1         GNU Compiler Collection
perl-5.6.1nb8       Practical Extraction and Report Language
gettext-m4-0.11.5   autoconf/automake m4 files for GNU NLS library
gettext-0.11.5nb2   tools for providing messages in different languages
pkgconfig-0.15.0    system for managing library compile/link flags
# pwd
/usr/pkgsrc/devel/glib2
# bmake extract
===> *** No /usr/pkgsrc/distfiles/vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
=> Checksum OK for glib-2.2.2.tar.bz2.
===> Extracting for glib2-2.2.2
===> Required installed package perl>=5.0: perl-5.6.1nb8 found
===> Required installed package libiconv>=1.8: libiconv-1.8nb1 found
===> Required installed package gettext-lib>=0.11.5: gettext-lib-0.11.5
found
===> Required installed package gmake>=3.78: gmake-3.80nb1 found
===> Required installed package libtool-base>=1.4.20010614nb11:
libtool-base-1.4.20010614nb14 found
===> Required installed package gettext>=0.10.35nb1: gettext-0.11.5nb2
found
===> Required installed package pkgconfig>=0.15.0: pkgconfig-0.15.0 found
# bmake patch
===> *** No /usr/pkgsrc/distfiles/vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Patching for glib2-2.2.2
===> Applying pkgsrc patches for glib2-2.2.2
# bmake configure
===> *** No /usr/pkgsrc/distfiles/vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Buildlinking for glib2-2.2.2
===> Configuring for glib2-2.2.2
configure: WARNING: If you wanted to set the --build type, don't use
--host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/ucb/install -c -o root -g
root
checking whether build environment is sane... yes
checking whether /usr/pkg/bin/gmake sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no

checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2
checking for the BeOS... no
checking for Win32... no
checking whether to enable garbage collector friendliness... no
checking whether to disable memory pools... no
checking for sparc-sun-solaris-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for c++... g++
checking for sparc-sun-solaris-g++... (cached) g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/ucb/install -c -o root -g
root
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for pkg-config... /usr/pkg/bin/pkg-config
checking for gawk... /usr/bin/nawk
checking for perl5... no
checking for perl... perl
checking for indent... no
checking for perl... /usr/pkg/bin/perl
checking for iconv_open... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for dgettext in -lintl... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/pkg/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/pkg/bin/msgfmt
checking for xgettext... /usr/pkg/bin/xgettext
checking for bind_textdomain_codeset... (cached) yes
checking for catalogs to be installed...  am az be bg bn ca cs cy da de el
es et eu fa fi fr gl he hi id it ja ko li lv mk ml mn ms nl nn no pl pt
pt_BR ro ru sk sl sq sr sr@Latn sv ta tr uk vi yi zh_CN zh_TW
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... no
checking for ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for sparc-sun-solaris-g77... f77
checking whether we are using the GNU Fortran 77 compiler... no
checking whether f77 accepts -g... no
checking the maximum length of command line arguments... 262144
checking command to parse nm output from gcc object... failed
checking for objdir... .libs
checking for sparc-sun-solaris-ar... no
checking for ar... ar
checking for sparc-sun-solaris-ranlib... no
checking for ranlib... ranlib
checking for sparc-sun-solaris-strip... no
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... ld
checking if the linker (ld) is GNU ld... no
checking whether the g++ linker (ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2 ld.so
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... no
checking if f77 supports -c -o file.o... no
checking whether the f77 linker (ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... ./configure[16702]: f77:  not
found
solaris2 ld.so
checking for extra flags to get ANSI library prototypes... none needed
checking for extra flags for POSIX compliance... none needed
checking for ANSI C header files... (cached) yes
checking for vprintf... yes
checking for _doprnt... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for atexit... yes
checking for on_exit... no
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for int... yes
checking size of int... 4
checking for void *... yes
checking size of void *... 4
checking for long long... yes
checking size of long long... 8
checking for __int64... no
checking size of __int64... 0
checking for format to printf and scanf a guint64... %llu
checking for an ANSI C-conforming const... yes
checking if malloc() and friends prototypes are gmem.h compatible... yes
checking for growing stack pointer... no
checking for __inline... yes
checking for __inline__... yes
checking for inline... yes
checking for ISO C99 varargs macros in C... yes
checking for ISO C99 varargs macros in C++... yes
checking for GNUC varargs macros... yes
checking whether byte ordering is bigendian... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for stdint.h... (cached) no
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking for nl_langinfo and CODESET... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for setlocale... yes
checking whether make is GNU Make... no
checking for size_t... yes
checking size of size_t... 4
checking for the appropriate definition for size_t... unsigned int
checking for lstat... yes
checking for strerror... yes
checking for strsignal... yes
checking for memmove... yes
checking for mkstemp... yes
checking for vsnprintf... yes
checking for stpcpy... no
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for poll... yes
checking for getcwd... yes
checking for nanosleep... no
checking for vasprintf... no
checking for unsetenv... no
checking for getc_unlocked... yes
checking for C99 vsnprintf... yes
checking whether printf supports positional parameters... yes
checking for sys_errlist... yes
checking for sys_siglist... no
checking for sys_siglist declaration... no
checking for fd_set... yes, found in sys/types.h
checking whether realloc (NULL,) will work... yes
checking for nl_langinfo (CODESET)... yes
checking for OpenBSD strlcpy/strlcat... no
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... yes
checking for dlopen... no
checking for NSLinkModule... no
checking for dlopen in -ldl... yes
checking for dlsym in -ldl... yes
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 cond_init in -lthread... yes
checking for thread implementation... solaris
checking thread related cflags... -threads
checking thread related libraries... -threads
checking for localtime_r... yes
checking for posix getpwuid_r... no
checking for nonposix getpwuid_r... yes
checking size of thread_t... 4
checking size of mutex_t... 24
checking byte contents of DEFAULTMUTEX...
0,0,0,0,0,0,77,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
checking value of POLLIN... 1
checking value of POLLOUT... 4
checking value of POLLPRI... 2
checking value of POLLERR... 8
checking value of POLLHUP... 16
checking value of POLLNVAL... 32
checking for EILSEQ... yes
checking for gtkdoc-mkdb... false
checking for gtkdoc-mkdb... (cached) false
checking for db2html... false
configure: creating ./config.status
config.status: creating glib-2.0.pc
config.status: creating glib-2.0-uninstalled.pc
config.status: creating gmodule-2.0.pc
config.status: creating gmodule-2.0-uninstalled.pc
config.status: creating gthread-2.0.pc
config.status: creating gthread-2.0-uninstalled.pc
config.status: creating gobject-2.0.pc
config.status: creating gobject-2.0-uninstalled.pc
config.status: creating glib-zip
config.status: creating glib-gettextize
config.status: creating Makefile
config.status: creating build/Makefile
config.status: creating build/win32/Makefile
config.status: creating build/win32/dirent/Makefile
config.status: creating glib/Makefile
config.status: creating glib/libcharset/Makefile
config.status: creating glib/trio/Makefile
config.status: creating gmodule/gmoduleconf.h
config.status: creating gmodule/Makefile
config.status: creating gobject/Makefile
config.status: creating gobject/glib-mkenums
config.status: creating gthread/Makefile
config.status: creating po/Makefile.in
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/glib/Makefile
config.status: creating docs/reference/glib/version.xml
config.status: creating docs/reference/gobject/Makefile
config.status: creating docs/reference/gobject/version.xml
config.status: creating tests/Makefile
config.status: creating m4macros/Makefile
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default-3 commands
creating glibconfig.h
config.status: executing default commands
# bmake
===> *** No /usr/pkgsrc/distfiles/vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Building for glib2-2.2.2
/usr/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory `/usr/pkgsrc/devel/glib2/work/glib-2.2.2'
Making all in .
gmake[2]: Entering directory `/usr/pkgsrc/devel/glib2/work/glib-2.2.2'
cd . && CONFIG_FILES=glib-gettextize CONFIG_HEADERS= /bin/ksh
./config.status
config.status: creating glib-gettextize
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default-3 commands
config.status: executing default commands
cd . && CONFIG_FILES=glib-2.0.pc CONFIG_HEADERS= /bin/ksh ./config.status
config.status: creating glib-2.0.pc
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default-3 commands
config.status: executing default commands
cd . && CONFIG_FILES=gobject-2.0.pc CONFIG_HEADERS= /bin/ksh
./config.status
config.status: creating gobject-2.0.pc
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default-3 commands
config.status: executing default commands
cd . && CONFIG_FILES=gmodule-2.0.pc CONFIG_HEADERS= /bin/ksh
./config.status
config.status: creating gmodule-2.0.pc
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default-3 commands
config.status: executing default commands
cd . && CONFIG_FILES=gthread-2.0.pc CONFIG_HEADERS= /bin/ksh
./config.status
config.status: creating gthread-2.0.pc
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default-3 commands
config.status: executing default commands
gmake[2]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.2.2'
Making all in m4macros
gmake[2]: Entering directory
`/usr/pkgsrc/devel/glib2/work/glib-2.2.2/m4macros'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory
`/usr/pkgsrc/devel/glib2/work/glib-2.2.2/m4macros'
Making all in glib
gmake[2]: Entering directory
`/usr/pkgsrc/devel/glib2/work/glib-2.2.2/glib'
Making all in libcharset
gmake[3]: Entering directory
`/usr/pkgsrc/devel/glib2/work/glib-2.2.2/glib/libcharset'
/bin/ksh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
-DLIBDIR=\"/usr/pkg/lib\"  -I/usr/pkg/include -threads  -O
-I/usr/pkg/include -Wall -c localcharset.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DLIBDIR=\"/usr/pkg/lib\"
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c localcharset.c
-fPIC -DPIC -o .libs/localcharset.o
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DLIBDIR=\"/usr/pkg/lib\"
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c localcharset.c
-o localcharset.o >/dev/null 2>&1
/bin/ksh ../../libtool --mode=link gcc  -O -I/usr/pkg/include -Wall
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o libcharset.la   localcharset.lo
-lintl
libtool: link: warning:
`/usr/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.la' seems to be
moved
ar cru .libs/libcharset.a .libs/localcharset.o
ranlib .libs/libcharset.a
creating libcharset.la
(cd .libs && rm -f libcharset.la && ln -s ../libcharset.la libcharset.la)
sed -e '/^#/d' -e 's/@''PACKAGE''@/glib/g' ref-add.sin > t-ref-add.sed
mv t-ref-add.sed ref-add.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@/glib/g' ref-del.sin > t-ref-del.sed
mv t-ref-del.sed ref-del.sed
/bin/ksh ./config.charset 'sparc-sun-solaris2' > t-charset.alias
mv t-charset.alias charset.alias
gmake[3]: Leaving directory
`/usr/pkgsrc/devel/glib2/work/glib-2.2.2/glib/libcharset'
gmake[3]: Entering directory
`/usr/pkgsrc/devel/glib2/work/glib-2.2.2/glib'
/bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -I/usr/pkg/include -threads  -O -I/usr/pkg/include
-Wall -c garray.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c garray.c  -fPIC
-DPIC -o .libs/garray.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c garray.c -o
garray.o >/dev/null 2>&1
/bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -I/usr/pkg/include -threads  -O -I/usr/pkg/include
-Wall -c gasyncqueue.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gasyncqueue.c
-fPIC -DPIC -o .libs/gasyncqueue.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gasyncqueue.c
-o gasyncqueue.o >/dev/null 2>&1
/bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -I/usr/pkg/include -threads  -O -I/usr/pkg/include
-Wall -c gbacktrace.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gbacktrace.c
-fPIC -DPIC -o .libs/gbacktrace.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gbacktrace.c -o
gbacktrace.o >/dev/null 2>&1
/bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -I/usr/pkg/include -threads  -O -I/usr/pkg/include
-Wall -c gbsearcharray.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c
gbsearcharray.c  -fPIC -DPIC -o .libs/gbsearcharray.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gbsearcharray.c
-o gbsearcharray.o >/dev/null 2>&1
/bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -I/usr/pkg/include -threads  -O -I/usr/pkg/include
-Wall -c gcache.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gcache.c  -fPIC
-DPIC -o .libs/gcache.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gcache.c -o
gcache.o >/dev/null 2>&1
/bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -I/usr/pkg/include -threads  -O -I/usr/pkg/include
-Wall -c gcompletion.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gcompletion.c
-fPIC -DPIC -o .libs/gcompletion.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gcompletion.c
-o gcompletion.o >/dev/null 2>&1
/bin/ksh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..
-DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGLIB_COMPILATION   -I/usr/pkg/include -threads  -O -I/usr/pkg/include
-Wall -c gconvert.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -threads -O
-I/usr/pkgsrc/devel/glib2/work/.buildlink/include -Wall -c gconvert.c
-fPIC -DPIC -o .libs/gconvert.o
gconvert.c:46:2: #error GNU libiconv not in use but included iconv.h is
from libiconv
gconvert.c: In function `g_iconv':
gconvert.c:169: warning: passing arg 2 of `libiconv' from incompatible
pointer type
gmake[3]: *** [gconvert.lo] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.2.2/glib'

gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.2.2/glib'

gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/devel/glib2/work/glib-2.2.2'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Any ideas?

Thanks!