Re: Problems building 2.2.1 (svn) on openSuse 10.3
Ooops. opensp-devel actually includes libosp.la. No need to hack there. Apologies Davide On 10/15/07, Davide Imbeni <[EMAIL PROTECTED]> wrote: > > Thanks a lot to both Christian and Josh. > > Now I was able to compile and run the latest gnucash again! > > I just have to add that another .la was missing in opensuse 10.3 in spite > of having installed all matching *-devel packages: libosp.la > > Just in case someone happens to install opensuse 10.3 without being able > to rely (as I could) on the surviving old 10.2 root, I will attach both > libpopt.la and libosp.la to this email. > I found that editing and adapting them was much easier than figuring out > what to put there from scratch... > > Cheers > > Davide > > > On 10/15/07, Christian Stimming <[EMAIL PROTECTED]> wrote: > > > > Am Montag, 15. Oktober 2007 09:33 schrieb Davide Imbeni: > > > svn version of Gnucash 2.2.1on openSuse 10.3 on a x86_64 arch. > > > > > > 1 -- First issue (solved, maybe in the wrong way): after successful > > > ./configure, make stops with error > > > > > > libtool: link: cannot find the library `/usr/lib64/libpopt.la' or > > unhandled > > > argument `/usr/lib64/libpopt.la' > > > make[5]: *** [libgnc-qof.la] Error 1 > > > > > > With respect to openSuse 10.2 (where I was able to build gnucash), the > > > differences in 10.3 are: libpopt.la is missing, and all libpopt.so*are > > > located in /lib64 instead of /usr/lib64. I just copied the old ( 10.2) > > > libpopt.la in /lib64, changed libdir=/usr/lib64 to libdir=/lib64 in > > its > > > last line and simlinked it to /usr/lib64. > > > Since I have a VERY faint idea of what .la files actually do: was this > > > > > correct? dirty? any better solutions/suggestions? > > > > Your solution was correct. Some -devel package of opensuse seems to rely > > on a > > file libpopt.la to exist. Somehow the opensuse packagers forgot to > > create a > > package that installs that file. But .la files are really doing only > > very > > little; copying like what you did is one possible solution, although it > > could > > have gone wrong as well. As an eventual solution, opensuse should > > provide a > > package that contains libpopt.la; on opensuse 10.2 there was popt-devel, > > but > > in the new version this might be called differently. > > > > > 2 -- The above allowed make to continue compiling... for a while. > > > Next error, on which I'm currently stuck, is: > > > > > > cc1: warnings being treated as errors > > > engine-helpers.c: In function 'gnc_generic_to_scm': > > > engine-helpers.c:2161: warning: passing argument 1 of > > > 'SWIG_Guile_NewPointerObj' discards qualifiers from pointer target > > type > > > > As josh already explained: That's a warning that is introduced by the > > newest > > gcc and/or newest swig packages and we currently don't have an easy way > > to > > fix it. Please use --disable-error-on-warning. > > > > Christian > > > > > ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: Problems building 2.2.1 (svn) on openSuse 10.3
Thanks a lot to both Christian and Josh. Now I was able to compile and run the latest gnucash again! I just have to add that another .la was missing in opensuse 10.3 in spite of having installed all matching *-devel packages: libosp.la Just in case someone happens to install opensuse 10.3 without being able to rely (as I could) on the surviving old 10.2 root, I will attach both libpopt.la and libosp.la to this email. I found that editing and adapting them was much easier than figuring out what to put there from scratch... Cheers Davide On 10/15/07, Christian Stimming <[EMAIL PROTECTED]> wrote: > > Am Montag, 15. Oktober 2007 09:33 schrieb Davide Imbeni: > > svn version of Gnucash 2.2.1on openSuse 10.3 on a x86_64 arch. > > > > 1 -- First issue (solved, maybe in the wrong way): after successful > > ./configure, make stops with error > > > > libtool: link: cannot find the library `/usr/lib64/libpopt.la' or > unhandled > > argument `/usr/lib64/libpopt.la' > > make[5]: *** [libgnc-qof.la] Error 1 > > > > With respect to openSuse 10.2 (where I was able to build gnucash), the > > differences in 10.3 are: libpopt.la is missing, and all libpopt.so* are > > located in /lib64 instead of /usr/lib64. I just copied the old (10.2) > > libpopt.la in /lib64, changed libdir=/usr/lib64 to libdir=/lib64 in its > > last line and simlinked it to /usr/lib64. > > Since I have a VERY faint idea of what .la files actually do: was this > > correct? dirty? any better solutions/suggestions? > > Your solution was correct. Some -devel package of opensuse seems to rely > on a > file libpopt.la to exist. Somehow the opensuse packagers forgot to create > a > package that installs that file. But .la files are really doing only very > little; copying like what you did is one possible solution, although it > could > have gone wrong as well. As an eventual solution, opensuse should provide > a > package that contains libpopt.la; on opensuse 10.2 there was popt-devel, > but > in the new version this might be called differently. > > > 2 -- The above allowed make to continue compiling... for a while. > > Next error, on which I'm currently stuck, is: > > > > cc1: warnings being treated as errors > > engine-helpers.c: In function 'gnc_generic_to_scm': > > engine-helpers.c:2161: warning: passing argument 1 of > > 'SWIG_Guile_NewPointerObj' discards qualifiers from pointer target type > > As josh already explained: That's a warning that is introduced by the > newest > gcc and/or newest swig packages and we currently don't have an easy way to > fix it. Please use --disable-error-on-warning. > > Christian > libpopt.la Description: application/shared-library-la libosp.la Description: application/shared-library-la ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: Problems building 2.2.1 (svn) on openSuse 10.3
Am Montag, 15. Oktober 2007 09:33 schrieb Davide Imbeni: > svn version of Gnucash 2.2.1on openSuse 10.3 on a x86_64 arch. > > 1 -- First issue (solved, maybe in the wrong way): after successful > ./configure, make stops with error > > libtool: link: cannot find the library `/usr/lib64/libpopt.la' or unhandled > argument `/usr/lib64/libpopt.la' > make[5]: *** [libgnc-qof.la] Error 1 > > With respect to openSuse 10.2 (where I was able to build gnucash), the > differences in 10.3 are: libpopt.la is missing, and all libpopt.so* are > located in /lib64 instead of /usr/lib64. I just copied the old (10.2) > libpopt.la in /lib64, changed libdir=/usr/lib64 to libdir=/lib64 in its > last line and simlinked it to /usr/lib64. > Since I have a VERY faint idea of what .la files actually do: was this > correct? dirty? any better solutions/suggestions? Your solution was correct. Some -devel package of opensuse seems to rely on a file libpopt.la to exist. Somehow the opensuse packagers forgot to create a package that installs that file. But .la files are really doing only very little; copying like what you did is one possible solution, although it could have gone wrong as well. As an eventual solution, opensuse should provide a package that contains libpopt.la; on opensuse 10.2 there was popt-devel, but in the new version this might be called differently. > 2 -- The above allowed make to continue compiling... for a while. > Next error, on which I'm currently stuck, is: > > cc1: warnings being treated as errors > engine-helpers.c: In function 'gnc_generic_to_scm': > engine-helpers.c:2161: warning: passing argument 1 of > 'SWIG_Guile_NewPointerObj' discards qualifiers from pointer target type As josh already explained: That's a warning that is introduced by the newest gcc and/or newest swig packages and we currently don't have an easy way to fix it. Please use --disable-error-on-warning. Christian ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: Problems building 2.2.1 (svn) on openSuse 10.3
(Trimming gnucash-user from distribution list. This is clearly -devel traffic.) "Davide Imbeni" <[EMAIL PROTECTED]> writes: > 2 -- The above allowed make to continue compiling... for a while. > Next error, on which I'm currently stuck, is: > > gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"gnc.engine\" > -I../../lib/libc -I../../src/core-utils -I../../src -I../../src > -I../../src/gnc-module -I../../lib/libqof/qof -I../../lib/libqof/qof > -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread > -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 > -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations > -Wno-unused -MT engine-helpers.lo -MD -MP -MF .deps/engine-helpers.Tpo -c > engine-helpers.c -fPIC -DPIC -o .libs/engine-helpers.o > cc1: warnings being treated as errors > engine-helpers.c: In function 'gnc_generic_to_scm': > engine-helpers.c:2161: warning: passing argument 1 of > 'SWIG_Guile_NewPointerObj' discards qualifiers from pointer target type > make[5]: *** [engine-helpers.lo] Error 1 > make[5]: Leaving directory `/usr/local/src/gnucash-svn/src/engine' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/usr/local/src/gnucash-svn/src/engine' > make[3]: *** [all] Error 2 > make[3]: Leaving directory `/usr/local/src/gnucash-svn/src/engine' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/usr/local/src/gnucash-svn/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/src/gnucash-svn' > make: *** [all] Error 2 > > slib and swig are obviously installed. > Any suggestions? This is a "new" warning seen by using gcc-4.2. As building is generally done with -Werror, such warnings are promoted to errors, as you're seeing. You'll need to re-run configure with `--disable-error-on-warning` to let the warnings pass as such until such time as changes are made to build "clean" with gcc-4.2. Better yet, patches to fix the problems would be great. -- ...jsled http://asynchronous.org/ - a=jsled; b=asynchronous.org; echo [EMAIL PROTECTED] pgpvF2K1Mg5yS.pgp Description: PGP signature ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Problems building 2.2.1 (svn) on openSuse 10.3
Hi list, I am facing some problems trying to build the svn version of Gnucash 2.2.1on openSuse 10.3 on a x86_64 arch. I believe all dependencies should be ok. 1 -- First issue (solved, maybe in the wrong way): after successful ./configure, make stops with error /bin/sh ../../../libtool --tag=CC --mode=link gcc -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../../lib/libc -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -version-info 1:4:0 -o libgnc-qof.la -rpath /usr/local/lib deprecated.lo gnc-date.lo gnc-numeric.lo guid.lo kvp_frame.lo kvp-util.lo md5.lo qofbackend.lo qofclass.lo qofchoice.lo qofid.lo qofinstance.lo qofquery.lo qofbook.lo qofevent.lo qoflog.lo qofobject.lo qofquerycore.lo qofreference.lo qofutil.lo qofsession.lo qofbookmerge.lo -pthread -Wl,--export-dynamic -lgthread-2.0 -lrt -lgobject-2.0 -lgmodule-2.0 -ldl - lglib-2.0../../../lib/libc/libc-missing.la -lpopt -lm -lpthread -lm libtool: link: cannot find the library `/usr/lib64/libpopt.la' or unhandled argument `/usr/lib64/libpopt.la' make[5]: *** [libgnc-qof.la] Error 1 make[5]: Leaving directory `/usr/local/src/gnucash-svn/lib/libqof/qof' make[4]: *** [all] Error 2 make[4]: Leaving directory `/usr/local/src/gnucash-svn/lib/libqof/qof' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/src/gnucash-svn/lib/libqof' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/gnucash-svn/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/gnucash-svn' make: *** [all] Error 2 With respect to openSuse 10.2 (where I was able to build gnucash), the differences in 10.3 are: libpopt.la is missing, and all libpopt.so* are located in /lib64 instead of /usr/lib64. I just copied the old (10.2) libpopt.la in /lib64, changed libdir=/usr/lib64 to libdir=/lib64 in its last line and simlinked it to /usr/lib64. Since I have a VERY faint idea of what .la files actually do: was this correct? dirty? any better solutions/suggestions? 2 -- The above allowed make to continue compiling... for a while. Next error, on which I'm currently stuck, is: gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"gnc.engine\" -I../../lib/libc -I../../src/core-utils -I../../src -I../../src -I../../src/gnc-module -I../../lib/libqof/qof -I../../lib/libqof/qof -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT engine-helpers.lo -MD -MP -MF .deps/engine-helpers.Tpo -c engine-helpers.c -fPIC -DPIC -o .libs/engine-helpers.o cc1: warnings being treated as errors engine-helpers.c: In function 'gnc_generic_to_scm': engine-helpers.c:2161: warning: passing argument 1 of 'SWIG_Guile_NewPointerObj' discards qualifiers from pointer target type make[5]: *** [engine-helpers.lo] Error 1 make[5]: Leaving directory `/usr/local/src/gnucash-svn/src/engine' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/local/src/gnucash-svn/src/engine' make[3]: *** [all] Error 2 make[3]: Leaving directory `/usr/local/src/gnucash-svn/src/engine' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/gnucash-svn/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/gnucash-svn' make: *** [all] Error 2 slib and swig are obviously installed. Any suggestions? Thanks a lot Davide ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel