ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Igor Zubkov <igor.zubkov@gmail.com>
To: "Шенцев Алексей Владимирович" <ashen@novoross.multinex.ru>,
	"ALT Linux Sisyphus discussions" <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] cmdiag
Date: Wed, 15 Sep 2010 14:30:05 +0300
Message-ID: <AANLkTi=nLE-X6svfY=6QGTvtQu16yT+UKo00wR2ubEYZ@mail.gmail.com> (raw)
In-Reply-To: <201009151500.31655.ashen@novoross.multinex.ru>

15 сентября 2010 г. 14:00 пользователь Шенцев Алексей Владимирович написал:
> g++ -Wall -O2  -c cmdiag.cpp
> cmdiag.cpp: In function 'int main(int, char**)':
> cmdiag.cpp:29: warning: deprecated conversion from string constant to 'char*'
> cmdiag.cpp:30: warning: deprecated conversion from string constant to 'char*'
> cmdiag.cpp:31: warning: deprecated conversion from string constant to 'char*'
> cmdiag.cpp:32: warning: deprecated conversion from string constant to 'char*'
> cmdiag.cpp:46: warning: deprecated conversion from string constant to 'char*'
> cmdiag.cpp:46: warning: deprecated conversion from string constant to 'char*'
> g++ -Wall -O2  -c bar.cpp
> g++ -Wall -O2  -c pbar.cpp

Вот здесь была пропущена очень важная строка что нет хедеров от net snmp.

# apt-get install libnet-snmp-devel

и у меня почти собралось.

> cmodem.cpp: In member function 'char* CModem::snmp_session_init(const char*,
> char*, char*)':
> cmodem.cpp:63: error: aggregate 'snmp_session session' has incomplete type and
> cannot be defined

Осталось линковку починить.

[icesik@prometheus cmdiag-0.2]$ make
g++ -Wall -O2  -lncurses cmdiag.o bar.o pbar.o cmodem.o func.o -o
cmdiag  `net-snmp-config --libs` `net-snmp-config --external-libs`
cmdiag.o: In function `main':
cmdiag.cpp:(.text+0x66): undefined reference to `initscr'
cmdiag.cpp:(.text+0x6b): undefined reference to `cbreak'

надо просто -lncurses перенести в конец.

-- 
Igor Zubkov
http://hi.im/ice


  parent reply	other threads:[~2010-09-15 11:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-15 10:38 Шенцев Алексей Владимирович
2010-09-15 10:53 ` Igor Zubkov
2010-09-15 11:24   ` Damir
2010-09-15 11:32     ` Шенцев Алексей Владимирович
2010-09-15 11:30     ` Igor Zubkov [this message]
2010-09-15 11:43       ` Шенцев Алексей Владимирович

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='AANLkTi=nLE-X6svfY=6QGTvtQu16yT+UKo00wR2ubEYZ@mail.gmail.com' \
    --to=igor.zubkov@gmail.com \
    --cc=ashen@novoross.multinex.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