Bug 11798

Summary: Undefined symbols in neo_cgi.so
Product: Sisyphus Reporter: Grigory Batalov <bga>
Component: clearsilver-pythonAssignee: Ivan Fedorov <ns>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: blocker    
Priority: P2 CC: icesik, ldv, ns
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 11923    

Description Grigory Batalov 2007-05-18 01:46:13 MSD
При сборке в хэшере в 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: "Traceback (most
recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 570, in run
    protocolStatus, appStatus = self.server.handler(self)
  File "/usr/lib/python2.4/site-packages/trac/web/_fcgi.py", line 1256, in handler
    result = self.application(environ, start_response)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 363, in
dispatch_request
    env_paths)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 456, in
send_project_index
    req.hdf = HDFWrapper(loadpaths)
  File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 135, in
__init__
    raise TracError, "ClearSilver not installed (%s)" % e
TracError: ClearSilver not installed
(/usr/lib64/python2.4/site-packages/neo_cgi.so: undefined symbol: deflate)"
while reading response header from upstream, client: 195.19.240.20, server: *,
URL: "/projects/", upstream: "fastcgi://127.0.0.1:1027", host: "81.222.141.17"
Comment 1 Grigory Batalov 2007-06-05 17:02:19 MSD
Долинковать neo_cgi.so с zlib у меня не получилось, поэтому я просто отключил
компрессию страниц HTML (deflate). Это исправление опубликовано в git:
http://git.altlinux.org/people/bga/packages/?p=clearsilver.git . Хочу NMU по
причине нерабочего trac.
Comment 2 Andrey Rahmatullin 2007-06-06 07:41:57 MSD
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, "\n"):
       if lib not in LIBRARIES:
        inserted.append(lib)
        sys.stderr.write("adding lib %s\n" % lib)
-    LIBRARIES = inserted + LIBRARIES
+    LIBRARIES = LIBRARIES + inserted
   elif var == "LDFLAGS":
     matches = re.findall("-L(\S+)", val)
     inserted = []


Как-то так.
P.S. 15 минут хватило.
Comment 3 Dmitry V. Levin 2007-06-30 02:12:00 MSD
Актуально для 4.0/Server.