Could not compile pyclamavwith python on Solaris 8

From: sunmanagers@freehome.ch
Date: Tue Dec 14 2004 - 16:44:45 EST


Hi Sunmanagers

Server is Solaris 8 Ultra 10 512 MB Ram, Core install with latest
recommended Cluster:

Installed sunfreeware Packages:

application SMCautoc autoconf
application SMCautom automake
application SMCgcc gcc
application SMClibt libtool
application SMCliconv libiconv
application SMCmake make
application SMCncurs ncurses
application SMCpythn python

Installed SunSolaris orig Packages:

system SFWaconf autoconf - GNU autoconf
system SFWamake automake - GNU automake
system SFWgcc gcc - GNU Compiler Collection
system SFWgcmn gcmn - Common GNU package
system SFWgm4 GNU m4 - macro processor
system SUNWadmr System & Network Administration Root
system SUNWarc Archive Libraries
system SUNWarcx Archive Libraries (64-bit)
system SUNWbcp SunOS 4.x Binary Compatibility
system SUNWbtool CCS tools bundled with SunOS
system SUNWbtoox CCS libraries bundled with SunOS (64-bit)
system SUNWbzip The bzip compression utility
system SUNWcar Core Architecture, (Root)
system SUNWcarx Core Architecture, (Root) (64-bit)
system SUNWcg6 GX (cg6) Device Driver
system SUNWcg6x GX (cg6) Device Driver (64-bit)
system SUNWcsd Core Solaris Devices
system SUNWcsl Core Solaris, (Shared Libs)
system SUNWcslx Core Solaris Libraries (64-bit)
system SUNWcsr Core Solaris, (Root)
system SUNWcsu Core Solaris, (Usr)
system SUNWcsxu Core Solaris (Usr) (64-bit)
system SUNWdfb Dumb Frame Buffer Device Drivers
system SUNWeridx Sun RIO 10/100 Mb Ethernet Drivers (64-bit)
system SUNWesu Extended System Utilities
system SUNWgzip The GNU Zip (gzip) compression utility
system SUNWhea SunOS Header Files
system SUNWhmd SunSwift SBus Adapter Drivers
system SUNWhmdx SunSwift SBus Adapter Drivers (64-bit)
system SUNWipc Interprocess Communications
system SUNWipcx Interprocess Communications (64-bit)
system SUNWkey Keyboard configuration tables
system SUNWkvm Core Architecture, (Kvm)
system SUNWkvmx Core Architecture (Kvm) (64-bit)
system SUNWlibC Sun Workshop Compilers Bundled libC
system SUNWlibCx Sun WorkShop Bundled 64-bit libC
system SUNWlibm Sun WorkShop Bundled libm
system SUNWlibms Sun WorkShop Bundled shared libm
system SUNWlmsx Sun WorkShop Bundled 64-bit shared libm
system SUNWloc System Localization
system SUNWlocx System Localization (64-bit)
system SUNWnamos Northern America OS Support
system SUNWowbcp OpenWindows binary compatibility
system SUNWpd PCI Drivers
system SUNWpdx PCI Drivers (64-bit)
system SUNWpl5u Perl 5.005_03
system SUNWrmodu Realmode Modules, (Usr)
system SUNWscbcp SPARCompilers Binary Compatibility Libraries
system SUNWscpr Source Compatibility, (Root)
system SUNWscpu Source Compatibility, (Usr)
system SUNWsprot Solaris Bundled tools
system SUNWsprox Sun WorkShop Bundled 64-bit make library
system SUNWswmt Install and Patch Utilities
system SUNWtoo Programming Tools
system SUNWtoox Programming Tools (64-bit)
system SUNWxcu4 XCU4 Utilities

Modification to the ENV PATH

PATH=/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/open
win/bin:/bin:/usr/ucb:/opt/sfw/bin:/usr/ccs/bin

Installing prerequisites to compile SquidClamAV Redirector:

Python from sunfreeware
Gmp compiled no problems
Clamav compiled no problems

Beginning to compile pyclamav from
http://www.jackal-net.at/tiki-read_article.php?articleId=1

        # LD_LIBRARY_PATH=/usr/local/lib:/usr/local/include
        # export LD_LIBRARY_PATH

        # ln -s /opt/clamav-0.80/include/clamav.h
/usr/local/include/clamav.h

        # ln -s /opt/clamav-0.80/lib/libclamav.a /usr/local/lib/libclamav.a
        # ln -s /opt/clamav-0.80/lib/libclamav.la
/usr/local/lib/libclamav.la
        # ln -s /opt/clamav-0.80/lib/libclamav.so.1.0.4
/usr/local/lib/libclamav.so.1.0.4

        # mkdir /root/pyclamav
        # cd /root/pyclamav
        # mv pyclamav-0.2.1.tar.gz ./
        # gzip -dc pyclamav-0.2.1.tar.gz | tar xvf -

        # cd /root/pyclamav/pyclamav-0.2.1

        # /usr/local/bin/python setup.py build

blobGetFilename 0x6d0
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/../../../libclamav.a(blob.
o)
<unknown> 0x54
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/../../../libclamav.a(rebui
ldpe.o)
<unknown> 0x58
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/../../../libclamav.a(rebui
ldpe.o)
<unknown> 0x154
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/../../../libclamav.a(rebui
ldpe.o)
<unknown> 0x164
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/../../../libclamav.a(rebui
ldpe.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Could somebody explain me what this error messages means and how I could
solve this....! In tried also to installe sunfreeware binutils about some
recommendations found in google but I can do what I want I have allways the
same error message!

For short explanation this programm SquidClamav Redirector is used to scan
the stuff which goes through the proxy. Squid and all components are working
"very" well and fast after tuning with some kernel parameters etc. If
somebody has another recommandation about scanner and how to implement in
squid etc. I'm open for all suggestions. I'm little bit frustrated because
this is the last step for finishing the work of the installation but I can't
solve the error by compiling the pyclamav source. The source itself is very
small.

It would be nice if anybody could help me. Many thanks in advanced for the
help.

Andrea
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:52 EDT