Re: Glib2 doesn't compile on OS X (Leopard Intel)



It's not. The strangest thing happened..

I've just untarred the source package, and set the following ( export CC=gcc-4.2 CPPFLAGS="-I/opt/wansecurity/include" LDFLAGS="-L/opt/ wansecurity/lib")

gettext is installed with prefix /opt/wansecurity, rerun configure and it completed successfully. make also completed successfully!

So these are the compiler related options set in the environment now:

----------
CC=gcc-4.2
CPPFLAGS="-I/opt/wansecurity/include"
LDFLAGS="-L/opt/wansecurity/lib"
DYLD_LIBRARY_PATH=/usr/local/lib:
----------


But, when set to the following:

----------
LD_LIBRARY_PATH=/opt/wansecurity/lib:/opt/wansecurity/ssl/lib:/opt/ wansecurity/mysql/lib:/opt/wansecurity/pgsql/lib:/usr/local/lib:/usr/lib
CFLAGS=-O2 -fPIC
CXXFLAGS=
CPP=
CXXCPP=
CC=gcc
CXX=g++
LDFLAGS=-L/opt/wansecurity/lib -L/opt/wansecurity/ssl/lib
CPPFLAGS=-I/opt/wansecurity/include -I/opt/wansecurity/ssl/include
----------

The configure fails.

-Robert

On Oct 14, 2008, at 9:43 PM, Richard Hult wrote:

Robert Smith wrote:
Can anyone tell me how to get this compiled under OS X?

Hi,

checking size of char... 0 checking size of short... 0 checking size of long... 0 checking size of int... 0 checking size of void *... 0 checking size of long long... 0 checking size of __int64... 0 configure: error:

Is this a macports build? There is a bug in macports about this issue (caused by some unrelated linking issues):

http://trac.macports.org/ticket/13614

Regards,
Richard

--
Imendio AB - Expert solutions in GTK+
http://www.imendio.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]