openoffice fails its configure when i try to build it against hunspell-1.1.5... stumbled across this after revdep-rebuild picked up openoffice ... hunspell was just updated on the 20th.. reverting to hunspell-1.1.4-r2 fixes this Reproducible: Always
here is the error... had to wait for openoffice to finish building.. update hunspell and record the error checking whether to link to Xrender... no, dynamically open it checking which Xrender headers to use... external checking X11/extensions/Xrender.h usability... yes checking X11/extensions/Xrender.h presence... yes checking for X11/extensions/Xrender.h... yes checking which nas to use... none checking whether to enable portaudio/sndfile support... no checking whether to build neon... no checking which xmlsec1 to use... internal checking whether to enable agg... no checking which libhunspell to use... external checking hunspell.hxx usability... no checking hunspell.hxx presence... no checking for hunspell.hxx... no checking hunspell/hunspell.hxx usability... no checking hunspell/hunspell.hxx presence... no checking for hunspell/hunspell.hxx... no configure: error: hunspell headers not found. make: *** [stamp/build] Error 1 !!! ERROR: app-office/openoffice-2.2.0 failed. Call stack: ebuild.sh, line 1615: Called dyn_compile ebuild.sh, line 972: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile openoffice-2.2.0.ebuild, line 327: Called die !!! Build failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/app-office/openoffice-2.2.0/temp/build.log'.
Confirming this and adding hunspell maintainer
Thanks for the report - turned out hunspell's install script missed out some files, so I've installed them manually. Give it time to propagate to the mirrors, sync and re-install hunspell.
Hi Kevin, The configure still bombs for me since it tries to link against -lhunspell while hunspell-1.1.5 does /usr/lib/libhunspell-1.1.so -> libhunspell-1.1.so.0.0.0 instead of /usr/lib/libhunspell.so -> libhunspell-1.1.so.0.0.0 on my box. Thanks, Markus
*** Bug 179359 has been marked as a duplicate of this bug. ***
Hmm; bit of a mess, isn't it. I've added another manual fix-up. I'll leave the bug open in case there are any more (I don't have the resource to test an openoffice build at the moment). When things work well enough, I'll collect the bugs up and report upstream.
Thanks, Kevin! Using you most recent fix, openoffice now configures properly. I'll build it overnight but I strongly suspect that all is well now :) cheers, Markus
your fixes work here.... thanks
Well the fix is not correct and the bug is not in hunspell now, but in openoffice, which should read the pkg-config files and not link to random-fixed library. linking in this way would also add a new so-name to the mix, which generally is not a good idea
(In reply to comment #9) > Well the fix is not correct and the bug is not in hunspell now, but in > openoffice, which should read the pkg-config files and not link to random-fixed > library. > linking in this way would also add a new so-name to the mix, which generally is > not a good idea > Good point! AFAICT the pkg-config entry for hunspell started appearing in 1.1.5 so openoffice's build system probably needs to be made aware of it.
Hi, the fixed ebuild still doesn't work for me. openoffice expects libhunspell.so.0 on my ~x86 machine, which isn't created as symlink by the ebuild. Cheers Poly-C
You probably need to sync portage and re-emerge hunspell.
> AFAICT the pkg-config entry for hunspell started > appearing in 1.1.5 so openoffice's build system probably needs > to be made aware of it. > I've made patches, but as oo is heavy on compiling and I'm going to bed, I'll post them here for testing (it still compiles here, but is way through the spellchecker so they should work). I've just changed the configure to check for the pkg-config files if it falls through the old check and to export the found libs and cflags. Patches follow...
Created attachment 120037 [details, diff] files/2.2.0/hunspell.diff The real patch
Created attachment 120040 [details, diff] files/2.2.0/hunspell_apply.diff the patch to apply patches
cp -f ${FILESDIR}/${PV}/disable-regcomp-java.diff ${S}/patches/src680 || die cp -f ${FILESDIR}/${PV}/disable-regcomp-python.diff ${S}/patches/src680 || die epatch ${FILESDIR}/${PV}/regcompapply.diff fi + #hunspell patch + cp -f ${FILESDIR}/${PV}/hunspell.diff ${S}/patches/src680 || die + epatch ${FILESDIR}/${PV}/hunspell_apply.diff #Use flag checks if use java ; then Changes to the ebuild...
I applied the patches and it didn't work. I saw this during configure of openoffice-2.2.0 with hunspell-1.1.5: checking which libhunspell to use... external checking hunspell.hxx usability... no checking hunspell.hxx presence... no checking for hunspell.hxx... no checking hunspell/hunspell.hxx usability... no checking hunspell/hunspell.hxx presence... no checking for hunspell/hunspell.hxx... no configure: error: hunspell headers not found. I looked at /usr/include/hunspell/hunspell.hxx and found this: #include "license.hunspell" #include "license.myspell" ... #include "config.h" When I compiled a cpp file that included hunspell.hxx, it complained that these files didn't exist.
Whoops. I think that was already addressed in #3.
It worked fine here (using custom hunspell ebuild, without the ln-stuff, but this shouldn't matter), the spellchecking is working and: readelf -d /usr/lib64/openoffice/program/libspell680lx.so|grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libuno_cppu.so.3] 0x0000000000000001 (NEEDED) Shared library: [libuno_cppuhelpergcc3.so.3] 0x0000000000000001 (NEEDED) Shared library: [libtl680lx.so] 0x0000000000000001 (NEEDED) Shared library: [libsvl680lx.so] 0x0000000000000001 (NEEDED) Shared library: [libuno_sal.so.3] 0x0000000000000001 (NEEDED) Shared library: [liblng680lx.so] 0x0000000000000001 (NEEDED) Shared library: [libhunspell-1.1.so.0] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libstlport.so.5.1] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] oo links to the correct hunspell library. The patch probably should be refined a little bit to restore the old behaviour of dying on not finding the system libraries (the current patch will fallback to the oo internal ones). It should also be tested with hunspell-1.1.4, but I don't have the time for it, although it should work just as earlier.
Calculating dependencies... done! [ebuild R ] app-text/hunspell-1.1.5 USE="ncurses readline" 0 kB [ebuild R ] app-office/openoffice-2.2.0 USE="binfilter branding dbus eds firefox gstreamer gtk pam -cairo -cups -debug -gnome -java -kde -ldap -mono -odk -seamonkey -sound -webdav" LINGUAS=SNIP failed (same output as #1) seemed to be a hot bug; why is the fix still not merged ?
I also have been affected by this bug since it was originally opened, and it continues to prevent the success of revdep-rebuild, as openoffice will not emerge successfully. Any idea when the fix will be merged?
Adding the following line to the current hunspell-1.1.5 ebuild and re-emerge hunspell should make revdep-rebuild happy. I don't know if openoffice compiles with this patch as well, but at least I did not have to rebuild openoffice because of the hunspell changes... --- /usr/portage/app-text/hunspell/hunspell-1.1.5.ebuild 2007-05-21 23:35:32.000000000 +0200 +++ /usr/local/portage/app-text/hunspell/hunspell-1.1.5.ebuild 2007-05-22 18:08:37.000000000 +0200 @@ -70,6 +70,7 @@ # default symlink. They should probably be libhunspell.so.1.1 etc. cd ${D}/usr/lib ln -s libhunspell-1.1.so.0.0.0 libhunspell.so + ln -s libhunspell-1.1.so.0.0.0 libhunspell.so.0 } pkg_postinst() {
strange; my ebuild do contain line > ln -s libhunspell-1.1.so.0.0.0 libhunspell.so.0 but see this: root@moon_gen_2:/usr/lib# equery f app-text/hunspell [ Searching for packages matching app-text/hunspell... ] * Contents of app-text/hunspell-1.1.5: /usr /usr/bin [...] /usr/lib /usr/lib/libhunspell-1.1.a /usr/lib/libhunspell-1.1.la /usr/lib/libhunspell-1.1.so -> libhunspell-1.1.so.0.0.0 /usr/lib/libhunspell-1.1.so.0 -> libhunspell-1.1.so.0.0.0 /usr/lib/libhunspell-1.1.so.0.0.0 /usr/lib/libparsers.a /usr/lib/pkgconfig /usr/lib/pkgconfig/hunspell.pc [...] root@moon_gen_2:/usr/lib# ls -l libhunspel* -rw-r--r-- 1 root root 244734 2007-05-21 15:01 libhunspell-1.1.a -rw-r--r-- 1 root root 843 2007-05-21 15:01 libhunspell-1.1.la lrwxrwxrwx 1 root root 24 2007-05-21 15:01 libhunspell-1.1.so -> libhunspell-1.1.so.0.0.0 lrwxrwxrwx 1 root root 24 2007-05-21 15:01 libhunspell-1.1.so.0 -> libhunspell-1.1.so.0.0.0 -rwxr-xr-x 1 root root 242825 2007-05-21 15:01 libhunspell-1.1.so.0.0.0 root@moon_gen_2:/usr/lib# If the default ebuild should create libhunspell.so , why cant I see it there ? *** I confirm: manually run $ ln -s libhunspell-1.1.so.0.0.0 libhunspell.so.0 ( may break portage but) fixes revdep-rebuild OOo re-emerge probleme. Please merge this fix with mirors.
cd your_overlay/app-text svn co http://g-overlays.googlecode.com/svn/trunk/mozilla/app-text/hunspell/ cd your_overlay/app-office svn co http://g-overlays.googlecode.com/svn/trunk/mozilla/app-office/openoffice/ eventually redigest the ebuilds, if your overlay still uses Manifest1 emerge -D1 hunspell openoffice revdep-rebuild
*** Bug 182227 has been marked as a duplicate of this bug. ***
Following the advice of comment 24, I simply executed "emerge -D1 hunspell openoffice" against my system -- no special overlays are in place. That did it. Thanks!!
i really dont think creating a libhunspell.so symlink is correct ... openoffice should be using pkg-config to query for hunspell libs $ pkg-config --libs hunspell -lhunspell-1.1
*** Bug 182559 has been marked as a duplicate of this bug. ***
root@moon_gen_2:~# emerge -vp hunspell openoffice [...] Calculating dependencies... done! [ebuild R ] app-text/hunspell-1.1.5 USE="ncurses readline" 0 kB [ebuild R ] app-office/openoffice-2.2.1 USE="binfilter branding dbus eds firefox gstreamer gtk pam -cairo -cups -debug -gnome -java -kde -ldap -mono -odk -seamonkey -sound -webdav" LINGUAS="SNIP" 0 kB Total: 2 packages (2 reinstalls), Size of downloads: 0 kB root@moon_gen_2:~# Emerge successfull, revdeprebuild not complaining. But from memory, re-emerging hunspell may have help a bit :) WORKSFORME.
OpenOffice still don't compile here. Even if I unmerge/remerge hunspell 1.1.5 : checking which libhunspell to use... external checking hunspell.hxx usability... no checking hunspell.hxx presence... no checking for hunspell.hxx... no checking hunspell/hunspell.hxx usability... yes checking hunspell/hunspell.hxx presence... yes checking for hunspell/hunspell.hxx... yes checking for main in -lhunspell... no configure: error: hunspell library not found. make: *** [stamp/build] Error 1 My emerge --info : # emerge --info Portage 2.1.3_rc4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r1 x86_64) ================================================================= System uname: 2.6.21-gentoo-r1 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz Gentoo Base System release 2.0.0_alpha3 Timestamp of tree: Wed, 20 Jun 2007 23:50:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans" GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo http://distfiles.gentoo.org" LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LINGUAS="fr en us" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/mpd /usr/portage/local/layman/einit /usr/portage/local/layman/synce /usr/portage/local/pierre" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 apache2 arts avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr dvdread eds emboss encode esd evo exif fam firefox flac fortran galago gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog java jpeg kde kerberos ldap libg++ mad midi mikmod mmx mono mp3 mpeg mudflap musepack mysql mysqli ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection ruby samba sdl seamonkey session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xine xinetd xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en us" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #30) > OpenOffice still don't compile here. Even if I unmerge/remerge hunspell 1.1.5 Pierre, please give us the OOo version you tried; subject mentions 2.2.0; I had success with 2.2.1; from memory (without reading it all), some one mentioned an upstream fix by the mean time. Package names are not enough; we need ebuild versions. I say this because OOo have been updated 60h ago; I esync daily, but some people esync weekly or monthly; we need to know which ebuild failed for you.
(In reply to comment #31) > (In reply to comment #30) > > OpenOffice still don't compile here. Even if I unmerge/remerge hunspell 1.1.5 > > Pierre, please give us the OOo version you tried; subject mentions 2.2.0; I had > success with 2.2.1[...] I'm getting the same as #30. I just did an emerge --sync a few hours ago. openoffice-2.2.1.ebuild version: # $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-2.2.1.ebuild,v 1.7 2007/06/22 11:22:42 suka Exp $ hunspell-1.1.5.ebuild version: # $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/hunspell-1.1.5.ebuild,v 1.3 2007/05/21 21:20:57 kevquinn Exp $ I just moments ago unmerged and re-merged hunspell. Attempting to emerge openoffice-2.2.1 still complains "configure: error: hunspell library not found." Haven't tried reverting to hunspell-1.1.4-r2 yet...
Same problem here with OO 2.2.1 > configure: error: hunspell headers not found. Hunspell 1.1.5 is installed. # $Header: /var/cvsroot/gentoo-x86/app-text/hunspell/hunspell-1.1.5.ebuild,v 1.3 2007/05/21 21:20:57 kevquinn Exp $ # $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-2.2.1.ebuild,v 1.7 2007/06/22 11:22:42 suka Exp $
This has been fixed a long time ago, all it needs is a rebuild of hunspell (which every one should have done until now, as there are more recent versions in the tree), so closing
This was fixed in OO, but workarounds in hunspell were not dropped. They are droped in hunspell-1.2.4.