Originally posted by: ctremel
while trying to build against glib2 the following error is thrown.
Glib headers inconsistent with current compiler setting. You might be using 32 bit Glib with a 64 bit compiler, check PKG_CONFIG_PATH
build section from spec file:
%build
export OBJECT_MODE=32
export CC="/usr/bin/xlc_r"
export CFLAGS="-O"
export AR="/usr/bin/ar -X32"
export RANLIB="/usr/bin/ranlib -X32"
export NM="/usr/bin/nm -X32"
export LD="/usr/bin/ld"
export OPENSSL_CFLAGS="-I/usr/include/openssl"
export OPENSSL_LIBS="-L/usr/lib -lssl"
export LDFLAGS="-L/opt/freeware/lib -L/opt/freeware/lib64 -Wl,-blibpath:/opt/freeware/lib:/opt/freeware/lib64:/usr/lib:/lib -Wl,-bnoquiet -Wl,-berok"
./configure \
--prefix=%{_prefix} \
--sbindir=%{sbindir} \
--datadir=%{_datadir}/%{name} \
--mandir=%{_mandir} \
--sysconfdir=/etc/%{name} \
--localstatedir=/var/lib/%{name} \
--disable-spoof-source \
--enable-dynamic-linking
cd lib
gmake
cd ..
cd modules
gmake LIBS="-L%{_libdir} -lglib-2.0 -levtlog ../../lib/libsyslog-ng.la"
cd ..
gmake
how to proceed here?