Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91509 - OpenOffice-1.1.4-r1 / OpenOffice-Ximian-1.3.9-r1 - zlib.h not found
Summary: OpenOffice-1.1.4-r1 / OpenOffice-Ximian-1.3.9-r1 - zlib.h not found
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 19:35 UTC by Alvin A ONeal Jr
Modified: 2005-05-11 07:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alvin A ONeal Jr 2005-05-04 19:35:21 UTC
I compiled OpenOffice-1.1.3 just fine last week or so. My make.conf has only had minor changes. I believe everything on my system is current with the 20050502 portage tree.

Reproducible: Always
Steps to Reproduce:
1.a CFLAGS="-Os -pipe -march=i686" CXXFLAGS=-"${CFLAGS}" LDFLAGS="" emerge openoffice
1.b CFLAGS="-Os -pipe -march=i686" CXXFLAGS=-"${CFLAGS}" LDFLAGS="" emerge openoffice-ximian
Actual Results:  
checking for dmake... no
checking which zlib to use... external
checking for zlib.h... configure: error: zlib not found. install zlib

!!! ERROR: app-office/openoffice-1.1.4-r1 failed.

~~~~~~
# find / -name zlib.h
/usr/src/linux-2.6.11-gentoo-r5/include/linux/zlib.h
/usr/src/linux-2.6.11-gentoo-r6/include/linux/zlib.h
/usr/include/linux/zlib.h
/usr/include/zlib.h
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/zlib/zlib.h


Expected Results:  
Should have detected zlib.h

System uname: 2.6.11-gentoo-r5 i686 AMD Athlon(TM) XP 2600+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  1 2005, 07:03:06)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=i686 -mtune=athlon-xp -pipe -falign-functions=4 -fweb
-D_FILE_OFFSET_BITS=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=i686 -mtune=athlon-xp -pipe -falign-functions=4 -fweb
-D_FILE_OFFSET_BITS=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg candy ccache digest distlocks
fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -z combreloc -Wl,--enable-new-dtags"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac accessibility acpi aim alsa apache2 artworkextra audiofile avi
bash-completion berkdb bitmap-fonts bonobo cdparanoia cdr crypt cups curl
divx4linux dv dvd dvdr eds emboss encode exif fam flac flash foomaticdb fortran
ftp gcc gcj gd gdbm gif gimp gimp-print gnome gnomedb gnutls gphoto2 gpm
gstreamer gtk gtk2 gtkhtml hal hardened howl icq imagemagick imlib innodb jabber
java jpeg ldap libg++ libwww mad maildir mailwrapper mikmod mime ming mmx mmx2
mono motif mozilla mp3 mpeg msn mysql mythtv ncurses nls nntp nptl nptlonly
nvidia ogg oggvorbis openal opengl oscar oss pam pam-mysql pcre pda pdflib perl
php pic png ppds python quicktime readline samba scanner sdl spell sse ssl svga
tcltk tcpd threads tidy tiff truetype truetype-fonts type1-fonts unicode usb
vorbis wmf x86 xine xinerama xml xml2 xmms xprint xv xvid yahoo zlib
userland_GNU kernel_linux libc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2005-05-04 23:52:21 UTC
Looks like you have a leftover from an old zlib-install left on your hd. Try to remove

/usr/include/linux/zlib.h

and then try the build again
Comment 2 Alvin A ONeal Jr 2005-05-05 14:37:27 UTC
In attempts to grab error messages I was doing this

CFLAGS="-Os -pipe -march=i686" CXXFLAGS=-"${CFLAGS}" LDFLAGS="" emerge openoffice-ximian
CFLAGS="-Os -pipe -march=i686" CXXFLAGS=-"${CFLAGS}" LDFLAGS="" emerge openoffice
CFLAGS="-Os -pipe -march=i686" CXXFLAGS=-"${CFLAGS}" LDFLAGS="" emerge openoffice
CFLAGS="-Os -pipe -march=i686" CXXFLAGS=-"${CFLAGS}" LDFLAGS="" emerge openoffice-ximian
rm /usr/include/linux/zlib.h
CFLAGS="-Os -pipe -march=i686" CXXFLAGS=-"${CFLAGS}" LDFLAGS="" emerge openoffice-ximian
emerge -C zlib && emerge zlib && CFLAGS="-Os -pipe -march=i686" CXXFLAGS=-"${CFLAGS}" LDFLAGS="" emerge openoffice-ximian

and I got the zlib error message, then I got an entirely different error message which seemed to come several minutes later than the zlib error message would, then I tried again and got the zlib error message again. Then I did a plain old
emerge openoffice-ximian
I left for work and have come home... and it's still going!
Comment 3 Alvin A ONeal Jr 2005-05-05 14:44:46 UTC
And just as I post that, this happens:

