ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] NetAMS 3.2.2 - ошибки при сборке
@ 2005-04-28  3:14 Беляев Владимир Николаевич
  2005-04-28  5:55 ` Vladimir V Kamarzin
  0 siblings, 1 reply; 12+ messages in thread
From: Беляев Владимир Николаевич @ 2005-04-28  3:14 UTC (permalink / raw)
  To: Community

Здравствуйте!
Собираю netams - идут ошибки, что я делаю не так?
Система Master 2.4.

Делаю
make -f Makefile.run

Получаю:

cd src && make netams
make[1]: Entering directory `/home/vlad/install/netams-3.2.2/src'
g++ -g -Wall -pipe -O2 -I/usr/local/include -DLINUX -D_BSD_SOURCE -I/usr/include/pcap -I/usr/libipq -DIPTBL_NONE -DHAVE_BILLING -DDEBUG -D_REENTRANT -D_THREAD_SAFE   -c -o s_billing.o s_billing.c
make[1]: Leaving directory `/home/vlad/install/netams-3.2.2/src'
In file included from netams.h:70,
                 from s_billing.c:12:
services.h:57: syntax error before `*'
In file included from netams.h:75,
                 from s_billing.c:12:
policy_prefix.h:31: syntax error before `*'
In file included from netams.h:76,
                 from s_billing.c:12:
policy.h:143: syntax error before `*'
policy.h:192: syntax error before `*'
In file included from netams.h:77,
                 from s_billing.c:12:
net_units.h:140: syntax error before `*'
In file included from netams.h:78,
                 from s_billing.c:12:
iptree.h:24: syntax error before `*'
In file included from netams.h:86,
                 from s_billing.c:12:
billing.h:47: syntax error before `*'
In file included from s_billing.c:12:
netams.h:472: syntax error before `*'
netams.h:535: syntax error before `*'
netams.h:569: syntax error before `*'
s_billing.c: In function `void sBiInit (Service *)':
s_billing.c:44: `struct Billing_cfg' has no member named `rwlock'
s_billing.c:44: `pthread_rwlock_t' undeclared (first use this function)
s_billing.c:44: (Each undeclared identifier is reported only once for each function it appears in.)
s_billing.c:44: syntax error before `)'
s_billing.c:45: `struct Billing_cfg' has no member named `rwlock'
s_billing.c:45: `pthread_rwlock_init' undeclared (first use this function)
s_billing.c: In function `void sBiProcessCfg (char **, Connection *, unsigned char)':
s_billing.c:64: `struct Billing_cfg' has no member named `rwlock'
s_billing.c:64: `pthread_rwlock_wrlock' undeclared (first use this function)
s_billing.c:340: `struct Billing_cfg' has no member named `rwlock'
s_billing.c:340: `pthread_rwlock_unlock' undeclared (first use this function)
s_billing.c: In function `void sBiListCfg (Service *, FILE *)':
s_billing.c:349: `struct Billing_cfg' has no member named `rwlock'
s_billing.c:350: `struct Billing_cfg' has no member named `rwlock'
s_billing.c:350: `pthread_rwlock_rdlock' undeclared (first use this function)
s_billing.c:386: `struct Billing_cfg' has no member named `rwlock'
s_billing.c: In function `void sBiCancel (void *)':
s_billing.c:454: `struct Billing_cfg' has no member named `rwlock'
s_billing.c:454: `pthread_rwlock_destroy' undeclared (first use this function)
s_billing.c:455: `struct Billing_cfg' has no member named `rwlock'
s_billing.c: In function `void cShowBillingAccount (Connection *, char **)':
s_billing.c:499: warning: unsigned int format, long unsigned int arg (arg 5)
s_billing.c:499: warning: unsigned int format, long unsigned int arg (arg 8)
s_billing.c:500: warning: unsigned int format, long unsigned int arg (arg 3)
s_billing.c:500: warning: unsigned int format, long unsigned int arg (arg 4)
s_billing.c:500: warning: unsigned int format, long unsigned int arg (arg 5)
make[1]: *** [s_billing.o] Ошибка 1
make: *** [all] Ошибка 2

--
С уважением, Беляев
ICQ: 119181289




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  3:14 [Comm] NetAMS 3.2.2 - ошибки при сборке Беляев Владимир Николаевич
@ 2005-04-28  5:55 ` Vladimir V Kamarzin
  2005-04-28  6:08   ` Re[2]: " Беляев Владимир Николаевич
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir V Kamarzin @ 2005-04-28  5:55 UTC (permalink / raw)
  To: community

>>>>> On 28 Apr 2005 at 09:14 w n b writes:

 wnb> Здравствуйте!  Собираю netams - идут ошибки, что я делаю не так?
 wnb> Система Master 2.4.

Зачем собирать из сырцов? Возьмите пакет из сизифа и пересоберите.

-- 
WBR, Vladimir V. Kamarzin.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re[2]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  5:55 ` Vladimir V Kamarzin
@ 2005-04-28  6:08   ` Беляев Владимир Николаевич
  2005-04-28  6:11     ` Re[3]: " Anton Gorlov
  0 siblings, 1 reply; 12+ messages in thread
