Summary: | app-openoffice-3.1.0 does not build with sys-libs/glibc-2.10.1 due to getline() prototype | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Graham Murray <gmurray> |
Component: | Current packages | Assignee: | Gentoo Office Team <office> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Adrian.Bassett, const, dabbott, eric_chaligny, esqualante, famobr, giovanni.bobbio, goaul, jlp.bugs, kripton, loki_val, mikopp, NightNord, pryka.iluvatar, rose, r_meier, svenne |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 270353 | ||
Attachments: |
rename getline to ooo_getline
Buildlog of failure svenneK the right file, hopefully build.log (sraybaud) ooo build log (sraybaud) emerge --info |
Description
Graham Murray
2009-05-18 09:25:20 UTC
*** Bug 270259 has been marked as a duplicate of this bug. *** *** Bug 270273 has been marked as a duplicate of this bug. *** Not so great, OOo 3.1 fresh in portage and already broken by a glibc update. @toolchain-herd: Could you take a look / chime in here? It looks like the new glibc defines the getline function now. I looked at the OOo code of mkdepend, it dates 1994. # grep -rn getline soltools/ soltools/mkdepend/parse.c:48: while ((line = getline(filep))) { soltools/mkdepend/parse.c:171: while ((line = getline(filep))) { soltools/mkdepend/def.h:157:char *getline(); soltools/mkdepend/main.c:551:char *getline(filep) I attach a patch to simply rename OOo's very own getline implementation. Created attachment 191664 [details, diff]
rename getline to ooo_getline
*** Bug 270342 has been marked as a duplicate of this bug. *** (In reply to comment #6) > *** Bug 270342 has been marked as a duplicate of this bug. *** > No, this bug is not a duplicate of this bug. This problem was observed under such conditions: sys-libs/glibc-2.9_p20081201-r2 and sys-devel/gcc-4.3.3-r2 and app-office/openoffice-3.1.0_beta7 (In reply to comment #5) > Created an attachment (id=191664) [edit] > rename getline to ooo_getline > Looks good. Fedora did the same thing: http://cvs.fedoraproject.org/viewvc/devel/openoffice.org/openoffice.org-3.1.0.oooXXXXX.gcc44.buildfixes.patch?revision=1.3&view=markup&sortby=date ( the last hunks address this issue ) (In reply to comment #5) > Created an attachment (id=191664) [edit] > rename getline to ooo_getline Thanks! With this patch, openoffice-3.1.0 successfully emerged on ~amd64 with USE="cups dbus gstreamer gtk java nsplugin opengl pam" and MAKEOPTS="-j2" Using ooo_getline.diff compile failed Making: ../../../unxlngx6.pro/slb/edit.lib echo unxlngx6.pro/slo/eddel.o unxlngx6.pro/slo/edlingu.o unxlngx6.pro/slo/edfldexp.o unxlngx6.pro/slo/edtab.o unxlngx6.pro/slo/acorrect.o unxlngx6.pro/slo/autofmt.o unxlngx6.pro/slo/edatmisc.o unxlngx6.pro/slo/edattr.o unxlngx6.pro/slo/edfcol.o unxlngx6.pro/slo/edfld.o unxlngx6.pro/slo/edfmt.o unxlngx6.pro/slo/edglbldc.o unxlngx6.pro/slo/edglss.o unxlngx6.pro/slo/editsh.o unxlngx6.pro/slo/ednumber.o unxlngx6.pro/slo/edredln.o unxlngx6.pro/slo/edtox.o unxlngx6.pro/slo/edundo.o unxlngx6.pro/slo/edws.o unxlngx6.pro/slo/edsect.o | xargs -n1 > ../../../unxlngx6.pro/slb/edit.lib Running processes: 0 2 module(s): fpicker sw need(s) to be rebuilt Reason(s): ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/sw/source/core/doc ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/fpicker/source/unx/kde_unx Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from fpicker sw" rmdir /tmp/8933 make: *** [stamp/build] Error 1 (In reply to comment #10) > Using ooo_getline.diff > compile failed [...] > make: *** [stamp/build] Error 1 As I said on bug 270342, please open a new bug for the issue you're experiencing. You will need to provide the full build log. In the new bug. Thank you. *** Bug 270366 has been marked as a duplicate of this bug. *** *** Bug 270375 has been marked as a duplicate of this bug. *** Just fixed this in portage now, thanks especially to Hanno for providing the patch! *** Bug 270484 has been marked as a duplicate of this bug. *** Reopening to save us from a flood of duplicates. I'll close it tomorrow again. Sorry for the spam. *** Bug 270489 has been marked as a duplicate of this bug. *** Mine still fails .... 1 module(s): vcl need(s) to be rebuilt Reason(s): ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/vcl/util Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from vcl" Hm. In principle OOo-3.1.0 compile with sys-libs/glibc-2.10.1? Yes. OOo 3.1.0 with glibc 2.10.1 and gcc (Gentoo 4.3.3-r2 p1.1, pie-10.1.5) 4.3.3 As I understand it, the bug should be fixed now (the commit was 19 hours ago). Run emerge --sync and try again. If it still fails, attach the build.log and provide "emerge -pvq openoffice". okay, willdo. But I cannot work on it before tomorrow. (In reply to comment #22) > okay, willdo. But I cannot work on it before tomorrow. > In portage fixed soltool but I post bug 270366 and other bugs not fixed. I used ooo_getline.diff in bug 270366 and problem with soltool fixed earlier still failing Created attachment 191939 [details]
Buildlog of failure svenneK
[ebuild N ] app-office/openoffice-3.1.0 USE="bash-completion cups dbus gnome gstreamer gtk java kde nsplugin opengl pam -binfilter -debug -eds -ldap -mono -odk -templates" LINGUAS="en -af -ar -as_IN -be_BY -bg -bn -br -brx -bs -ca -cs -cy -da -de -dgo -dz -el -en_GB -en_US -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id -it -ja -ka -kk -km -kn_IN -ko -kok -ks -ku -lt -mai -mk -ml_IN -mn -mni -mr_IN -nb -ne -nl -nn -nr -ns -oc -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sa_IN -sat -sd -sh -sk -sl -sr -ss -st -sw_TZ -ta -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz -ve -vi -xh -zh_CN -zh_TW -zu" (In reply to comment #25) > Created an attachment (id=191939) [edit] > Buildlog of failure svenneK > Wrong file. which file do you need? Created attachment 191946 [details]
the right file, hopefully
my build stops here: Module 'scp2' delivered successfully. 88 files copied, 4 files unchanged 1 module(s): vcl need(s) to be rebuilt Reason(s): ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/vcl/util Created attachment 192021 [details]
build.log
Compressed, over 1000Kb unpacked
emerge -pvq openoffice: [ebuild U ] app-office/openoffice-3.1.0 [3.0.1] USE="cups dbus gtk java kde nsplugin opengl pam -bash-completion% -binfilter -debug -eds -gnome -gstreamer -ldap -mono -odk -templates" LINGUAS="-af -ar -as_IN -be_BY -bg -bn -br -brx% -bs -ca -cs -cy -da -de -dgo% -dz -el -en -en_GB -en_US -en_ZA -eo -es -et -eu% -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id% -it -ja -ka -kk -km -kn_IN% -ko -kok% -ks% -ku -lt -mai% -mk -ml_IN -mn -mni% -mr_IN -nb -ne -nl -nn -nr -ns -oc% -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sa_IN% -sat% -sd% -sh -sk -sl -sr -ss -st -sw_TZ -ta -ta_IN% -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz% -ve -vi -xh -zh_CN -zh_TW -zu (-lv%) (-sv%*)" (In reply to comment #30) > my build stops here: > > Module 'scp2' delivered successfully. 88 files copied, 4 files unchanged > > 1 module(s): > vcl > need(s) to be rebuilt > > Reason(s): > > ERROR: error 65280 occurred while making > /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/vcl/util > Exactly same here. But openoffice-3.1.0 compiles fine without kde useflag. Kde4 installed without kdeprefix useflag. Up to date ~x86_64 arch here. Another bug, then. This bug is FIXED. Mine does NOT compile without kde I also tried USE=-* emerge openoffice which failed too... (In reply to comment #35) > Mine does NOT compile without kde > I also tried USE=-* emerge openoffice which failed too... > I see. My bug is different. I found my bug belongs to bug #238539. So I atached my log there. (In reply to comment #14) > Just fixed this in portage now, thanks especially to Hanno for providing the > patch! > Hello Looks like the problem is not fixed for openoffice-3.0.0 I'm attaching build.log (sraybaud.build.log.gz) and emerge info (sraybaud.emerge.info). markov sylvain # emerge -pvq app-office/openoffice [ebuild R ] app-office/openoffice-3.0.0 USE="cups kde pam -binfilter -dbus -debug -eds -gnome -gstreamer -gtk -java -ldap -mono -nsplugin -odk -opengl -templates" LINGUAS="en en_GB fr -af -ar -as_IN -be_BY -bg -bn -br -bs -ca -cs -cy -da -de -dz -el -en_US -en_ZA -eo -es -et -fa -fi -ga -gl -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -ku -lt -lv -mk -ml_IN -mr_IN -nb -ne -nl -nn -nr -ns -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" regards, Sylvain Created attachment 199633 [details]
(sraybaud) ooo build log
Created attachment 199637 [details]
(sraybaud) emerge --info
(In reply to comment #37) > > Looks like the problem is not fixed for openoffice-3.0.0 > I'm attaching build.log (sraybaud.build.log.gz) and emerge info > (sraybaud.emerge.info). Why would you use OOo 3.0 with glibc 2.10.1? Thanks. In may case, LFS (Linux From Scratch) running in a VMWare Player machine, hosted by Ubuntu Jaunty, trying to compile/install OOo_3.1.1. I do not know how to use diff, but edited the referred files, and made the changes by hand. The error disappeared. Do not know if dmake will run to the end. |