[opensuse] glib 1.2 build error
Hello: As I there are no glib1 packages for openSUSE 12.1 and I could not install gtk1-compat package I tried to build gtk1 and glib1 (1.2.10) on my computer. Configuration of glib1 went without error but make resulted in errors: gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gstrfuncs.c -fPIC -DPIC -o .libs/gstrfuncs.lo gstrfuncs.c: In function 'g_printf_string_upper_bound': gstrfuncs.c:870:19: error: expected ')' before string constant gstrfuncs.c:1037:21: error: expected ')' before string constant gstrfuncs.c:1080:23: error: expected ')' before string constant gstrfuncs.c:1111:19: error: expected ')' before string constant gstrfuncs.c: In function 'g_strdown': gstrfuncs.c:1139:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] gstrfuncs.c: In function 'g_strup': gstrfuncs.c:1155:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] gstrfuncs.c: In function 'g_strchug': gstrfuncs.c:1314:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] gstrfuncs.c:1317:3: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] /usr/include/string.h:399:15: note: expected 'const char *' but argument is of type 'guchar *' make[2]: *** [gstrfuncs.lo] Error 1 make[2]: Leaving directory `/home/build/build/glib-1.2.10' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/build/build/glib-1.2.10' make: *** [all-recursive-am] Error 2 build@pc:~/build/glib-1.2.10> I am not a programmer and I don't know how to fix this. I googled and found some hits on ubuntus lists/forums which did not gave a solution I can use. I would appreciate if someone could give advise how to troubleshoot this. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi Istwan, On Wed, Jan 25, 2012 at 6:56 PM, Istvan Gabor <suseuser04@lajt.hu> wrote:
Hello:
As I there are no glib1 packages for openSUSE 12.1 and I could not install gtk1-compat package I tried to build gtk1 and glib1 (1.2.10) on my computer.
Configuration of glib1 went without error but make resulted in errors:
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gstrfuncs.c -fPIC -DPIC -o .libs/gstrfuncs.lo gstrfuncs.c: In function 'g_printf_string_upper_bound': gstrfuncs.c:870:19: error: expected ')' before string constant gstrfuncs.c:1037:21: error: expected ')' before string constant gstrfuncs.c:1080:23: error: expected ')' before string constant gstrfuncs.c:1111:19: error: expected ')' before string constant gstrfuncs.c: In function 'g_strdown': gstrfuncs.c:1139:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] gstrfuncs.c: In function 'g_strup': gstrfuncs.c:1155:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] gstrfuncs.c: In function 'g_strchug': gstrfuncs.c:1314:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] gstrfuncs.c:1317:3: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] /usr/include/string.h:399:15: note: expected 'const char *' but argument is of type 'guchar *' make[2]: *** [gstrfuncs.lo] Error 1 make[2]: Leaving directory `/home/build/build/glib-1.2.10' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/build/build/glib-1.2.10' make: *** [all-recursive-am] Error 2 build@pc:~/build/glib-1.2.10>
I am not a programmer and I don't know how to fix this. I googled and found some hits on ubuntus lists/forums which did not gave a solution I can use.
I would appreciate if someone could give advise how to troubleshoot this.
Not sure if it helps, but there are guys trying to fix gnucash problem in 12.1. Gnucash is also guile1 package. You might take a look at http://download.opensuse.org/repositories/home:/pgajdos:/guile1/openSUSE_12.... At least gnucash from this repository works for me in 12.1, there are guile1 libraries there. Regards, -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Wed, 25 Jan 2012, Istvan Gabor wrote:
As I there are no glib1 packages for openSUSE 12.1 and I could not install gtk1-compat package I tried to build gtk1 and glib1 (1.2.10) on my computer.
Worksforme. There must be something wrong on your box (missing headers?) Please, post a log on paste.opensuse.org and mail the URL here. Or better yet, in opensuse-programming. Or have a look at http://download.opensuse.org/repositories/home:/dnh:/testing/ the build was successfull, publishing seems quite slow ATM, so be patient, the directory will be created once the packages are published. HTH, -dnh -- The probability of someone watching you is proportional to the stupidity of your action. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2012. január 25. 23:11 napon David Haller <dnh@opensuse.org> írta:
Hello,
On Wed, 25 Jan 2012, Istvan Gabor wrote:
As I there are no glib1 packages for openSUSE 12.1 and I could not install gtk1-compat package I tried to build gtk1 and glib1 (1.2.10) on my computer.
Worksforme. There must be something wrong on your box (missing headers?) Please, post a log on paste.opensuse.org and mail the URL here. Or better yet, in opensuse-programming.
Or have a look at http://download.opensuse.org/repositories/home:/dnh:/testing/ the build was successfull, publishing seems quite slow ATM, so be patient, the directory will be created once the packages are published.
David, thank you a lot. I have downloaded the packages you had built. Investigating your glib-1.2.10-741.1.src.rpm I found several patches file; after applying those patches to my source files the build process went without problems on my system. My question is where did you get those patch files? Add how did you know that you needed these pacthes? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 26 Jan 2012 20:34:47 +0100, Istvan Gabor <suseuser04@lajt.hu> wrote:
My question is where did you get those patch files?
Knowing David I'd hazard the guess that he did them himself.
And how did you know that you needed these patches?
Compiler fails, you fix the code and add the patch to the package :) Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Thu, 26 Jan 2012, Philipp Thomas wrote:
On Thu, 26 Jan 2012 20:34:47 +0100, Istvan Gabor <suseuser04@lajt.hu> wrote:
My question is where did you get those patch files?
Knowing David I'd hazard the guess that he did them himself.
Nope, they were in the 11.4 src.rpm I used. I just changed the .spec because of some rpmlint stuff a bit. -dnh -- Shouldn't a "programmer's editor" be called a "bugger"? -- Graham Reed -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2012. január 27. 11:55 napon David Haller <dnh@opensuse.org> írta:
Hello,
On Thu, 26 Jan 2012, Philipp Thomas wrote:
On Thu, 26 Jan 2012 20:34:47 +0100, Istvan Gabor <suseuser04@lajt.hu> wrote:
My question is where did you get those patch files?
Knowing David I'd hazard the guess that he did them himself.
Nope, they were in the 11.4 src.rpm I used. I just changed the .spec because of some rpmlint stuff a bit.
Thank you David. I could not find a glib source package for oS-11.4 (in http://download.opensuse.org/source/distribution/11.4/repo/oss/suse/src/) but found one for oS-11.2. Could you please provide me a link to the 11.4 source package? I also downloaded gtk1 source package for 11.2, uncompressed and applied the patches manually. gtk1 built well too. Then I was able to build xmms, which was my final (and original) goal. When I looked at the spec file of gtk1 source, mostly I could understand it, except for this line(s): %setup -q -n %{_name}-%{version} gnome-patch-translation-prepare cp -a %{S:1} . I understand that rpm creates the install dir, runs gnome-patch-translation-prepare program, and copies %{S:1} to . What is the meaning of %{S:1}, and to what directory the . refers to? I googled a lot but could not find anything. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Fri, 27 Jan 2012, Istvan Gabor wrote:
2012. január 27. 11:55 napon David Haller <dnh@opensuse.org> írta:
Nope, they were in the 11.4 src.rpm I used. I just changed the .spec because of some rpmlint stuff a bit.
I could not find a glib source package for oS-11.4 (in http://download.opensuse.org/source/distribution/11.4/repo/oss/suse/src/) but found one for oS-11.2. Could you please provide me a link to the 11.4 source package?
http://download.opensuse.org/repositories/openSUSE:/11.4:/Contrib/standard/s...
%setup -q -n %{_name}-%{version} gnome-patch-translation-prepare cp -a %{S:1} .
I understand that rpm creates the install dir, runs gnome-patch-translation-prepare program, and copies %{S:1} to .
What is the meaning of %{S:1}, and to what directory the . refers to?
%{S:1} is Source1, I usually use %{SOURCE1} instead of the short form. And . is (as usual) the current dir, i.e. %{_topdir}/BUILD/%{_name}-%{version} that was in the tarball. See the rpmbuild output. ==== %prep %setup -q %patch [..] ==== becomes: + rm -rf glib-1.2.10 + /usr/bin/bzip2 -dc /home/abuild/rpmbuild/SOURCES/glib-1.2.10.tar.bz2 + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd glib-1.2.10 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch (glib-1.2.10.dif):' Patch (glib-1.2.10.dif): [..] BTW: %patch == %patch0 HTH, -dnh -- When I woke up this morning, the cat was barfing on me. Things have gone downhill since then. -- Michel Buijsman -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2012. január 27. 19:32 napon David Haller <dnh@opensuse.org> írta:
Hello,
On Fri, 27 Jan 2012, Istvan Gabor wrote:
2012. január 27. 11:55 napon David Haller <dnh@opensuse.org> írta:
Nope, they were in the 11.4 src.rpm I used. I just changed the .spec because of some rpmlint stuff a bit.
I could not find a glib source package for oS-11.4 (in http://download.opensuse.org/source/distribution/11.4/repo/oss/suse/src/) but found one for oS-11.2. Could you please provide me a link to the 11.4 source package?
http://download.opensuse.org/repositories/openSUSE:/11.4:/Contrib/standard/s...
%setup -q -n %{_name}-%{version} gnome-patch-translation-prepare cp -a %{S:1} .
I understand that rpm creates the install dir, runs gnome-patch-translation-prepare program, and copies %{S:1} to .
What is the meaning of %{S:1}, and to what directory the . refers to?
%{S:1} is Source1, I usually use %{SOURCE1} instead of the short form.
And . is (as usual) the current dir, i.e. %{_topdir}/BUILD/%{_name}-%{version} that was in the tarball.
See the rpmbuild output.
==== %prep %setup -q %patch [..] ====
becomes:
+ rm -rf glib-1.2.10 + /usr/bin/bzip2 -dc /home/abuild/rpmbuild/SOURCES/glib-1.2.10.tar.bz2 + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd glib-1.2.10 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch (glib-1.2.10.dif):' Patch (glib-1.2.10.dif): [..]
BTW: %patch == %patch0
Thank you for the link and the explanation. The rpm documentation I read did have this info. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
David Haller
-
Istvan Gabor
-
Mark Goldstein
-
Philipp Thomas