From: Беляев Владимир Николаевич @ 2005-04-28  6:08 UTC (permalink / raw)
  To: Vladimir V Kamarzin

Hello Vladimir,

Thursday, April 28, 2005, 11:55:43 AM, you wrote:

>>>>>> On 28 Apr 2005 at 09:14 w n b writes:

 wnb>> Здравствуйте!  Собираю netams - идут ошибки, что я делаю не так?
 wnb>> Система Master 2.4.

VVK> Зачем собирать из сырцов? Возьмите пакет из сизифа и пересоберите.

Так я и взял ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/SRPMS.classic/netams-3.2.2-alt1.src.rpm
Его же компилировать надо, или я чего-то не так делаю?


-- 
С уважением, Беляев
ICQ: 119181289




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re[3]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  6:08   ` Re[2]: " Беляев Владимир Николаевич
@ 2005-04-28  6:11     ` Anton Gorlov
  2005-04-28  6:30       ` Re[4]: " Беляев Владимир Николаевич
  0 siblings, 1 reply; 12+ messages in thread
From: Anton Gorlov @ 2005-04-28  6:11 UTC (permalink / raw)
  To: community

Здравствуйте, Беляев.

Вы писали 28 апреля 2005 г., 10:08:01:



 wnb>>> Здравствуйте!  Собираю netams - идут ошибки, что я делаю не так?
 wnb>>> Система Master 2.4.
VVK>> Зачем собирать из сырцов? Возьмите пакет из сизифа и пересоберите.
> Так я и взял
> ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/SRPMS.classic/netams-3.2.2-alt1.src.rpm
> Его же компилировать надо, или я чего-то не так делаю?

rpm --rebuild netams-3.2.2-alt1.src.rpm
(под простым пользователем,не рутом)
или установить этот пакет (не от рута ессно) и сделать
rpm -ba (или -bb) ~/RPM/SPECS/netams.spec





-- 
С уважением,
 Anton                          mailto:Pnz.Stalker@mail.ru



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re[4]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  6:11     ` Re[3]: " Anton Gorlov
@ 2005-04-28  6:30       ` Беляев Владимир Николаевич
  2005-04-28  6:39         ` Mike Lykov
  0 siblings, 1 reply; 12+ messages in thread
From: Беляев Владимир Николаевич @ 2005-04-28  6:30 UTC (permalink / raw)
  To: Anton Gorlov

Hello Anton,

Thursday, April 28, 2005, 12:11:37 PM, you wrote:

AG> rpm --rebuild netams-3.2.2-alt1.src.rpm
Делаю, выдает:

Устанавливается netams-3.2.2-alt1.src.rpm
Выполняется(%prep): /bin/sh -e /home/vlad/tmp/rpm-tmp.87310
Source #0 (netams-3.2.2.tar.gz):
Patch #3 (netams-main.c.patch):
Выполняется(%build): /bin/sh -e /home/vlad/tmp/rpm-tmp.50928
make: Entering directory `/home/vlad/RPM/BUILD/netams-3.2.2'
cd src && make netams
make[1]: Entering directory `/home/vlad/RPM/BUILD/netams-3.2.2/src'
g++ -g -Wall -pipe -O2 -I/usr/local/include -DLINUX -D_BSD_SOURCE -I/usr/include/pcap -I/usr/libipq -DUSE_MYSQL -I/usr/include/mysql -DUSE_POSTGRES -I/usr/include/pgsql -DHAVE_BILLING -DDEBUG -D_REENTRANT -D_THREAD_SAFE   -c -o billing.o billing.c
make[1]: Leaving directory `/home/vlad/RPM/BUILD/netams-3.2.2/src'
make: Leaving directory `/home/vlad/RPM/BUILD/netams-3.2.2'


