473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

missing initializer?

Hello,

I'm compiling something with GCC 4.4.1
Here I got some error from make.
It says:

ngx_wsgi.c:291: error: missing initializer
ngx_wsgi.c:291: error: (near initialization for ‘Log_Type.tp_version_tag’)

This is the content of line 233 to 291:
Expand|Select|Wrap|Line Numbers
  1. static PyTypeObject Log_Type = {
  2.   /* The ob_type field must be initialized in the module init function
  3.    * to be portable to Windows without using C++. */
  4.   PyObject_HEAD_INIT(NULL)
  5.   0,                      /*ob_size*/
  6.   "ngx_wsgi.Log",         /*tp_name*/
  7.   sizeof(LogObject),      /*tp_basicsize*/
  8.   0,                      /*tp_itemsize*/
  9.   /* methods */
  10.   (destructor)Log_dealloc,  /*tp_dealloc*/
  11.   0,                      /*tp_print*/
  12.   0,                      /*tp_getattr*/
  13.   0,                      /*tp_setattr*/
  14.   0,                      /*tp_compare*/
  15.   0,                      /*tp_repr*/
  16.   0,                      /*tp_as_number*/
  17.   0,                      /*tp_as_sequence*/
  18.   0,                      /*tp_as_mapping*/
  19.   0,                      /*tp_hash*/
  20.   0,                      /*tp_call*/
  21.   0,                      /*tp_str*/
  22.   0,                      /*tp_getattro*/
  23.   0,                      /*tp_setattro*/
  24.   0,                      /*tp_as_buffer*/
  25.   Py_TPFLAGS_DEFAULT,     /*tp_flags*/
  26.   0,                      /*tp_doc*/
  27.   0,                      /*tp_traverse*/
  28.   0,                      /*tp_clear*/
  29.   0,                      /*tp_richcompare*/
  30.   0,                      /*tp_weaklistoffset*/
  31.   0,                      /*tp_iter*/
  32.   0,                      /*tp_iternext*/
  33.   Log_methods,            /*tp_methods*/
  34.   0,                      /*tp_members*/
  35.   0,                      /*tp_getset*/
  36.   0,                      /*tp_base*/
  37.   0,                      /*tp_dict*/
  38.   0,                      /*tp_descr_get*/
  39.   0,                      /*tp_descr_set*/
  40.   0,                      /*tp_dictoffset*/
  41.   0,                      /*tp_init*/
  42.   0,                      /*tp_alloc*/
  43.   0,                      /*tp_new*/
  44.   0,                      /*tp_free*/
  45.   0,                      /*tp_is_gc*/
  46.   0,                      /*tp_bases*/
  47.   0,                      /*tp_mro*/
  48.   0,                      /*tp_cache*/
  49.   0,                      /*tp_subclasses*/
  50.   0,                      /*tp_weaklis*/
  51.   0,                      /*tp_del*/
  52. #ifdef COUNT_ALLOCS
  53.   0,                      /*tp_allocs*/
  54.   0,                      /*tp_frees*/
  55.   0,                      /*tp_maxalloc*/
  56.   0,                      /*tp_prev*/
  57.   0,                      /*tp_next*/
  58. #endif
  59. };
  60.  

What do you think is the problem?
Any suggestion?
Sep 26 '09 #1
1 3634
Savage
1,764 Expert 1GB
Looks like you have forgot to initialize tp_version_tag element of the structure.
Sep 26 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Alexander Stippler | last post by:
Hi, I wonder about the behaviour of como and icc on some very simple program. I thought initializing members of classes, which are of class type, would be 'direct initialized' (as the standard...
2
by: Todd Nathan | last post by:
Hi. have this code and compiler problem. GCC 2.95.3, BeOS, error "initializer element is not constant" #ifdef FILEIO { static struct { char *sfn; FILE *sfd; } stdfiles = {
3
by: Old Wolf | last post by:
For the following code: struct S { char t; int flags; }; void func(void) {
9
by: Player | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all. I am in the process of teaching myself C# and I think I am doing OK. I have learnt how to how to call the right constructor of a...
12
by: Pawel | last post by:
Hallo group members Could You tell hw to write this code in order not to get warning from subject: #include <iostream> using namespace std; using namespace __gnu_cxx; struct entry {
3
by: Ham Pastrami | last post by:
class Point { public: const int x, y; Point(int x, int y); } Point::Point(int x, int y) : x(x), y(y) { }
4
by: Roman Mashak | last post by:
Hello, say I've a code: .... struct device_defs { unsigned int vendor; unsigned int dev; unsigned int mask; unsigned long data; };
6
by: Marvin Barley | last post by:
I have a class that throws exceptions in new initializer, and a static array of objects of this type. When something is wrong in initialization, CGI program crashes miserably. Debugging shows...
9
by: dissectcode | last post by:
I couldn't find an anser on google...The following code is a tiny made-up example showing the problem I am looking at, at work. I have a struct: struct door_t { BOOL color; BOOL size; ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.