ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: "Konstantin A. Lepikhov" <lakostis@unsafe.ru>
To: ALT Linux kernel packages development <devel-kernel@lists.altlinux.org>
Subject: Re: [d-kernel] Сборка модуля drbd
Date: Mon, 8 Sep 2008 11:43:38 +0400
Message-ID: <20080908074338.GA16753@lks.home> (raw)
In-Reply-To: <f7a739430809080003g1bb36819gaeb185e85a85d3cb@mail.gmail.com>

Hi Eugene!

Monday 08, at 11:03:59 AM you wrote:

> Совсем дурацкая проблема - не могу собрать бенчмарки (хотя нужно ли их
> собирать?):
> 
> cc -pthread -lm -o io-latency-test io-latency-test.c
> /tmp/.private/enp/cc6mXiyl.o: In function `main':
> io-latency-test.c:(.text+0x93d): undefined reference to `sqrt'
> collect2: выполнение ld завершилось с кодом возврата 1
> make: *** [io-latency-test] Ошибка 1
--as-needed ;) Библиотеки должны идти после объектных файлов.

> 
> в этом же самом окружении:
> 
> $ cat test.c
> #include <math.h>
> #include <stdio.h>
> 
> int main()
> {
>         printf("%f\n",sqrt(2));
>         return 0;
> }
> 
> $ cc -pthread -lm -o test test.c
> $ ./test
> 1.414214
> $ ldd test
>         linux-gate.so.1 =>  (0xffffe000)
>         libc.so.6 => /lib/libc.so.6 (0xb7e69000)
>         /lib/ld-linux.so.2 (0x80000000)
> 
> 

-- 
WBR et al.


  reply	other threads:[~2008-09-08  7:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-07 14:42 Eugene Prokopiev
2008-09-07 14:47 ` Михаил Якушин
2008-09-07 16:41   ` Eugene Prokopiev
2008-09-07 16:45     ` Михаил Якушин
2008-09-07 17:09       ` Eugene Prokopiev
2008-09-07 17:22         ` Михаил Якушин
2008-09-07 17:41           ` Eugene Prokopiev
2008-09-07 17:42             ` Михаил Якушин
2008-09-07 17:47               ` Eugene Prokopiev
2008-09-07 18:14                 ` Konstantin A. Lepikhov
2008-09-07 18:10     ` Konstantin A. Lepikhov
2008-09-07 18:29       ` Eugene Prokopiev
2008-09-07 19:20         ` Konstantin A. Lepikhov
2008-09-08  7:03           ` Eugene Prokopiev
2008-09-08  7:43             ` Konstantin A. Lepikhov [this message]
2008-09-08  8:28               ` Eugene Prokopiev
2008-09-08 11:39                 ` Kirill A. Shutemov

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=20080908074338.GA16753@lks.home \
    --to=lakostis@unsafe.ru \
    --cc=devel-kernel@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 kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

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


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