Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » glib 1.2.10

UBBFriend: Email this page to someone!    
Author Topic: glib 1.2.10
psyba
Junior Member
Member # 193

posted October 26, 2001 04:48 PM      Profile for psyba   Email psyba   Send New Private Message      Edit/Delete Post  Reply With Quote 
While trying to compile GAIM, I needed to get GTK and Glib, but the ones here aren't really working for me... So i am trying to compile the latest builds myself. I get GTK to compile fine if I skip the glib test with the glib binary here, but I get some error about -ldl that installs with glib? when trying to compile GAIM and with GTK with the glib test? Anyways, i get this error when I 'make' glib:

code:
 /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -c giounix.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -c giounix.c -o giounix.o
giounix.c:1317: bad macro argument list
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[2]: *** [giounix.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

what the hell is this I've been trying to get tons of help with this, someone said it might have somethign to do with m4.... I don't know, but plz help, thanks


Posts: 14 | From: Lewiston, Maine | Registered: Oct 2001  |  IP: Logged
apex
Administrator
Member # 1

posted November 25, 2001 06:05 PM      Profile for apex   Email apex   Send New Private Message      Edit/Delete Post  Reply With Quote 
The answer is the very first problem listed on http://macosx.forked.net/comp.html .
Posts: 307 | From: Alaska | Registered: Aug 2001  |  IP: Logged
Dark Ryder
Junior Member
Member # 259

posted December 13, 2001 11:21 AM      Profile for Dark Ryder     Send New Private Message      Edit/Delete Post  Reply With Quote 
Not quite... the error that the fix is listed for is "Undefined Macro argument list", and the fix (--no-cpp-precomp) has no effect on the "bad macro argument list" encountered in the glib-1.2.10 install. I've run into it, too.

code:

Making install in .
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall --no-cpp-precomp -c giounix.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall --no-cpp-precomp -c giounix.c -o giounix.o
giounix.c:1317: bad macro argument list
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[1]: *** [giounix.lo] Error 1
make: *** [install-recursive] Error 1

Note that --no-cpp-precomp is listed in the compile statement.

[ December 13, 2001: Message edited by: Dark Ryder ]


Posts: 4 | Registered: Dec 2001  |  IP: Logged
Dark Ryder
Junior Member
Member # 259

posted December 17, 2001 03:19 PM      Profile for Dark Ryder     Send New Private Message      Edit/Delete Post  Reply With Quote 
Solved!

Although I was never able to get "--no-cpp-precomp" to work, adding "--traditional-cpp" to CFLAGS allows compilation to proceed, though at a noticably slower rate.

Interestingly, I have since run into other programs with "bad macro argument list" errors, but --no-cpp-precomp has worked fine on them.


Posts: 4 | Registered: Dec 2001  |  IP: Logged
eikay
Junior Member
Member # 346

posted March 01, 2002 07:48 AM      Profile for eikay        Edit/Delete Post  Reply With Quote 

[ March 01, 2002: Message edited by: eikay ]


Posts: 2 | Registered: Mar 2002  |  IP: Logged
<KidGloves>
unregistered

posted April 28, 2002 07:14 PM           Edit/Delete Post  Reply With Quote 
Editing the CFLAG in the Makefile didn't work for me, (probably multiple entries?). I had to set the CFLAG before the ./configure like so:

env CFLAGS=-no-cpp-precomp ./configure

I was then able to compile pkgconfig-0.12.0 without a problem.

thanks for your help all
ciao
jeff


IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2