ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Novikov <shader@yandex.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Линковка библиотеки
Date: Fri, 8 Feb 2008 08:16:18 +0300
Message-ID: <20080208051618.GA21282@localhost.localdomain> (raw)
In-Reply-To: <3f60a830802071957v222abb17n12e00f4cee831049@mail.gmail.com>

On Fri, Feb 08, 2008 at 03:57:36PM +1200, Alexey Borovskoy wrote:
> Добрый день.
> 
> есть такое:
> 
> SUBDIRS = ruleset
> AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src/include
> -I$(top_srcdir)/libmissing @defined@
> 
> noinst_HEADERS = pcre-mod.h rule-object.h rule-regex.h value-container.h
> 
> pcre_la_SOURCES = pcre-mod.c rule-object.c rule-regex.c value-container.c
> pcre_la_LDFLAGS = -module -avoid-version
> pcredir = $(log_plugin_dir)
> pcre_LTLIBRARIES = pcre.la
> 
> Дает unresolved symbols.
> 
> Добавляю это:
> 
> pcre_la_LIBADD = -llibprelude -llibpcre
> 
> Взрывается так:
> 
>  i586-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
> -I../../src/include -I../../libmissing -I/usr/include/pcre -pipe -Wall
> -O2 -march=i586 -mtune=i686 -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wbad-function-cast -Wcast-qual -Wcast-align
> -Wnested-externs -Wunused -Wformat -Wformat-security -c debug.c  -fPIC
> -DPIC -o .libs/debug.o
> /bin/sh ../../libtool --tag=CC --mode=link i586-alt-linux-gcc  -pipe
> -Wall -O2 -march=i586 -mtune=i686 -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast
> -Wcast-qual -Wcast-align -Wnested-externs -Wunused -Wformat
> -Wformat-security   -o debug.la -rpath /usr/lib/prelude-lml -module
> -avoid-version debug.lo -llibprelude
> i586-alt-linux-gcc -shared  .libs/debug.o  -llibprelude  -march=i586
> -mtune=i686 -Wl,-soname -Wl,debug.so -o .libs/debug.so
> /usr/bin/ld: cannot find -llibprelude
> collect2: ld returned 1 exit status
> make[3]: *** [debug.la] Error 1
> 
> 
> Чо делать?
Похоже что надо было
pcre_la_LIBADD = -lprelude -lpcre

Только не понятно зачем Вы libpcre линкуете с ней же...

-- 
WBR, Alexey Novikov
XMPP: alex-novikov@jabber.ru, shader@ya.ru


      reply	other threads:[~2008-02-08  5:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-08  3:57 Alexey Borovskoy
2008-02-08  5:16 ` Alexey Novikov [this message]

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=20080208051618.GA21282@localhost.localdomain \
    --to=shader@yandex.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git