[gs-devel] A bug in build gs with use of shared zlib

Ralph Giles giles at ghostscript.com
Tue Apr 17 22:20:53 PDT 2007


Thanks for the patch. Adding -lz to the OBJ line is a bit of a hack 
though. I'll try to think of something better. In the meantime, can
you just configure with --disable-compile-inits? That makes more sense
in a normal *nix package anyway.

 -r

On Wed, Apr 18, 2007 at 12:23:26AM +0200, Didier Link wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Hi all,
> 
> I use the system zlib (linux amd64 computer with an up to date
> Gentoo) for building gs (the last 8.56) and I've a build error during
> linking of mkromfs. ld can't find compress.o
> 
> Of course compress.o isn't present because of the sharde zlib I want
> use. After looking in conditionnal make documentation I found a solution
> on unix systems. See the patch attached.
> 
> Can you consider integrate this patch or a revised one for a better
> code ? ;)
> 
> Also can you consider to make this type of change with other
> architectures supported by gs ?
> 
> Thanks for your attention.
> 
> Didier LINK
> 
> - -- 
> Didier Link <didier at famille-link.fr>
> Jabber : zanfib at ims.kelkoo.net
> MSN : zanfib at hotmail.fr
> SIP : Zanfib at ekiga.net
> 
> Clé GPG : 75BAC9EE
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> 
> iD8DBQFGJUjekyPwinW6ye4RAh87AJ4soRen5qKy3OKIIypYND/hW+ASoACeJfsF
> BG/Nn+hiOUb588uLTL8pwoM=
> =jHI9
> -----END PGP SIGNATURE-----

> --- ghostscript-8.56/src/unix-aux.mak	2006-08-01 02:06:02.000000000 +0200
> +++ ghostscript/src/unix-aux.mak	2007-04-17 23:59:21.000000000 +0200
> @@ -77,13 +77,25 @@
>  $(GENINIT_XE): $(GLSRC)geninit.c $(AK) $(GENINIT_DEPS)
>  	$(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENINIT_XE) $(GLSRC)geninit.c
>  
> -MKROMFS_OBJS=$(MKROMFS_ZLIB_OBJS) $(GLOBJ)gscdefs.$(OBJ) $(GLOBJ)gsmisc.$(OBJ) \
> +# If zlib is shared, mkromfs must depend on -lz
> +
> +ifeq ($(SHARE_ZLIB),1)
> +MKROMFS_OBJS= \
> +else
> +MKROMFS_OBJS=$(MKROMFS_ZLIB_OBJS) \
> +endif
> + $(GLOBJ)gscdefs.$(OBJ) $(GLOBJ)gsmisc.$(OBJ) \
>   $(GLOBJ)gpmisc.$(OBJ) $(GLOBJ)gslibctx.$(OBJ) $(GLOBJ)gp_getnv.$(OBJ) \
>   $(GLOBJ)gp_unix.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_unifn.$(OBJ) \
>   $(GLOBJ)gp_stdia.$(OBJ) $(GLOBJ)gsutil.$(OBJ)
>  
>  $(MKROMFS_XE): $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS)
> -	$(CCAUX) $(GENOPT) $(CFLAGS_DEBUG) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE) $(MKROMFS_OBJS) -lm
> +ifeq ($(SHARE_ZLIB),1)
> +	$(CCAUX) $(GENOPT) $(CFLAGS_DEBUG) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE) $(MKROMFS_OBJS) -lm -lz 
> +else
> +	$(CCAUX) $(GENOPT) $(CFLAGS_DEBUG) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE) $(MKROMFS_OBJS) -lm 
> +endif
> +
>  
>  # Query the environment to construct gconfig_.h.
>  # The "else true;" is required because Ultrix's implementation of sh -e

> _______________________________________________
> gs-devel mailing list
> gs-devel at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/gs-devel




More information about the gs-devel mailing list