<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>11798</bug_id>
          
          <creation_ts>2007-05-18 01:46:10 +0400</creation_ts>
          <short_desc>Undefined symbols in neo_cgi.so</short_desc>
          <delta_ts>2007-06-30 03:29:34 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>clearsilver-python</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>11923</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Grigory Batalov">bga</reporter>
          <assigned_to name="Ivan Fedorov">ns</assigned_to>
          <cc>icesik</cc>
    
    <cc>ldv</cc>
    
    <cc>ns</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50345</commentid>
    <comment_count>0</comment_count>
    <who name="Grigory Batalov">bga</who>
    <bug_when>2007-05-18 01:46:13 +0400</bug_when>
    <thetext>При сборке в хэшере в neo_cgi.so обнаруживаются undefined symbols:
...
Verifying ELF objects in /usr/src/tmp/clearsilver-buildroot
(arch=normal,fhs=normal,rpath=normal,stack=n
ormal,textrel=normal,unresolved=normal)
verify-elf: WARNING: ./usr/lib64/python2.4/site-packages/neo_cgi.so: undefined
symbol: deflate
verify-elf: WARNING: ./usr/lib64/python2.4/site-packages/neo_cgi.so: undefined
symbol: crc32
verify-elf: WARNING: ./usr/lib64/python2.4/site-packages/neo_cgi.so: undefined
symbol: deflateEnd
verify-elf: WARNING: ./usr/lib64/python2.4/site-packages/neo_cgi.so: undefined
symbol: deflateInit2_
...

Подозреваю, что из-за этого не работает trac.fcgi, т.к. считает, что clearsilver
не установлен:

2007/05/18 01:32:00 [error] 9909#0: *17 FastCGI sent in stderr: &quot;Traceback (most
recent call last):
  File &quot;/usr/lib/python2.4/site-packages/trac/web/_fcgi.py&quot;, line 570, in run
    protocolStatus, appStatus = self.server.handler(self)
  File &quot;/usr/lib/python2.4/site-packages/trac/web/_fcgi.py&quot;, line 1256, in handler
    result = self.application(environ, start_response)
  File &quot;/usr/lib/python2.4/site-packages/trac/web/main.py&quot;, line 363, in
dispatch_request
    env_paths)
  File &quot;/usr/lib/python2.4/site-packages/trac/web/main.py&quot;, line 456, in
send_project_index
    req.hdf = HDFWrapper(loadpaths)
  File &quot;/usr/lib/python2.4/site-packages/trac/web/clearsilver.py&quot;, line 135, in
__init__
    raise TracError, &quot;ClearSilver not installed (%s)&quot; % e
TracError: ClearSilver not installed
(/usr/lib64/python2.4/site-packages/neo_cgi.so: undefined symbol: deflate)&quot;
while reading response header from upstream, client: 195.19.240.20, server: *,
URL: &quot;/projects/&quot;, upstream: &quot;fastcgi://127.0.0.1:1027&quot;, host: &quot;81.222.141.17&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51109</commentid>
    <comment_count>1</comment_count>
    <who name="Grigory Batalov">bga</who>
    <bug_when>2007-06-05 17:02:19 +0400</bug_when>
    <thetext>Долинковать neo_cgi.so с zlib у меня не получилось, поэтому я просто отключил
компрессию страниц HTML (deflate). Это исправление опубликовано в git:
http://git.altlinux.org/people/bga/packages/?p=clearsilver.git . Хочу NMU по
причине нерабочего trac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51126</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2007-06-06 07:41:57 +0400</bug_when>
    <thetext>diff --git a/clearsilver/python/setup.py b/clearsilver/python/setup.py
index 62302d3..8fb53db 100755
--- a/clearsilver/python/setup.py
+++ b/clearsilver/python/setup.py
@@ -56,7 +56,7 @@ for line in string.split(rules, &quot;\n&quot;):
       if lib not in LIBRARIES:
        inserted.append(lib)
        sys.stderr.write(&quot;adding lib %s\n&quot; % lib)
-    LIBRARIES = inserted + LIBRARIES
+    LIBRARIES = LIBRARIES + inserted
   elif var == &quot;LDFLAGS&quot;:
     matches = re.findall(&quot;-L(\S+)&quot;, val)
     inserted = []


Как-то так.
P.S. 15 минут хватило.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52219</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2007-06-30 02:12:00 +0400</bug_when>
    <thetext>Актуально для 4.0/Server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52220</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2007-06-30 02:45:16 +0400</bug_when>
    <thetext>http://git.altlinux.org/people/ldv/packages/?p=clearsilver.git;a=tag;h=0.10.4-alt2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>