=============
Building project external
=============
/var/tmp/portage/openoffice-ximian-1.3.9-r1/work/external/w4w
mkout -- version: 1.3
------------------------------
Making: ../unxlngi4.pro/misc/w4w.dpc
dmake subdmake=true  -f makefile.mk strip="true" product="full" depend=t ALLDPC
------------------------------
No Dependencies
-------------
/var/tmp/portage/openoffice-ximian-1.3.9-r1/work/external/gcc3_specific
gccinstlib.pl libstdc++.so.6 /var/tmp/portage/openoffice-ximian-1.3.9-r1/work/solver/645/unxlngi4.pro/lib
copy /usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/libstdc++.so.6 to /var/tmp/portage/openoffice-ximian-1.3.9-r1/work/solver/645/unxlngi4.pro/lib
gccinstlib.pl libgcc_s.so.1 /var/tmp/portage/openoffice-ximian-1.3.9-r1/work/solver/645/unxlngi4.pro/lib
copy /usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/libgcc_s.so.1 to /var/tmp/portage/openoffice-ximian-1.3.9-r1/work/solver/645/unxlngi4.pro/lib
rm -f /var/tmp/portage/openoffice-ximian-1.3.9-r1/work/solver/645/unxlngi4.pro/lib/libgcc_s.so
ln -s libgcc_s.so.1 /var/tmp/portage/openoffice-ximian-1.3.9-r1/work/solver/645/unxlngi4.pro/lib/libgcc_s.so
/var/tmp/portage/openoffice-ximian-1.3.9-r1/work/external/glibc
dmake:  /var/tmp/portage/openoffice-ximian-1.3.9-r1/work/solenv/inc/target.mk:  line 2967:  Error -- Multiply defined recipe for target gnomedb
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-ximian-1.3.9-r1/work/external/glibc

which looks remarkably similar to the problem I was having before I left for work... so maybe the dog hit the up arrow and enter just before I walked in?
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2005-05-07 09:26:10 UTC
Are you sure you have enough free diskspace. Also can you reproduce this EXACT error multiple times?
Comment 5 Alvin A ONeal Jr 2005-05-07 10:57:58 UTC
Yes, I have plenty of disk space.
Yes, every time I get either the error message about gcc3_specific (ends with something about gnomedb) or the message about zlib.h missing.
Perhaps it doesn't compile with gcc3.4.x?
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2005-05-07 11:46:42 UTC
It normally compiles with gcc-3.4. btw: Why do you use gcc-3.4? They are not stable on x86 and you seem to use stable. Mixing stable and unstable is no good idea, so try to compile it with gcc-3.3
Comment 7 Alvin A ONeal Jr 2005-05-07 12:10:15 UTC
Why am I mixing stable and unstable?

Well, a few weeks ago I was thinking about rebuilding my system and I wanted to make it as fast as possible. I read up on opts on the gcc site and found out that all this -O3 -funroll-loops crap people do actually slows down your average desktop system - so I read some more and made my best educated guesses as to what flags to use and posted it in a gentoo forum - http://forums.gentoo.org/viewtopic-p-2272151.html. 

Some guys got back to me and the sounded like they knew what they were talking about and so I followed their suggestions - one of which was to use gcc-3.4.3.

I've had very few problems and since I already have Ooo-1.1.4 I'm not upset enough to recompile gcc-3.3.4 to get XOoo-1.3.9-r1. The only reason I really want it is that I'm trying to write my own install guide using the May 2nd portage snapshot and I'd prefer that whoever may read it has as few issues as computorially possible.

So that's my life story...

I think my next step is to mask Ooo-1.1.4-r1 and see if XOoo-1.3.9-r1 will use 1.1.4 instead.
Comment 8 Patrick Fourniols 2005-05-08 06:26:43 UTC
same problem with hylafax on 1 computer and not on 3 others will search why later.
sames files on the 4 : don't know why for now ;)
Comment 9 Patrick Fourniols 2005-05-09 03:06:00 UTC
found in /usr/lib libz.so.1 and libz.so.1.1.4.
they don't belongs to any package, so moved them out of lib path and hylafax compiles fine now.
perhaps on this computer i have made a sync and an update the wrong day ;)
Comment 10 Andreas Proschofsky (RETIRED) gentoo-dev 2005-05-11 07:53:21 UTC
@Patrick: Your bug has nothing do with the original report.

@Alvin: Still your original problem is solved, so closing this, if you run into new trouble with oox-1.3.9-r1 please open a new bug