Ошибки сборки пакетов:
+ umask 022
+ /bin/mkdir -p /home/vlad/RPM/BUILD
+ cd /home/vlad/RPM/BUILD
+ cd /home/vlad/RPM/BUILD
+ rm -rf netams-3.2.2
+ echo 'Source #0 (netams-3.2.2.tar.gz):'
+ /bin/gzip -dc /home/vlad/RPM/SOURCES/netams-3.2.2.tar.gz
+ /bin/tar -xf -
+ cd netams-3.2.2
+ /bin/chmod -Rf u+rwX,go-w .
+ cp /home/vlad/RPM/SOURCES/netams-Makefile ./Makefile
+ echo 'Patch #3 (netams-main.c.patch):'
+ /usr/bin/patch -p0 -s
+ /bin/chmod -x doc/README doc/TODO.txt doc/flowprobe.8 doc/netams.8 doc/netamsctl.8
+ exit 0
+ umask 022
+ /bin/mkdir -p /home/vlad/RPM/BUILD
+ cd /home/vlad/RPM/BUILD
+ cd netams-3.2.2
+ '[' -n '' ']'
+ NPROCS=1
+ make -j1
In file included from netams.h:70,
                 from billing.c:12:
services.h:57: syntax error before `*'
In file included from netams.h:75,
                 from billing.c:12:
policy_prefix.h:31: syntax error before `*'
In file included from netams.h:76,
                 from billing.c:12:
policy.h:143: syntax error before `*'
policy.h:192: syntax error before `*'
In file included from netams.h:77,
                 from billing.c:12:
net_units.h:140: syntax error before `*'
In file included from netams.h:78,
                 from billing.c:12:
iptree.h:24: syntax error before `*'
In file included from netams.h:86,
                 from billing.c:12:
billing.h:47: syntax error before `*'
In file included from billing.c:12:
netams.h:472: syntax error before `*'
netams.h:535: syntax error before `*'
netams.h:569: syntax error before `*'
billing.c: In method `void Account::SyncAccount (FILE *)':
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 4)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 6)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 7)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 8)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 9)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 10)
billing.c: In method `unsigned int Account::SyncBdata (FILE *)':
billing.c:796: warning: unsigned int format, long unsigned int arg (arg 6)
billing.c:797: warning: unsigned int format, long unsigned int arg (arg 6)
billing.c:798: warning: unsigned int format, long unsigned int arg (arg 6)
billing.c:801: warning: unsigned int format, long unsigned int arg (arg 6)
make[1]: *** [billing.o] Error 1
make: *** [all] Error 2
ошибка: Неверный код возврата из /home/vlad/tmp/rpm-tmp.51925 (%build)
    Неверный код возврата из /home/vlad/tmp/rpm-tmp.51925 (%build) 


-- 
С уважением, Беляев
ICQ: 119181289




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re[4]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  6:30       ` Re[4]: " Беляев Владимир Николаевич
@ 2005-04-28  6:39         ` Mike Lykov
  2005-04-28  6:51           ` Re[6]: " Беляев Владимир Николаевич
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Lykov @ 2005-04-28  6:39 UTC (permalink / raw)
  To: community

В сообщении от Четверг 28 Апрель 2005 11:30 Беляев Владимир Николаевич 
написал:
> AG> rpm --rebuild netams-3.2.2-alt1.src.rpm
> Делаю, выдает:
> In file included from netams.h:70,
>                  from billing.c:12:
> services.h:57: syntax error before `*'

разница в версии компиляторов (и строгости проверок)? у вас какой?

-- 
Mike Lykov
Samara, "Vesna" parfum company, System administrator 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re[6]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  6:39         ` Mike Lykov
@ 2005-04-28  6:51           ` Беляев Владимир Николаевич
  2005-04-28  7:14             ` Mike Lykov
  0 siblings, 1 reply; 12+ messages in thread
From: Беляев Владимир Николаевич @ 2005-04-28  6:51 UTC (permalink / raw)
  To: Mike Lykov

Hello Mike,

Thursday, April 28, 2005, 12:39:48 PM, you wrote:

ML> разница в версии компиляторов (и строгости проверок)? у вас какой?

gcc2.96

-- 
С уважением, Беляев
ICQ: 119181289




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re[6]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  6:51           ` Re[6]: " Беляев Владимир Николаевич
@ 2005-04-28  7:14             ` Mike Lykov
  2005-04-28  7:41               ` Re[8]: " Беляев Владимир Николаевич
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Lykov @ 2005-04-28  7:14 UTC (permalink / raw)
  To: community

