Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267862 - =media-video/guvcview-1.0.5 fails to build due to a locale error
Summary: =media-video/guvcview-1.0.5 fails to build due to a locale error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 442914 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-29 12:21 UTC by Ivan
Modified: 2012-11-19 11:55 UTC (History)
1 user (show)

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


Attachments
Patch to fix the locale problem (guvcview-1.0.5-implicit_declaration_setlocale.patch,429 bytes, patch)
2009-04-29 12:22 UTC, Ivan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan 2009-04-29 12:21:15 UTC
Same problem as before in bug #250495, except this time I don't have LC_ALL set (so that isn't the problem).  The same patch modified to suit the updated source fixes the problem.

The actual build error is:
guvcview.c: In function 'main':
guvcview.c:98: warning: implicit declaration of function 'setlocale'
guvcview.c:98: error: 'LC_ALL' undeclared (first use in this function)
guvcview.c:98: error: (Each undeclared identifier is reported only once
guvcview.c:98: error: for each function it appears in.)
guvcview.c:98: warning: initialization makes pointer from integer without a cast
i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -pthread -D_GNU_SOURCE=1 -D_REENTRANT -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/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/SDL       -Wall -g -D_REENTRANT -march=native -pipe -fomit-frame-pointer -c marker.c
make[2]: *** [guvcview.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/tmp/media-video-guvcview-1.0.5/work/guvcview-src-1.0.5/src'
make[1]: Leaving directory `/tmp/media-video-guvcview-1.0.5/work/guvcview-src-1.0.5'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2


My locale settings are:
# locale
LANG=en_AU.UTF-8
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=
Comment 1 Ivan 2009-04-29 12:22:56 UTC
Created attachment 189831 [details, diff]
Patch to fix the locale problem

Note that I'm not sure how to actually create patches properly (I used to follow a guide a dev had on his website, which is no longer available :s ), so I created this patch by editing the previous one and by "guess-work".  A better version should probably be made for inclusion into the tree.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-04-29 17:16:52 UTC
in tree, thanks.. I mailed this upstream, but he forgot or ignored it. Want to try contacting him?
Comment 3 Ivan 2009-04-30 08:09:13 UTC
Sent an email with the patch attached to pj.assis@gmail.com.
Comment 4 Ivan 2009-05-01 00:51:54 UTC
Paulo Assis, the developer of guvcview, has added this to svn so that future releases won't need it.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-11-19 11:55:29 UTC
*** Bug 442914 has been marked as a duplicate of this bug. ***