ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Бакушкин Михаил" <lamka270186a@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] ошибка при компиляции
Date: Tue, 17 Feb 2009 15:40:58 +0300
Message-ID: <499AB05A.3090904@mail.ru> (raw)
In-Reply-To: <499AAA9D.8060203@meta.ua>

Pavel Solntsev пишет:
> Бакушкин Михаил пишет:
>   
>> Здравствуйте,
>>
>> учусь компилировать программы из исходников; столкнулся со следующей
>> проблемой:
>>
>> [root@lamkas snoopy-2.9.99.3b]# make
>> Making all in src
>> make[1]: Entering directory `/home/lamka/Desktop/snoopy-2.9.99.3b/src'
>> make  all-recursive
>> make[2]: Entering directory `/home/lamka/Desktop/snoopy-2.9.99.3b/src'
>> Making all in libsnoopy
>> make[3]: Entering directory
>> `/home/lamka/Desktop/snoopy-2.9.99.3b/src/libsnoopy'
>> make[3]: Nothing to be done for `all'.
>> make[3]: Leaving directory
>> `/home/lamka/Desktop/snoopy-2.9.99.3b/src/libsnoopy'
>> make[3]: Entering directory `/home/lamka/Desktop/snoopy-2.9.99.3b/src'
>> gcc `pkg-config --cflags --libs glib-2.0` -Wall -g -O2 -lGeoIP
>> -lglib-2.0 -lpthread -lpcap  -lm  -o snoopy-nox snoopy_nox-snoopynox.o
>> libsnoopy/libsnoopy.a -lGeoIP -lglib-2.0 -lpthread -lpcap
>> libsnoopy/libsnoopy.a(libsnoopy_a-packet_create_game.o): In function
>> `hex_to_dec':
>> /home/lamka/Desktop/snoopy-2.9.99.3b/src/libsnoopy/packet_create_game.c:54:
>> undefined reference to `pow'
>> collect2: ld returned 1 exit status
>>     
> попробуйте так
> ./configure LIBS=-lm && make
> не линкуется математическая библиотека
>   
>> make[3]: *** [snoopy-nox] Error 1
>> make[3]: Leaving directory `/home/lamka/Desktop/snoopy-2.9.99.3b/src'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/home/lamka/Desktop/snoopy-2.9.99.3b/src'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/home/lamka/Desktop/snoopy-2.9.99.3b/src'
>> make: *** [all-recursive] Error 1
>>
>> проблему пытался решить гуглом... не помогает... может кто сталкивался
>> с данной проблемой? или хотя бы натолкнет на путь истинный?
>> если надо могу выложить текст ./configure - но он вроде отработал
>> верно :)
>>
>> С Уважением, Михаил.
>> _______________________________________________
>> community mailing list
>> community@lists.altlinux.org
>> https://lists.altlinux.org/mailman/listinfo/community
>>     
>
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community
Благодарю вас, Павел. Скомпилировалось. Я как раз читал про -lm но не 
знал как этим воспользоваться :)
проблема решена.

С Уважением, Михаил.


  reply	other threads:[~2009-02-17 12:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-17 12:04 Бакушкин Михаил
2009-02-17 12:16 ` Pavel Solntsev
2009-02-17 12:40   ` Бакушкин Михаил [this message]
2009-02-17 15:24   ` Andrey Rahmatullin
2009-02-18  6:04     ` Бакушкин Михаил
2009-02-18  6:46       ` Motsyo Gennadi aka Drool
2009-02-18  7:37         ` Andrey Rahmatullin
2009-02-18  7:37       ` Andrey Rahmatullin
2009-02-18  6:32     ` Pavel Solntsev
2009-02-18  7:37       ` Andrey Rahmatullin
2009-02-17 15:25 ` Andrey Rahmatullin

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=499AB05A.3090904@mail.ru \
    --to=lamka270186a@mail.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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