Search the web
Sign In
New User? Sign Up
ClearSilver
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Compile ClearSilver on System i   Message List  
Reply | Forward Message #1309 of 1347 |
Re: Compile ClearSilver on System i

I suspect the real problem is with the other macros __PRETTY_FUNCTION, __FILE__
and __LINE__. These are magic macros defined by some compilers, but they might
not be defined by your compiler. You can try to make the compile work simply by
replaceing these arguments with actual values. Try replacing this:

nerr_raisef(__PRETTY_FUNCTION__ , __FILE__ , __LINE__ , e , f , __VA_ARGS__)

With this:

nerr_raisef("test", "test" , "test" , e , f , __VA_ARGS__)

-- Schmidt, Mihael wrote:
> Question: Why is dict.c calling nerr_raise with only 2 parm. Shouldn't it be
> three parms (error type, format string and error message)? I definitely got
> something wrong but I don't know what?

nerr_raise() is setup to work like the printf() family of functions. For
example, you might have:

nerr_raise(NERR_ASSERT, "problematic value %d", local_variable_int);

Because the statement you referenced has no % formatting, it has no arguments.
nerr_raise(NERR_ASSERT, "value or new are NULL");



Fri Jun 12, 2009 2:56 am

jeskeca
Offline Offline
Send Email Send Email

Forward
Message #1309 of 1347 |
Expand Messages Author Sort by Date

Hi, I'm trying to compile ClearSilver on a System i platform. The compiler is C89 compatible (AFAIK). I am compiling the stuff manually, starting with the util...
Schmidt, Mihael
Mihael.Schmidt@...
Send Email
Jun 11, 2009
2:47 pm

I suspect the real problem is with the other macros __PRETTY_FUNCTION, __FILE__ and __LINE__. These are magic macros defined by some compilers, but they might ...
David Jeske
jeskeca
Offline Send Email
Jun 12, 2009
3:08 am

... it be ... definitely got ... nerr_raise() is setup to work like the printf() family of functions. For example, you might have: nerr_raise(NERR_ASSERT,...
Schmidt, Mihael
Mihael.Schmidt@...
Send Email
Jun 12, 2009
5:18 am

oh... it is util/ulocks.c (not util.ulock.c) I compiled clearsilver on a linux system and took the cs_config.h from it (and modified it a little bit). Now i...
Schmidt, Mihael
Mihael.Schmidt@...
Send Email
Jun 12, 2009
5:34 am

After some searching on the web I found that HAVE_LOCKF is queried in Clearsilver.h. There is seems that ulock, rcfs, dict and skiplist are optional (are not...
Schmidt, Mihael
Mihael.Schmidt@...
Send Email
Jun 12, 2009
5:45 am

Yes, they aren't necessary for the template system or cgi code, they're just extra. Brandon ... -- "This universe never did make sense; I suspect it was built...
Brandon Long
blong42
Offline Send Email
Jun 12, 2009
4:34 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help