Re: undefined symbol: deflate
Brandon Long <[email protected]>
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20070929101909.GA17462@bl1> |
Thanks for the thorough bug report. Its possible we could look for -lz
in LIBRARIES and either fix LIBRARIES order, or do the extra_link_args
trick if its there.
Brandon
On 09/29/07 jhmark0 uttered the following other thing:
> hi all,
>
> I built ClearSilver 0.10.5 on Linux and found that neo_cgi wouldn't
> load... producing this error message at runtime:
>
> neo_cgi.so: undefined symbol: deflate
>
> A number of other people on the Internet seemed to have run into this
> also, but I could not find a definitive solution.
>
> I noticed that the problem was caused by the ordering of the ld
> command line.
> The "-lz" option was occurring before the other -l options
> containing the ClearSilver code. This caused "deflate" to be left
> undefined in the symbol table, instead of being loaded from libz.a.
>
> I was able to get it working by patching python/setup.py to add a
> second "-lz" at the end (see below). This is not a general solution
> since it assumes that compression is enabled. Is there a better way
> of dealing with link order issues in distutils?
>
> thanks,
>
> Jonathan Mark
>
> *** setup.py.old 2007-09-28 21:01:02.000000000 -0700
> --- setup.py 2007-09-28 20:58:55.000000000 -0700
> ***************
> *** 122,127 ****
> --- 122,128 ----
> include_dirs=INC_DIRS,
> library_dirs=LIB_DIRS,
> libraries=LIBRARIES,
> + extra_link_args = ["-lz"],
> )]
> }
>
>
>
>
> Yahoo! Groups Links
>
>
>
--
"A fool: anyone who thinks he sees what God is doing."
-- Kurt Vonnegut, Jr.
http://www.fiction.net/blong/