* [mdk-re] include_next, kdevelop и все такое @ 2001-04-29 3:22 Dmitry Samoyloff 2001-04-29 12:03 ` Sergey Vlasov 0 siblings, 1 reply; 8+ messages in thread From: Dmitry Samoyloff @ 2001-04-29 3:22 UTC (permalink / raw) To: mandrake-russian Здравствуйте! Извиняйте за оффтопик, но это появилось после установки Spring и кто-то, может быть, знает в чем дело. Во-первых, мой Qt/KDE-проект стал выдавать такие вот warnings: In file included from /usr/lib/qt2/include/qwindowdefs.h:48, <...> /usr/include/limits.h:124:3: warning: ISO C does not allow #include_next В /usr/include/limits.h написано следующее: #if defined __GNUC__ && !defined _GCC_LIMITS_H_ /* `_GCC_LIMITS_H_' is what GCC's file defines. */ # include_next <limits.h> Думаю, что-то надо подкрутить в configure.in или где-то рядом :-) Помогите pls, а то в проекте полсотни исходных файлов -- и почти каждый ругается, ужас просто! И еще, в kdevelop появился глюк (хотя я в MdkRE-7.0 пользовался тоже kdevelop-1.3 и этого не было). У меня все проекты хранятся в /home/dmitry/cpp. Так вот, тыкаешь в ошибку или предупреждение в протоколе компиляции, а он говорит: /home/dmitry/cpp/project/file.cpp File does not exist! Путь к файлу, на самом деле, должен быть /home/dmitry/cpp/project/project/file.cpp. Странно, у кого-нибудь так было? Я уже и проект пересоздавал, и так и сяк, и без файлов и по шаблону -- все то же! >:-[ То, что создано из шаблона работает нормально, а если удалить оттуда файлы, да добавить свои -- опять начинается по-старому. С уважением, Дмитрий Самойлов ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mdk-re] include_next, kdevelop и все такое 2001-04-29 3:22 [mdk-re] include_next, kdevelop и все такое Dmitry Samoyloff @ 2001-04-29 12:03 ` Sergey Vlasov 2001-04-30 5:50 ` Dmitry Samoyloff 0 siblings, 1 reply; 8+ messages in thread From: Sergey Vlasov @ 2001-04-29 12:03 UTC (permalink / raw) To: mandrake-russian On Sun, 29 Apr 2001 02:21:06 +0400 Dmitry Samoyloff <dsamoyloff@mail.ru> wrote: > Здравствуйте! > > Извиняйте за оффтопик, но это появилось после установки Spring и кто-то, > может быть, знает в чем дело. Во-первых, мой Qt/KDE-проект стал выдавать > такие вот warnings: > > In file included from /usr/lib/qt2/include/qwindowdefs.h:48, > <...> > /usr/include/limits.h:124:3: warning: ISO C does not allow #include_next > > В /usr/include/limits.h написано следующее: > > #if defined __GNUC__ && !defined _GCC_LIMITS_H_ > /* `_GCC_LIMITS_H_' is what GCC's file defines. */ > # include_next <limits.h> > > Думаю, что-то надо подкрутить в configure.in или где-то рядом :-) > Помогите > pls, а то в проекте полсотни исходных файлов -- и почти каждый ругается, > ужас > просто! А с какими ключами вызывается компилятор? Похоже, что это виновата комбинация -ansi -pedantic c -I/usr/include. Кстати, надо бы найти, откуда берется -I/usr/include, и выкорчевать - даже в info gcc написано, что эта опция может вызывать глюки. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mdk-re] include_next, kdevelop и все такое 2001-04-29 12:03 ` Sergey Vlasov @ 2001-04-30 5:50 ` Dmitry Samoyloff 2001-04-30 12:11 ` [mdk-re] " Alexander Bokovoy 0 siblings, 1 reply; 8+ messages in thread From: Dmitry Samoyloff @ 2001-04-30 5:50 UTC (permalink / raw) To: mandrake-russian 29 Апрель 2001 12:06, Sergey Vlasov wrote: > On Sun, 29 Apr 2001 02:21:06 +0400 > > Dmitry Samoyloff <dsamoyloff@mail.ru> wrote: > > Здравствуйте! > > > > Извиняйте за оффтопик, но это появилось после установки Spring и кто-то, > > может быть, знает в чем дело. Во-первых, мой Qt/KDE-проект стал выдавать > > такие вот warnings: > > > > In file included from /usr/lib/qt2/include/qwindowdefs.h:48, > > <...> > > /usr/include/limits.h:124:3: warning: ISO C does not allow #include_next > > > > В /usr/include/limits.h написано следующее: > > > > #if defined __GNUC__ && !defined _GCC_LIMITS_H_ > > /* `_GCC_LIMITS_H_' is what GCC's file defines. */ > > # include_next <limits.h> > > > > Думаю, что-то надо подкрутить в configure.in или где-то рядом :-) > > Помогите > > pls, а то в проекте полсотни исходных файлов -- и почти каждый ругается, > > ужас > > просто! > > А с какими ключами вызывается компилятор? Похоже, что это виновата > комбинация -ansi -pedantic c -I/usr/include. Кстати, надо бы найти, откуда > берется -I/usr/include, и выкорчевать - даже в info gcc написано, что эта > опция может вызывать глюки. Спасибо, что откликнулись на мой вопрос! Опции такие: g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/lib/qt2/include -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -O0 -g3 -Wall -c file.cpp Значит, нужно попробовать убрать -pedantic и -I/usr/include (странно, кстати, такой ведь безобидный ключик). Только вот эти опции генерятся автоматически из Makefile.am, а что в нем подправить -- не знаю :( Буду очень признателен за подсказку. С уважением, Дмитрий Самойлов ^ permalink raw reply [flat|nested] 8+ messages in thread
* [mdk-re] Re: [mdk-re] include_next, kdevelop и все такое 2001-04-30 5:50 ` Dmitry Samoyloff @ 2001-04-30 12:11 ` Alexander Bokovoy 2001-04-30 12:45 ` Sergey Vlasov 0 siblings, 1 reply; 8+ messages in thread From: Alexander Bokovoy @ 2001-04-30 12:11 UTC (permalink / raw) To: mandrake-russian On Mon, Apr 30, 2001 at 05:49:43AM +0400, Dmitry Samoyloff wrote: > 29 Апрель 2001 12:06, Sergey Vlasov wrote: > > On Sun, 29 Apr 2001 02:21:06 +0400 > > > > Dmitry Samoyloff <dsamoyloff@mail.ru> wrote: > > > Здравствуйте! > > > > > > Извиняйте за оффтопик, но это появилось после установки Spring и кто-то, > > > может быть, знает в чем дело. Во-первых, мой Qt/KDE-проект стал выдавать > > > такие вот warnings: > > > > > > In file included from /usr/lib/qt2/include/qwindowdefs.h:48, > > > <...> > > > /usr/include/limits.h:124:3: warning: ISO C does not allow #include_next > > > > > > В /usr/include/limits.h написано следующее: > > > > > > #if defined __GNUC__ && !defined _GCC_LIMITS_H_ > > > /* `_GCC_LIMITS_H_' is what GCC's file defines. */ > > > # include_next <limits.h> > > > > > > Думаю, что-то надо подкрутить в configure.in или где-то рядом :-) > > > Помогите > > > pls, а то в проекте полсотни исходных файлов -- и почти каждый ругается, > > > ужас > > > просто! > > > > А с какими ключами вызывается компилятор? Похоже, что это виновата > > комбинация -ansi -pedantic c -I/usr/include. Кстати, надо бы найти, откуда > > берется -I/usr/include, и выкорчевать - даже в info gcc написано, что эта > > опция может вызывать глюки. > > Спасибо, что откликнулись на мой вопрос! > Опции такие: > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/lib/qt2/include > -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new -Wall -pedantic > -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long > -fno-builtin -O0 -g3 -Wall -c file.cpp > > Значит, нужно попробовать убрать -pedantic и -I/usr/include (странно, кстати, > такой ведь безобидный ключик). Только вот эти опции генерятся автоматически > из Makefile.am, а что в нем подправить -- не знаю :( Буду очень признателен > за подсказку. -I/usr/include является отнюдь не безобидным ключем, ведь он вносит /usr/include в список директорий для поиска пользовательских файлов заголовков, причем в самое начало этого списка. Тем самым, Вы заставляете компилятор игнорировать, например, foo.h в /usr/lib/qt2/include, если он есть в /usr/include. -- Sincerely yours, Alexander Bokovoy The Midgard Project | ALT Linux Team | Minsk Linux Users Group www.midgard-project.org | www.altlinux.ru | www.minsk-lug.net -- You won't skid if you stay in a rut. -- Frank Hubbard ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mdk-re] Re: [mdk-re] include_next, kdevelop и все такое 2001-04-30 12:11 ` [mdk-re] " Alexander Bokovoy @ 2001-04-30 12:45 ` Sergey Vlasov 2001-05-03 12:30 ` [mdk-re] Re: [mdk-re] include_next, kdevelop и вс е такое Dmitry Samoyloff 0 siblings, 1 reply; 8+ messages in thread From: Sergey Vlasov @ 2001-04-30 12:45 UTC (permalink / raw) To: mandrake-russian; +Cc: devel On Mon, 30 Apr 2001 11:09:16 +0300 Alexander Bokovoy <ab@avilink.net> wrote: > On Mon, Apr 30, 2001 at 05:49:43AM +0400, Dmitry Samoyloff wrote: > > 29 Апрель 2001 12:06, Sergey Vlasov wrote: > > > On Sun, 29 Apr 2001 02:21:06 +0400 > > > > > > Dmitry Samoyloff <dsamoyloff@mail.ru> wrote: > > > > Здравствуйте! > > > > > > > > Извиняйте за оффтопик, но это появилось после установки Spring и > кто-то, > > > > может быть, знает в чем дело. Во-первых, мой Qt/KDE-проект стал > выдавать > > > > такие вот warnings: > > > > > > > > In file included from /usr/lib/qt2/include/qwindowdefs.h:48, > > > > <...> > > > > /usr/include/limits.h:124:3: warning: ISO C does not allow > #include_next > > > > > > > > В /usr/include/limits.h написано следующее: > > > > > > > > #if defined __GNUC__ && !defined _GCC_LIMITS_H_ > > > > /* `_GCC_LIMITS_H_' is what GCC's file defines. */ > > > > # include_next <limits.h> > > > > > > > > Думаю, что-то надо подкрутить в configure.in или где-то рядом :-) > > > > Помогите > > > > pls, а то в проекте полсотни исходных файлов -- и почти каждый > ругается, > > > > ужас > > > > просто! > > > > > > А с какими ключами вызывается компилятор? Похоже, что это виновата > > > комбинация -ansi -pedantic c -I/usr/include. Кстати, надо бы найти, > откуда > > > берется -I/usr/include, и выкорчевать - даже в info gcc написано, > что эта > > > опция может вызывать глюки. > > > > Спасибо, что откликнулись на мой вопрос! > > Опции такие: > > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/lib/qt2/include > > -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new -Wall > -pedantic > > -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long > > -fno-builtin -O0 -g3 -Wall -c file.cpp > > > > Значит, нужно попробовать убрать -pedantic и -I/usr/include (странно, > кстати, > > такой ведь безобидный ключик). Только вот эти опции генерятся > автоматически > > из Makefile.am, а что в нем подправить -- не знаю :( Буду очень > признателен > > за подсказку. > -I/usr/include является отнюдь не безобидным ключем, ведь он вносит > /usr/include в список директорий для поиска пользовательских файлов > заголовков, причем в самое начало этого списка. Тем самым, Вы > заставляете > компилятор игнорировать, например, foo.h в /usr/lib/qt2/include, > если он есть в /usr/include. В данном случае проблема не в таком конфликте, а в файлах из каталога /usr/lib/gcc-lib/i586-mandrake-linux/2.96/include/. Например, там есть limits.h от компилятора, а в /usr/include - от glibc, и они друг друга включают через #include_next. Но при обработке файлов из gcc-lib расширения gcc разрешены даже при использовании -pedantic, а в /usr/include возникает ругань. А вообще с -I/usr/include у меня были серьезные проблемы, когда цеплялся не тот db.h, который был нужен. И, кстати, подобная ошибка встречается во многих местах: $ gnome-config --cflags gnome -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include $ rpm -qf `which gnome-config` gnome-libs-devel-1.2.11-ipl4mdk $ gtkmm-config --cflags -I/usr/lib/gtkmm/include -I/usr/include -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/sigc++/include $ rpm -qf `which gtkmm-config` gtkmm-devel-1.2.5-ipl1mdk $ sane-config --cflags -I/usr/include $ rpm -qf `which sane-config` sane-1.0.4-ipl1mdk Так что возможностей нацеплять -I/usr/include хоть отбавляй. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mdk-re] Re: [mdk-re] include_next, kdevelop и вс е такое 2001-04-30 12:45 ` Sergey Vlasov @ 2001-05-03 12:30 ` Dmitry Samoyloff 2001-05-04 14:06 ` Sergey Vlasov 0 siblings, 1 reply; 8+ messages in thread From: Dmitry Samoyloff @ 2001-05-03 12:30 UTC (permalink / raw) To: mandrake-russian 30 Апрель 2001 12:48, Sergey Vlasov wrote: > On Mon, 30 Apr 2001 11:09:16 +0300 > > Alexander Bokovoy <ab@avilink.net> wrote: > > On Mon, Apr 30, 2001 at 05:49:43AM +0400, Dmitry Samoyloff wrote: > > > 29 Апрель 2001 12:06, Sergey Vlasov wrote: > > > > On Sun, 29 Apr 2001 02:21:06 +0400 > > > > > > > > Dmitry Samoyloff <dsamoyloff@mail.ru> wrote: > > > > > Здравствуйте! > > > > > > > > > > Извиняйте за оффтопик, но это появилось после установки Spring и > > > > кто-то, > > > > > > > может быть, знает в чем дело. Во-первых, мой Qt/KDE-проект стал > > > > выдавать > > > > > > > такие вот warnings: > > > > > > > > > > In file included from /usr/lib/qt2/include/qwindowdefs.h:48, > > > > > <...> > > > > > /usr/include/limits.h:124:3: warning: ISO C does not allow > > > > #include_next > > > > > > > В /usr/include/limits.h написано следующее: > > > > > > > > > > #if defined __GNUC__ && !defined _GCC_LIMITS_H_ > > > > > /* `_GCC_LIMITS_H_' is what GCC's file defines. */ > > > > > # include_next <limits.h> > > > > > > > > > > Думаю, что-то надо подкрутить в configure.in или где-то рядом :-) > > > > > Помогите > > > > > pls, а то в проекте полсотни исходных файлов -- и почти каждый > > > > ругается, > > > > > > > ужас > > > > > просто! > > > > > > > > А с какими ключами вызывается компилятор? Похоже, что это виновата > > > > комбинация -ansi -pedantic c -I/usr/include. Кстати, надо бы найти, > > > > откуда > > > > > > берется -I/usr/include, и выкорчевать - даже в info gcc написано, > > > > что эта > > > > > > опция может вызывать глюки. > > > > > > Спасибо, что откликнулись на мой вопрос! > > > Опции такие: > > > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/lib/qt2/include > > > -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new -Wall > > > > -pedantic > > > > > -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long > > > -fno-builtin -O0 -g3 -Wall -c file.cpp > > > > > > Значит, нужно попробовать убрать -pedantic и -I/usr/include (странно, > > > > кстати, > > > > > такой ведь безобидный ключик). Только вот эти опции генерятся > > > > автоматически > > > > > из Makefile.am, а что в нем подправить -- не знаю :( Буду очень > > > > признателен > > > > > за подсказку. > > > > -I/usr/include является отнюдь не безобидным ключем, ведь он вносит > > /usr/include в список директорий для поиска пользовательских файлов > > заголовков, причем в самое начало этого списка. Тем самым, Вы > > заставляете > > компилятор игнорировать, например, foo.h в /usr/lib/qt2/include, > > если он есть в /usr/include. > > В данном случае проблема не в таком конфликте, а в файлах из каталога > /usr/lib/gcc-lib/i586-mandrake-linux/2.96/include/. Например, там есть > limits.h от компилятора, а в /usr/include - от glibc, и они друг друга > включают через #include_next. Но при обработке файлов из gcc-lib > расширения gcc разрешены даже при использовании -pedantic, а в > /usr/include возникает ругань. > > А вообще с -I/usr/include у меня были серьезные проблемы, когда цеплялся > не тот db.h, который был нужен. > > И, кстати, подобная ошибка встречается во многих местах: > > $ gnome-config --cflags gnome > -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include > -I/usr/X11R6/include > $ rpm -qf `which gnome-config` > gnome-libs-devel-1.2.11-ipl4mdk > $ gtkmm-config --cflags > -I/usr/lib/gtkmm/include -I/usr/include -I/usr/lib/glib/include > -I/usr/X11R6/include -I/usr/lib/sigc++/include > $ rpm -qf `which gtkmm-config` > gtkmm-devel-1.2.5-ipl1mdk > $ sane-config --cflags > -I/usr/include > $ rpm -qf `which sane-config` > sane-1.0.4-ipl1mdk > > Так что возможностей нацеплять -I/usr/include хоть отбавляй. Спасибо, я узнал много нового! Но вот как мне повлиять на ситуацию (через Makefile.am?) я не знаю :( Подскажите, пожалуйста. То есть, как сгенерить нужные опции? С уважением, Дмитрий Самойлов ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mdk-re] Re: [mdk-re] include_next, kdevelop и вс е такое 2001-05-03 12:30 ` [mdk-re] Re: [mdk-re] include_next, kdevelop и вс е такое Dmitry Samoyloff @ 2001-05-04 14:06 ` Sergey Vlasov 2001-05-05 5:08 ` Dmitry Samoyloff 0 siblings, 1 reply; 8+ messages in thread From: Sergey Vlasov @ 2001-05-04 14:06 UTC (permalink / raw) To: mandrake-russian On Tue, 1 May 2001 07:06:58 +0400 Dmitry Samoyloff <dsamoyloff@mail.ru> wrote: [skipped] > Спасибо, я узнал много нового! Но вот как мне повлиять на ситуацию > (через > Makefile.am?) я не знаю :( Подскажите, пожалуйста. То есть, как > сгенерить > нужные опции? Я вообще-то kdevelop не использую, но вроде бы в нем были где-то настройки опций компилятора. Попробуйте убрать -pedantic, это не решит проблему полностью, но предупреждение уберет. Убирать -I/usr/include сложнее, надо ковыряться в configure.in и макросах, в них черт ногу сломит. Подозреваю, что это виноват тупой макрос поиска KDE. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mdk-re] Re: [mdk-re] include_next, kdevelop и вс е такое 2001-05-04 14:06 ` Sergey Vlasov @ 2001-05-05 5:08 ` Dmitry Samoyloff 0 siblings, 0 replies; 8+ messages in thread From: Dmitry Samoyloff @ 2001-05-05 5:08 UTC (permalink / raw) To: mandrake-russian 4 Май 2001 14:09, Sergey Vlasov wrote: > On Tue, 1 May 2001 07:06:58 +0400 > Dmitry Samoyloff <dsamoyloff@mail.ru> wrote: > > [skipped] > > > Спасибо, я узнал много нового! Но вот как мне повлиять на ситуацию > > (через > > Makefile.am?) я не знаю :( Подскажите, пожалуйста. То есть, как > > сгенерить > > нужные опции? > > Я вообще-то kdevelop не использую, но вроде бы в нем были где-то настройки > опций компилятора. Попробуйте убрать -pedantic, это не решит проблему > полностью, но предупреждение уберет. В настройках можно задать дополнительные параметры, а эти "вшиты" куда-то. > Убирать -I/usr/include сложнее, надо ковыряться в configure.in и макросах, > в них черт ногу сломит. Подозреваю, что это виноват тупой макрос поиска > KDE. Да, думаю Вы правы. Попробую спросить в рассылке kde. Так или иначе, спасибо за ответ. С уважением, Дмитрий Самойлов ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-05-05 5:08 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-04-29 3:22 [mdk-re] include_next, kdevelop и все такое Dmitry Samoyloff 2001-04-29 12:03 ` Sergey Vlasov 2001-04-30 5:50 ` Dmitry Samoyloff 2001-04-30 12:11 ` [mdk-re] " Alexander Bokovoy 2001-04-30 12:45 ` Sergey Vlasov 2001-05-03 12:30 ` [mdk-re] Re: [mdk-re] include_next, kdevelop и вс е такое Dmitry Samoyloff 2001-05-04 14:06 ` Sergey Vlasov 2001-05-05 5:08 ` Dmitry Samoyloff
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git