В сообщении от Четверг 28 Апрель 2005 11:51 Беляев Владимир Николаевич 
написал:
> ML> разница в версии компиляторов (и строгости проверок)? у вас какой?
> gcc2.96

ооооо... известное дело. а 3.* не пробовали? текущий в сизифе/мастере, 
например.. вроде давно не 2.96

-- 
Mike Lykov
Samara, "Vesna" parfum company, System administrator 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re[8]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  7:14             ` Mike Lykov
@ 2005-04-28  7:41               ` Беляев Владимир Николаевич
  2005-04-28  7:59                 ` Sergey
  2005-04-28  8:01                 ` Drool
  0 siblings, 2 replies; 12+ messages in thread
From: Беляев Владимир Николаевич @ 2005-04-28  7:41 UTC (permalink / raw)
  To: Mike Lykov

Hello Mike,

Thursday, April 28, 2005, 1:14:45 PM, you wrote:

Поставил gcc3.3
Его как-то переключить надо с 2.96?

Делаю:
rpm --rebuild netams-3.2.2-alt1.src.rpm

Получаем:
Устанавливается netams-3.2.2-alt1.src.rpm
Выполняется(%prep): /bin/sh -e /home/vlad/tmp/rpm-tmp.70745
+ umask 022
+ /bin/mkdir -p /home/vlad/RPM/BUILD
+ cd /home/vlad/RPM/BUILD
+ cd /home/vlad/RPM/BUILD
+ rm -rf netams-3.2.2
+ echo 'Source #0 (netams-3.2.2.tar.gz):'
Source #0 (netams-3.2.2.tar.gz):
+ /bin/gzip -dc /home/vlad/RPM/SOURCES/netams-3.2.2.tar.gz
+ /bin/tar -xf -
+ cd netams-3.2.2
+ /bin/chmod -Rf u+rwX,go-w .
+ cp /home/vlad/RPM/SOURCES/netams-Makefile ./Makefile
+ echo 'Patch #3 (netams-main.c.patch):'
Patch #3 (netams-main.c.patch):
+ /usr/bin/patch -p0 -s
+ /bin/chmod -x doc/README doc/TODO.txt doc/flowprobe.8 doc/netams.8 doc/netamsctl.8
+ exit 0
Выполняется(%build): /bin/sh -e /home/vlad/tmp/rpm-tmp.15831
+ umask 022
+ /bin/mkdir -p /home/vlad/RPM/BUILD
+ cd /home/vlad/RPM/BUILD
+ cd netams-3.2.2
+ '[' -n '' ']'
+ NPROCS=1
+ make -j1
make: Entering directory `/home/vlad/RPM/BUILD/netams-3.2.2'
cd src && make netams
make[1]: Entering directory `/home/vlad/RPM/BUILD/netams-3.2.2/src'
g++ -g -Wall -pipe -O2 -I/usr/local/include -DLINUX -D_BSD_SOURCE -I/usr/include/pcap -I/usr/libipq -DUSE_MYSQL -I/usr/include/mysql -DUSE_POSTGRES -I/usr/include/pgsql -DHAVE_BILLING -DDEBUG -D_REENTRANT -D_THREAD_SAFE   -c -o billing.o billing.c
In file included from netams.h:70,
                 from billing.c:12:
services.h:57: syntax error before `*'
In file included from netams.h:75,
                 from billing.c:12:
policy_prefix.h:31: syntax error before `*'
In file included from netams.h:76,
                 from billing.c:12:
policy.h:143: syntax error before `*'
policy.h:192: syntax error before `*'
In file included from netams.h:77,
                 from billing.c:12:
net_units.h:140: syntax error before `*'
In file included from netams.h:78,
                 from billing.c:12:
iptree.h:24: syntax error before `*'
In file included from netams.h:86,
                 from billing.c:12:
