From: REAL <root@mmedia2.kemsu.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] python-module-apt
Date: Thu, 12 Aug 2010 17:48:45 +0800
Message-ID: <4C63C37D.30205@mmedia2.kemsu.ru> (raw)
In-Reply-To: <20100812102944.GC10056@wo.int.altlinux.org>
Со свигом, кажется, разобрался.
Dmitry V. Levin пишет:
>>> Не линкуется с liapt-pkg, вследствие чего
>>> пакет получается абсолютно
>>> нерабочим! (смеётся) Ну так надо чтобы
>>> линковался...
>> А это уже где-то в другом месте проблема,
>> gcc-c++ называется.
>
> Не верю.
Понакидаю цитат, а вопрос будет в конце.
$ make
g++ -g -fPIC -shared -I/usr/include -I/usr/include/python2.6 -DWITH_LUA \
-lapt-pkg -o _apt.so apt_wrap.cxx
apt_wrap.cxx: In member function 'virtual void ROpPyProgress::Update()':
apt_wrap.cxx:3644: warning: deprecated conversion from string constant
to 'char*'
apt_wrap.cxx: In member function 'virtual void ROpPyProgress::Done()':
apt_wrap.cxx:3653: warning: deprecated conversion from string constant
to 'char*'
apt_wrap.cxx: In function 'PyObject*
_wrap_GlobalError_Errno(PyObject*, PyObject*)':
apt_wrap.cxx:28190: warning: format not a string literal and no format
arguments
apt_wrap.cxx: In function 'PyObject*
_wrap_GlobalError_WarningE(PyObject*, PyObject*)':
apt_wrap.cxx:28236: warning: format not a string literal and no format
arguments
apt_wrap.cxx: In function 'PyObject*
_wrap_GlobalError_Error(PyObject*, PyObject*)':
apt_wrap.cxx:28272: warning: format not a string literal and no format
arguments
apt_wrap.cxx: In function 'PyObject*
_wrap_GlobalError_Warning(PyObject*, PyObject*)':
apt_wrap.cxx:28306: warning: format not a string literal and no format
arguments
/usr/include/apt-pkg/cacheiterators.h: At global scope:
/usr/include/apt-pkg/cacheiterators.h:81: warning: inline function
'pkgCache::VerIterator pkgCache::PkgIterator::TargetVer() const' used
but never defined
$ ldd _apt.so
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b01aad66000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b01ab06c000)
libc.so.6 => /lib64/libc.so.6 (0x00002b01ab283000)
libm.so.6 => /lib64/libm.so.6 (0x00002b01ab5d8000)
/lib64/ld-linux-x86-64.so.2 (0x00002b01aa882000)
$ export PYTHONPATH=$PWD
$ python -c "import apt"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "apt.py", line 25, in <module>
_apt = swig_import_helper()
File "apt.py", line 21, in swig_import_helper
_mod = imp.load_module('_apt', fp, pathname, description)
ImportError: ./_apt.so: undefined symbol: _ZN16pkgAcquireStatus7FetchedEmm
$ findsym _ZN16pkgAcquireStatus7FetchedEmm
/usr/lib64/libapt-pkg-libc6.9-6.so.2: 00000000000608d0 T
_ZN16pkgAcquireStatus7FetchedEmm
/usr/lib64/libapt-pkg.so: 00000000000608d0 T
_ZN16pkgAcquireStatus7FetchedEmm
И что я не так делаю?
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
next prev parent reply other threads:[~2010-08-12 9:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 6:37 REAL
2010-08-12 7:45 ` Alexey Tourbin
2010-08-12 6:54 ` REAL
2010-08-12 7:58 ` Alexey Tourbin
2010-08-12 7:11 ` REAL
2010-08-12 10:29 ` Dmitry V. Levin
2010-08-12 9:40 ` REAL
2010-08-12 10:43 ` Dmitry V. Levin
2010-08-12 9:48 ` REAL [this message]
2010-08-12 9:50 ` REAL
2010-08-12 11:01 ` Dmitry V. Levin
2010-08-12 10:08 ` REAL
2010-08-12 11:14 ` Dmitry V. Levin
2010-08-12 10:29 ` REAL
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C63C37D.30205@mmedia2.kemsu.ru \
--to=root@mmedia2.kemsu.ru \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git