Now it works like a charm. Big thanks.
lisu
W dniu 10.09.2010 06:32, Jiri Lebl pisze:
> Wow that is some good detective work!
>
> It is odd that it doesn't happen on my box since it seems like that
> define does exist in my term.h. Probably some more complicated
> interaction happens.
>
> This is incredibly evil! I will fix it up and make a new tarball quickly.
>
> Jiri
>
> 2010/9/9 Stephan Hegel <stephan.hegel_at_gmx.de>:
>> Hi Jiri,
>>
>> The culprit is
>> gel_ask_buttons (const char *query, GSList *buttons)
>> and the Preprocessor.
>>
>> When I run only the preprocessor over genius.c the following surprising
>> line is printed out:
>> gel_ask_buttons (const char *query, GSList *cur_term->type. Numbers[30])
>>
>> The string "buttons" is just replaced and this comes from the ncurses
>> library:
>> term.h:#define buttons CUR Numbers[30]
>>
>> Do I replace "buttons" by "buttonlist" gcc -E comes out as expected with
>> gel_ask_buttons (const char *query, GSList *buttonlist)
>> and everything compiles fine.
>>
>> It took me more than an hour to figure this out ...
>>
>> Regards from Chemnitz / Germany,
>> Stephan.
>>
>>
>>
>> On 09/09/2010 06:53 PM, Jiri Lebl wrote:
>>>
>>> This is totally odd. I don't see how that line of code could possibly
>>> fail. Plus it works on my box even if I try the same compiler options
>>> here. Can you tell me what versions of glib, gtk, etc.. you have?
>>>
>>> Jiri
>>>
>>> 2010/9/9 Michał Lisowski<michal_lisowski_at_etop.pl>:
>>>>
>>>> i686-pld-linux-gcc -DHAVE_CONFIG_H -I. -I..
>>>> -DGNOMELOCALEDIR=\""/usr/share/locale"\" -DG_LOG_DOMAIN=\"Genius\"
>>>> -DDATADIR=\""/usr/share"\" -DLIBEXECDIR=\""/usr/lib"\"
>>>> -DBUILDDIR=\""/home/users/lisu/rpm/BUILD/genius-1.0.10"\" -I. -I..
>>>> -I../ve -I../gtkextra -I.. -I../ve -I../gtkextra -I/usr/include
>>>> -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
>>>> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
>>>> -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
>>>> -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
>>>> -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread
>>>> -I/usr/include/gtksourceview-2.0 -I/usr/include/libxml2
>>>> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
>>>> -I/usr/include/cairo -I/usr/include/pango-1.0
>>>> -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
>>>> -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
>>>> -I/usr/include/freetype2 -I/usr/include/libpng14 -D_FORTIFY_SOURCE=2
>>>> -finline-functions -frename-registers -O2 -fno-strict-aliasing -fwrapv
>>>> -march=i686 -mtune=pentium4 -gdwarf-3 -g2 -MT genius.o -MD -MP -MF
>>>> .deps/genius.Tpo -c -o genius.o genius.c
>>>> genius.c:233:45: error: expected ';', ',' or ')' before '->' token
>>>> make[3]: *** [genius.o] Error 1
>>>>
>>>> Why?
>>>>
>>>> --
>>>> Serdecznie pozdrawiam,
>>>> Michał Lisowski
>>>> Administrator Systemów Linux
>>>>
>>>> eTOP Sp. z o.o.
>>>> Al. Jerozolimskie 200 02-222 Warszawa
>>>>
>>>> telefon 0801 08 1221 (koszt za minutę jak za połączenie lokalne)
>>>> telefon bezpośredni 022 5780 103
>>>> telefon komórkowy 604 628 428
>>>> telefax 022 5780 101
>>>> http://www.etop.pl
>>>> mailto:mlisowski_at_etop.pl
>>>>
>>>>
>>>> Regon 016310320 NIP 522-25-50-755 KRS 0000029426
>>>> Sąd Rejonowy dla m. st. Warszawy, XIII Wydział Gospodarczy KRS
>>>> Kapitał zakładowy 75000 PLN
>>>> Alior Bank S.A., konto nr 21 2490 0005 0000 4530 2063 5290
>>>>
>>>>
>>>>
>>>> --
>>>> to unsubscribe:
>>>> send mail to minimalist_at_5z.com with "unsubscribe genius-list" in the
>>>> subject
>>>>
>>>
>>>
>>>
>>
>
>
>
-- Serdecznie pozdrawiam, Michał Lisowski Administrator Systemów Linux eTOP Sp. z o.o. Al. Jerozolimskie 200 02-222 Warszawa telefon 0801 08 1221 (koszt za minutę jak za połączenie lokalne) telefon bezpośredni 022 5780 103 telefon komórkowy 604 628 428 telefax 022 5780 101 http://www.etop.pl mailto:mlisowski_at_etop.pl Regon 016310320 NIP 522-25-50-755 KRS 0000029426 Sąd Rejonowy dla m. st. Warszawy, XIII Wydział Gospodarczy KRS Kapitał zakładowy 75000 PLN Alior Bank S.A., konto nr 21 2490 0005 0000 4530 2063 5290Received on Fri Sep 10 2010 - 01:49:00 CDT
This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:00:03 CDT