Author Topic: gzdirect seems to be on python missing list  (Read 825 times)

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
gzdirect seems to be on python missing list
« on: July 11, 2011, 08:28:57 AM »
Hi folks;

Trying to install the quartus software for linux, which will allow me to work with an altera DE1 fpga board.

All modes of the installer exit fairly rapidly with the same error.

Traceback (most recent call last):
  File "<string>", line 23, in <module>
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 436, in importHook
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 521, in doimport
  File "/build/swbuild/SJ/nightly/11.0/157/l32/work/installers/linux32/build/pyi.linux2/altera_installer_cmd/outPYZ1.pyz/cli", line 23, in <module>
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 436, in importHook
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 521, in doimport
  File "/build/swbuild/SJ/nightly/11.0/157/l32/work/installers/linux32/build/pyi.linux2/altera_installer_cmd/outPYZ1.pyz/altera_installer", line 34, in <module>
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 436, in importHook
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 521, in doimport
  File "/build/swbuild/SJ/nightly/11.0/157/l32/work/installers/linux32/build/pyi.linux2/altera_installer_cmd/outPYZ1.pyz/gui_common", line 17, in <module>
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 477, in importHook
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 495, in doimport
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 297, in getmod
  File "/tools/python/2.6.4/linux32/pyinstaller/archive.py", line 468, in getmod
  File "/tools/python/2.6.4/linux32/pyinstaller/iu.py", line 109, in getmod
ImportError: /usr/lib/libxml2.so.2: undefined symbol: gzdirect

And the installer or ./setup exits at this point.

What do I need to install? (I have checked the quartus-11's dependency list as noted in the INSTALL.TXT file, and installed any likely suspects but have not affected this error in any way.

Or is this actually missing from the python builds?

FWIW, Google spits out that other distros are getting this same error although most reports are not linked to this particular SW package.

Thanks & Cheers, Gene

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: gzdirect seems to be on python missing list
« Reply #1 on: July 12, 2011, 09:17:16 AM »
I believe I may have found it, but I am not up to the fixing of it.

It seems our version of zlib is too old.  There is a patch attached to an RH bugzilla entry, which I believe has now been applied to the zlib-1.25 release.

Ours is version 1.23, which does not contain this patch, nor the gzdirect call, hence the killer error I am getting when trying to install the altera quartus FPGA free version software.

Can this be updated?  Please.

Cheers, Gene

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: gzdirect seems to be on python missing list
« Reply #2 on: July 14, 2011, 08:52:02 AM »
I am still stumped.

I have built, and installed in usr/local/lib, the zlib-1.2.5 tarball.

Added /usr/local/lib to /etc/ld.so.conf.d/userlib.conf so ldconfig could find it.

renamed the libz.so.1.2.3 in /lib & re-ran ldconfig, whose output now looks correct

Moved and renamed the zconf.h and zlib.h files in usr/include, and copied the ones from /usr/local/include into /usr/include.
Copied the zlib.pc file now in /usr/local/lib/pkgconfig to /usr/lib/pkgconfig since I don't think the pkgconfig search normally includes the path /usr/local/lib/pkgconfig.

Still the same error when attempting to install the altera quartus package, undefined gzdirect in libxml2.so.2, which seems to be correct as:
[root@coyote Download]# objdump -T /usr/lib/libxml2.so.2.7.8 |grep gzdirect
00000000      DF *UND*  00000000              gzdirect

But while I now have:
[root@coyote Download]# objdump -T /usr/local/lib/libz.so.1 |grep gzdirect
00007660 g    DF .text  00000041  ZLIB_1.2.2.3 gzdirect

It has not propagated back to libxml2.so.2 so that the quartus installer can find it.

Is there a simple, just relink libxml2.so.2 step that I can do?

How?

Many thanks.

Cheers, Gene

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: gzdirect seems to be on python missing list
« Reply #3 on: July 19, 2011, 09:01:51 AM »
I have been studying the man page for ld, but no method of just updating a single entry seems to jump out at me.

Is the such an option command combination for ld that would allow ld to just update the link for this single function?

Thanks all.

Cheers, Gene

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: gzdirect seems to be on python missing list
« Reply #4 on: July 19, 2011, 10:50:04 AM »
I am still stumped.

I have built, and installed in usr/local/lib, the zlib-1.2.5 tarball.

Added /usr/local/lib to /etc/ld.so.conf.d/userlib.conf so ldconfig could find it.

renamed the libz.so.1.2.3 in /lib & re-ran ldconfig, whose output now looks correct

Moved and renamed the zconf.h and zlib.h files in usr/include, and copied the ones from /usr/local/include into /usr/include.
Copied the zlib.pc file now in /usr/local/lib/pkgconfig to /usr/lib/pkgconfig since I don't think the pkgconfig search normally includes the path /usr/local/lib/pkgconfig.

Still the same error when attempting to install the altera quartus package, undefined gzdirect in libxml2.so.2, which seems to be correct as:
[root@coyote Download]# objdump -T /usr/lib/libxml2.so.2.7.8 |grep gzdirect
00000000      DF *UND*  00000000              gzdirect

But while I now have:
[root@coyote Download]# objdump -T /usr/local/lib/libz.so.1 |grep gzdirect
00007660 g    DF .text  00000041  ZLIB_1.2.2.3 gzdirect

It has not propagated back to libxml2.so.2 so that the quartus installer can find it.

Is there a simple, just relink libxml2.so.2 step that I can do?

How?

Many thanks.

Cheers, Gene
If libxml2 does not have "gzdirect" support build into it then the only solution is to rebuild it with the support. There is no way around that. Doing anything with any other package will not make a difference. Best thing to do is make a package request and ask for the support to be added.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: gzdirect seems to be on python missing list
« Reply #5 on: July 19, 2011, 12:40:53 PM »
Which is what I have now done in the broken package thread/section.  According to the libxml site and forum, this problem was encountered and likely fixed in Oct 2010.

Thanks.

Cheers & thanks, Gene