From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [sisyphus] dbmail-2.2.4
Date: Sun, 01 Apr 2007 14:24:28 +0400
Message-ID: <460F885C.6070109@stc.donpac.ru> (raw)
In-Reply-To: <460EB74E.2050200@stc.donpac.ru>
> gcc -g -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/gmime-2.0 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -W -Wall -Wpointer-arith -Wstrict-prototypes
> -o .libs/dbmail-smtp main.o -Wl,--export-dynamic -lcrypt -lgmime-2.0
> -lz -lnsl -lgobject-2.0 -lglib-2.0 ./.libs/libdbmail.so -lldap
> -Wl,--rpath -Wl,/usr/local/lib/dbmail
> ./.libs/libdbmail.so: undefined reference to `g_module_build_path'
> ./.libs/libdbmail.so: undefined reference to `g_module_symbol'
> ./.libs/libdbmail.so: undefined reference to `g_module_supported'
> ./.libs/libdbmail.so: undefined reference to `g_module_open'
> ./.libs/libdbmail.so: undefined reference to `g_module_error'
> collect2: ld returned 1 exit status
> make[2]: *** [dbmail-smtp] Error 1
>
> Ищем, что прилинковать:
>
> $ find -name *.so | xargs grep g_module_build_path
> Binary file ./.libs/libdbmail.so matches
> $ nm -CD ./.libs/libdbmail.so | grep g_module_build_path
> U g_module_build_path
>
> Итак, у нас в коде нет библиотек, экспортирующих g_module_build_path,
> поэтому таковые следует искать в /usr/lib, в нашем случае это
> libgmodule-2.0.so, т.е. дописывать надо -lgmodule-2.0
>
> Ищем, куда дописывать:
>
> $ find -name Makefile.am | xargs grep libdbmail_la_LIBADD
> ./Makefile.am:libdbmail_la_LIBADD = @MYSQLLTLIB@ @PGSQLLTLIB@
> @SQLITELTLIB@ @SORTLTLIB@ @AUTHLTLIB@
Дописывание -lgmodule-2.0 в AM_LDFLAGS в Makefile.am и
autoreconf -fisv
./configure --with-mysql --with-pgsql --with-auth-ldap --with-sieve
make
проходят без ошибок. Дописывание -lgmodule-2.0 в libdbmail_la_LIBADD в
Makefile.am приводит к undefined reference. Почему? Куда и в каких
случаях положено добавлять недолинкованные библиотеки?
--
С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2007-04-01 10:24 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-31 12:49 ` Eugene Prokopiev
2007-03-31 14:20 ` Hihin Ruslan
2007-03-31 18:35 ` Eugene Prokopiev
2007-03-31 19:40 ` Hihin Ruslan
2007-03-31 20:04 ` Eugene Prokopiev
2007-03-31 21:25 ` Hihin Ruslan
2007-04-01 9:43 ` Eugene Prokopiev
2007-04-01 10:17 ` Eugene Prokopiev
2007-04-01 10:27 ` Hihin Ruslan
2007-04-01 12:21 ` Eugene Prokopiev
2007-04-01 12:24 ` Eugene Prokopiev
2007-04-01 12:28 ` Eugene Prokopiev
2007-04-01 16:06 ` Hihin Ruslan
2007-04-01 17:50 ` Eugene Prokopiev
2007-03-31 18:37 ` Eugene Prokopiev
2007-03-31 19:32 ` Eugene Prokopiev
2007-04-01 10:24 ` Eugene Prokopiev [this message]
2007-04-01 12:16 ` Eugene Prokopiev
2007-04-01 13:00 ` Slava Semushin
2007-04-01 14:17 ` Eugene Prokopiev
2007-04-01 16:32 ` Eugene Prokopiev
2007-04-01 16:10 ` Hihin Ruslan
2007-04-01 17:46 ` Eugene Prokopiev
2007-04-01 17:22 ` Alexey I. Froloff
2007-04-01 17:35 ` Hihin Ruslan
2007-04-01 19:54 ` Eugene Prokopiev
2007-04-01 19:18 ` Hihin Ruslan
2007-04-02 5:46 ` Eugene Prokopiev
2007-04-02 7:41 ` Eugene Prokopiev
2007-04-05 8:01 ` Шенцев Алексей Владимирович
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=460F885C.6070109@stc.donpac.ru \
--to=prokopiev@stc.donpac.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