billing.h:47: syntax error before `*'
In file included from billing.c:12:
netams.h:472: syntax error before `*'
netams.h:535: syntax error before `*'
netams.h:569: syntax error before `*'
billing.c: In method `void Account::SyncAccount (FILE *)':
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 4)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 6)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 7)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 8)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 9)
billing.c:724: warning: unsigned int format, long unsigned int arg (arg 10)
billing.c: In method `unsigned int Account::SyncBdata (FILE *)':
billing.c:796: warning: unsigned int format, long unsigned int arg (arg 6)
billing.c:797: warning: unsigned int format, long unsigned int arg (arg 6)
billing.c:798: warning: unsigned int format, long unsigned int arg (arg 6)
billing.c:801: warning: unsigned int format, long unsigned int arg (arg 6)
make[1]: *** [billing.o] Error 1
make[1]: Leaving directory `/home/vlad/RPM/BUILD/netams-3.2.2/src'
make: *** [all] Error 2
make: Leaving directory `/home/vlad/RPM/BUILD/netams-3.2.2'
ошибка: Неверный код возврата из /home/vlad/tmp/rpm-tmp.15831 (%build)


Ошибки сборки пакетов:
    Неверный код возврата из /home/vlad/tmp/rpm-tmp.15831 (%build)


:(((

--  
С уважением, Беляев
ICQ: 119181289




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re[8]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  7:41               ` Re[8]: " Беляев Владимир Николаевич
@ 2005-04-28  7:59                 ` Sergey
  2005-04-28  8:01                 ` Drool
  1 sibling, 0 replies; 12+ messages in thread
From: Sergey @ 2005-04-28  7:59 UTC (permalink / raw)
  To: community

В Чтв, 28/04/2005 в 13:41 +0600, Беляев Владимир Николаевич пишет:
> Hello Mike,
> 
> Thursday, April 28, 2005, 1:14:45 PM, you wrote:
> 
> Поставил gcc3.3
> Его как-то переключить надо с 2.96?

 читайте /usr/share/doc/alternatives-0.2.0/README

-- 
С уважением, Сергей.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  7:41               ` Re[8]: " Беляев Владимир Николаевич
  2005-04-28  7:59                 ` Sergey
@ 2005-04-28  8:01                 ` Drool
  2005-04-28  8:30                   ` Re[2]: " Беляев Владимир Николаевич
  1 sibling, 1 reply; 12+ messages in thread
From: Drool @ 2005-04-28  8:01 UTC (permalink / raw)
  To: community

> Поставил gcc3.3
> Его как-то переключить надо с 2.96?
> 
	# /usr/sbin/select-gcc 3.3


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re[2]: [Comm] NetAMS 3.2.2 - ошибки при сборке
  2005-04-28  8:01                 ` Drool
@ 2005-04-28  8:30                   ` Беляев Владимир Николаевич
  0 siblings, 0 replies; 12+ messages in thread
From: Беляев Владимир Николаевич @ 2005-04-28  8:30 UTC (permalink / raw)
  To: Drool

Hello Drool,

Thursday, April 28, 2005, 2:01:57 PM, you wrote:

>> Поставил gcc3.3
>> Его как-то переключить надо с 2.96?
>> 
D> 	# /usr/sbin/select-gcc 3.3

сделал, все равно идут ошибки.
Плюнул, поставил 3.1.1829
Заработал :)
Теперь сижу, разбираюсь - что же я такое поставил :))


--  
С уважением, Беляев
ICQ: 119181289




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-04-28  8:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-28  3:14 [Comm] NetAMS 3.2.2 - ошибки при сборке Беляев Владимир Николаевич
2005-04-28  5:55 ` Vladimir V Kamarzin
2005-04-28  6:08   ` Re[2]: " Беляев Владимир Николаевич
2005-04-28  6:11     ` Re[3]: " Anton Gorlov
2005-04-28  6:30       ` Re[4]: " Беляев Владимир Николаевич
2005-04-28  6:39         ` Mike Lykov
2005-04-28  6:51           ` Re[6]: " Беляев Владимир Николаевич
2005-04-28  7:14             ` Mike Lykov
2005-04-28  7:41               ` Re[8]: " Беляев Владимир Николаевич
2005-04-28  7:59                 ` Sergey
2005-04-28  8:01                 ` Drool
2005-04-28  8:30                   ` Re[2]: " Беляев Владимир Николаевич

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