Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9404 - net-print/gtklp-0.9k: build fails
Summary: net-print/gtklp-0.9k: build fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-20 16:40 UTC by James Michael Fultz
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Michael Fultz 2002-10-20 16:40:47 UTC
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
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-20 17:12:52 UTC
I've just refreshed the ebuild in CVS. Please rsync and try again.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-20 20:11:09 UTC
james, success?
Comment 3 James Michael Fultz 2002-10-21 10:30:14 UTC
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)
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-21 15:28:45 UTC
what gcc version?
Comment 5 James Michael Fultz 2002-10-21 17:30:52 UTC
gcc version 2.95.3 20010315 (release)
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-22 12:09:04 UTC
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!).
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-22 12:18:07 UTC
Nick, if you can patch, we can send upstream and solve issues for a lot of
people with this...
Comment 8 Nick Hadaway 2002-10-30 11:20:43 UTC
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.
Comment 9 James Michael Fultz 2002-10-30 16:48:15 UTC
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
Comment 10 Nick Hadaway 2002-10-30 18:00:28 UTC
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... 
Comment 11 Nick Hadaway 2003-01-16 15:41:54 UTC
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.