Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > problems with making ez-ipupdate on OS X 10.1.4

problems with making ez-ipupdate on OS X 10.1.4
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Colorado
Status: Offline
Reply With Quote
May 1, 2002, 05:14 AM
 
Hey,

I am trying to build ez-ipupdate for my computer. I had some problems running the developers configure script but once I copied over config.guess and .sub I was ready to make. I get an error output which is on the following code:

cc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ez-ipupdate.c
ez-ipupdate.c:192: bad macro argument list
ez-ipupdate.c:186: bad macro argument list
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode


#if !defined(__GNUC__) && !defined(HAVE_SNPRINTF)
#error "get gcc, fix this code, or find yourself a snprintf!"
#else
# if HAVE_SNPRINTF
# define snprintf(x, y, z...) snprintf(x, y, ## z) #186
# else
# define snprintf(x, y, z...) sprintf(x, ## z)
# endif
#endif
#if HAVE_VSNPRINTF
# define vsnprintf(x, y, z...) vsnprintf(x, y, ## z) #192
#else
# define vsnprintf(x, y, z...) vsprintf(x, ## z)
#endif


I have talked with the developer and one response was:
you'll notice that you don't have an snprintf
...
I guess apple is defining __GNUC__ but not using gcc as the compiler.

I told him that his configure script said I have both vsnprintf and snprintf.

I am at a loss now since I haven't used either function but I seem to have them. Any ideas on how to get this to work? Should I use another compiler other than the apple developer tools? is there one?
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
May 1, 2002, 01:42 PM
 
setenv CPPFLAGS -no-cpp-precomp; ./configure

Apple is using gcc, the problem here is that it wrote its own cpp for doing precompiled-headers. Unforunately, apple's cpp-precomp fails under some common circumstances.
     
uosdwis  (op)
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Colorado
Status: Offline
Reply With Quote
May 1, 2002, 03:06 PM
 
Thanks Angus, that got it working - well it compiled at least. I still have to try it out later today.

cheers
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:52 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2