the build fails with the following errors: In file included from /usr/include/cups/language.h:34, from ../libgtklp/libgtklp.h:6, from file.c:10: /usr/include/locale.h:123: parse error before `const' In file included from /usr/include/cups/language.h:34, from ../libgtklp/libgtklp.h:6, from general.c:13: /usr/include/locale.h:123: parse error before `const' make[2]: *** [file.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [general.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gtklp-0.9k/work/gtklp-0.9k/gtklp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gtklp-0.9k/work/gtklp-0.9k' make: *** [all] Error 2
I've just refreshed the ebuild in CVS. Please rsync and try again.
james, success?
The ebuild still fails. However, I have `-nls' included in my USE flags and overriding it causes the ebuild to succeed. Sorry that I did not include the full error output before. Here is the complete error output: /var/tmp/portage/gtklp-0.9k/work/gtklp-0.9k/missing: Unknown `--run' option Try `/var/tmp/portage/gtklp-0.9k/work/gtklp-0.9k/missing --help' for more inform ation configure: WARNING: `missing' script is too old or missing In file included from /usr/include/cups/language.h:34, from ../libgtklp/libgtklp.h:6, from file.c:10: /usr/include/locale.h:123: parse error before `const' In file included from /usr/include/cups/language.h:34, from ../libgtklp/libgtklp.h:6, from general.c:13: /usr/include/locale.h:123: parse error before `const' make[2]: *** [file.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [general.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 In file included from /usr/include/cups/language.h:34, from ../libgtklp/libgtklp.h:6, from file.c:10: /usr/include/locale.h:123: parse error before `const' make[2]: *** [file.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -152, Exitcode 2 !!! (no error message)
what gcc version?
gcc version 2.95.3 20010315 (release)
from the upstream author: Perhaps another problem with gettext, I had problems on Solaris too. I've used Makefile.fallback there and it worked... I'll update the configure and the gettext parts this month, I hope this could fix the problem... If you got it to work, please tell me how..... ! --- So I guess we wait until he updates that stuff... for now, nls is just enabled by default (ack!).
Nick, if you can patch, we can send upstream and solve issues for a lot of people with this...
the nls detection is based partly on cups inclusion/exclusion of nls information. 0.9k doesn't seem to set the right locale directory but 0.9m does... If you are having trouble installing gktlp with -nls... emerge rsync USE="-nls" emerge cups USE="-nls" emerge gtklp Please test and let me know how things go for you. The only time I could recreate the problem as reported is when I had an nls enabled cups ebuild and trying to emerge gtklp with nls disabled. gtklp-0.9m has been unmasked.
Building an nls disabled gtklp still fails even with an nls disabled cups. gtklp succeeded to build when nls is enabled, though nls is still disabled for cups. cups-1.1.17_pre20021025 and gtklp-0.9m ebuilds were used. GCC is version 2.95.3. gettext is version 0.11.5. When trying to build gtklp with nls disabled, it fails with the following errors: configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. /var/tmp/portage/gtklp-0.9m/work/gtklp-0.9m/missing: Unknown `--run' option Try `/var/tmp/portage/gtklp-0.9m/work/gtklp-0.9m/missing --help' for more inform ation configure: WARNING: `missing' script is too old or missing In file included from /usr/include/cups/language.h:34, from ../libgtklp/libgtklp.h:6, from file.c:10: /usr/include/locale.h:123: parse error before `const' In file included from /usr/include/cups/language.h:34, from ../libgtklp/libgtklp.h:6, from general.c:13: /usr/include/locale.h:123: parse error before `const' make[2]: *** [file.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [general.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -144, Exitcode 2 !!! parallel make failed
sorry... I forgot to say to do an emerge clean between the two package merges... I did have a succecessful merge without nls... anyway... I'll give this a try on another system and see what I come up with. I'm not sure if the nls code is separable as even when I did -nls it still installed some locale related info...
nls installation issues have been fixed in gtklp-0.9m. The ebuild has been updated in portage. Please test and let me know if you have any further problems.