Re: [pgadmin-hackers] Re: [pgadmin-hackers] error: expected initializer before ‘!’ token

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Peter Geoghegan <peter(at)2ndquadrant(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgadmin-hackers] Re: [pgadmin-hackers] error: expected initializer before ‘!’ token
Date: 2011-03-12 19:13:03
Message-ID: 4D7BC5BF.30606@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Le 12/03/2011 07:07, Dave Page a écrit :
> On Sat, Mar 12, 2011 at 6:34 AM, Peter Geoghegan <peter(at)2ndquadrant(dot)com> wrote:
>> Hi,
>>
>> I attempted to build master this evening, but came up against this error:
>>
>> make[3]: Entering directory `/home/peter/pgadmin3/pgadmin'
>> g++ -DHAVE_CONFIG_H -I. -I..
>> -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\"
>> -I../pgadmin/include -I/usr/local/pgsql/include
>> -I/usr/local/pgsql/include -DHAVE_CONNINFO_PARSE
>> -I/usr/local/lib/wx/include/gtk2-unicode-debug-2.8
>> -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
>> -D__WXDEBUG__ -D__WXGTK__ -I/usr/include/libxml2
>> -I/usr/include/libxml2 -g -O0 -MT explainShape.o -MD -MP -MF
>> .deps/explainShape.Tpo -c -o explainShape.o `test -f
>> './ctl/explainShape.cpp' || echo './'`./ctl/explainShape.cpp
>> In file included from ./ctl/explainShape.cpp:32:0:
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:194:33: warning:
>> missing whitespace after the macro name
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:203:33: warning:
>> missing whitespace after the macro name
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:203:0: warning:
>> "ex_hash_setop_except_png" redefined
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:194:0: note: this
>> is the location of the previous definition
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:215:33: warning:
>> missing whitespace after the macro name
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:215:0: warning:
>> "ex_hash_setop_except_png" redefined
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:203:0: note: this
>> is the location of the previous definition
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:4:52: error:
>> expected initializer before ‘!’ token
>> ../pgadmin/include/images/ex_hash_setop_except.pngc:182:41: error:
>> expected initializer before ‘!’ token
>>
>> No doubt this has something to do with the XPM/PNG thing. Are you aware of this?
>
> Nope - works fine here. Can you see the problem? I don't see anything
> unusual in pgadmin/include/images/ex_hash_setop_except.pngc here.
>

Maybe a stupid question but what is the ! in the variable name
(ex_hash_setop_except_png!_data)?

Anyway, I have the same issue:

In file included from ./ctl/explainShape.cpp:32:
../pgadmin/include/images/ex_hash_setop_except.pngc:194: warning:
missing whitespace after the macro name
../pgadmin/include/images/ex_hash_setop_except.pngc:203: warning:
missing whitespace after the macro name
../pgadmin/include/images/ex_hash_setop_except.pngc:203: warning:
"ex_hash_setop_except_png" redefined
../pgadmin/include/images/ex_hash_setop_except.pngc:194: note: this is
the location of the previous definition
../pgadmin/include/images/ex_hash_setop_except.pngc:215: warning:
missing whitespace after the macro name
../pgadmin/include/images/ex_hash_setop_except.pngc:215: warning:
"ex_hash_setop_except_png" redefined
../pgadmin/include/images/ex_hash_setop_except.pngc:203: note: this is
the location of the previous definition
[...]
g++ -DHAVE_CONFIG_H -I. -I..
-DDATA_DIR=\"/opt/pgadmin-trunk/share/pgadmin3/\" -I../pgadmin/include
-I/opt/postgresql-head/include -I/opt/postgresql-head/include -DSSL
-DHAVE_CONNINFO_PARSE
-I/opt/wxgtk-2.8/lib/wx/include/gtk2-unicode-debug-2.8
-I/opt/wxgtk-2.8/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXDEBUG__ -D__WXGTK__ -I/usr/include/libxml2 -I/usr/include/libxml2
-g -O0 -MT xh_ctlcolourpicker.o -MD -MP -MF
.deps/xh_ctlcolourpicker.Tpo -c -o xh_ctlcolourpicker.o `test -f
'./ctl/xh_ctlcolourpicker.cpp' || echo './'`./ctl/xh_ctlcolourpicker.cpp
../pgadmin/include/images/ex_hash_setop_except.pngc:4: error: expected
initializer before ‘!’ token
../pgadmin/include/images/ex_hash_setop_except.pngc:182: error: expected
initializer before ‘!’ token
make[3]: *** [explainShape.o] Error 1

gcc --version
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5

--
Guillaume
http://www.postgresql.fr
http://dalibo.com

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2011-03-12 20:22:38 Re: [pgadmin-hackers] Re: [pgadmin-hackers] error: expected initializer before ‘!’ token
Previous Message pgAdmin Trac 2011-03-12 09:36:55 [pgAdmin III] #312: Feature request: ability to set hostaddr