Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105885 - problem: emerge of app-text/lout 3.30 with USE=zlib
Summary: problem: emerge of app-text/lout 3.30 with USE=zlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 14:57 UTC by Dirk Schoenberger
Modified: 2006-04-12 10: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 Dirk Schoenberger 2005-09-13 14:57:21 UTC
successful emerge of app-text/lout 3.30

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.52-r1 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power Macintosh)
===============================================================
==
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss imagemagick nls png ppc-macos sdl userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Fabian Groffen gentoo-dev 2005-09-21 12:06:40 UTC
with USE=zlib:

gcc -o lout z01.o z02.o z03.o z04.o z05.o z06.o z07.o z08.o z09.o z10.o z11.o
z12.o z13.o z14.o z15.o z16.o z17.o z18.o z19.o z20.o z21.o z22.o z23.o z24.o
z25.o z26.o z27.o z28.o z29.o z30.o z31.o z32.o z33.o z34.o z35.o z36.o z37.o
z38.o z39.o z40.o z41.o z42.o z43.o z44.o z45.o z46.o z47.o z48.o z49.o z50.o
z51.o z52.o /usr/lib/libz.a -lm
powerpc-apple-darwin8-gcc-4.0.0: /usr/lib/libz.a: No such file or directory
make: *** [lout] Error 1
make: *** Waiting for unfinished jobs....
chmod a+x prg2lout
make: *** Waiting for unfinished jobs....

looks like it's trying to link statically...
Comment 2 Dirk Schoenberger 2005-09-21 12:30:43 UTC
> looks like it's trying to link statically...

This is an ebuild problem.
If you replace

       use zlib && myconf="$myconf PDF_COMPRESSION=1 ZLIB=/usr/lib/libz.a"
by
       use zlib && myconf="$myconf PDF_COMPRESSION=1 ZLIB=-lz"

in lout-3.30.ebuild, even a

USE="zlib" emerge lout works
Comment 3 Fabian Groffen gentoo-dev 2005-09-21 13:01:54 UTC
then the question is, why is it there like that?  I guess it was intended to be
a static linkage, so changing it, makes it dynamic, also for linux.
Comment 4 Dirk Schoenberger 2005-09-21 14:10:50 UTC
> then the question is, why is it there like that?  I guess it was intended to be
> a static linkage, so changing it, makes it dynamic, also for linux.

No idea. With static linkage it seems to work, at least a "lout -?"
Additionally, the recommended version of zlib is rather ancient, but the current zlib version still works.

Can you check with the ebuild maintainer?
Comment 5 Fabian Groffen gentoo-dev 2005-09-22 10:57:01 UTC
I checked that it compiles and runs on linux.

- app-text is no emailable herd
- there is no maintainer of the package
Comment 6 Dirk Schoenberger 2005-09-22 11:26:02 UTC
> I checked that it compiles and runs on linux.

> - app-text is no emailable herd

lout is a markup language, so perhaps it could become part of the text-markup herd?
Comment 7 Dirk Schoenberger 2005-09-23 13:58:03 UTC
If work is done here, perhaps also the version could be updated to lout 3.31? (released august 2005)
Comment 8 Fabian Groffen gentoo-dev 2005-09-24 00:46:12 UTC
hehe, you're quite active on this ;)

I need a knowledgable person to advise me here on how to continue.  Will see if
I can get some advice in the IRC channels today.
Comment 9 Fabian Groffen gentoo-dev 2005-10-02 13:01:03 UTC
- bumped to version 3.31
- added ~ppc-macos
- replaced /usr/lib/libz.a by -lz