ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Damir Shayhutdinov" <damir@altlinux.org>
To: "ALT Devel discussion list" <devel@lists.altlinux.org>
Subject: Re: [devel] Сборка DBMail : pgsql/.libs/libpgsqldbmail.so: undefined reference to `PQconnectdb'
Date: Thu, 29 Jun 2006 10:29:39 +0400
Message-ID: <679044850606282329xda75b44k1c2a3c1f122e0952@mail.gmail.com> (raw)
In-Reply-To: <44A3704C.9000601@altlinux.org>

29.06.06, Eugene Prokopiev<enp@altlinux.org> написал(а):
> gcc -fomit-frame-pointer -g -O2 -W -Wall -Wpointer-arith
> -Wstrict-prototypes -o .libs/dbmail-smtp main.o  ./.libs/libdbmail.so
> pgsql/.libs/libpgsqldbmail.so sort/.libs/libsortdbmail.so
> auth/.libs/libauthdbmail.so -L/usr/lib -lpq -Wl,--rpath -Wl,/usr/lib/dbmail
> pgsql/.libs/libpgsqldbmail.so: undefined reference to `PQresultErrorMessage'
> pgsql/.libs/libpgsqldbmail.so: undefined reference to `PQconnectdb'
> ...
> Ну и т.д. На ALM 2.4 все собирается. Я так понимаю, некоторое время
> назад в Сизифе что-то сильно поменялось, отчего для сборки многих
> (кривых?) программ приходится совершать дополнительные телодвижения. Я
> это пропустил. Подскажите, что читать,
http://wiki.sisyphus.ru/devel/UpStream/AsNeeded
> куда смотреть
В тот Makefile.am, где есть libpgsqldbmail_la_SOURCES (в данном случае
это наверняка pgsql/Makefile.am)
Там должен быть объявлено libpgsqldbmail_la_LIBADD (если его нет, надо создать).
В этот libpgsqldbmail_la_LIBADD надо будет добавить библиотеку,
которая содержит символы PQresultErrorMessage и PQconnectdb (наверняка
libpq, так что надо будет дописать там -lpq).

> и как быть в данном случае.
Зафиксить *_LIBADD, сделать патч, перед %configure вызвать autoreconf -fisv

  reply	other threads:[~2006-06-29  6:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-29  6:16 Eugene Prokopiev
2006-06-29  6:29 ` Damir Shayhutdinov [this message]
2006-06-29  8:18   ` Eugene Prokopiev

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=679044850606282329xda75b44k1c2a3c1f122e0952@mail.gmail.com \
    --to=damir@altlinux.org \
    --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