[Comm] cobex for Branch 4
Владимир Гусев
=?iso-8859-1?q?vova1971_=CE=C1_narod=2Eru?=
Чт Мар 27 20:49:52 MSK 2008
On Thu, 27 Mar 2008 15:00:58 +0300, Eugene Ostapets <eostapets на gmail.com>
wrote:
> 27.03.08, Владимир Гусев<vova1971 narod.ru> написал(а):
>> Здравствуйте!
>> gcc -O2 -Wall -s -lezV24 -o cobex_put put.o cobex_utils.o cobex_tools.o
> Правильная строка:
> gcc -O2 -Wall -s -o cobex_put put.o cobex_utils.o cobex_tools.o -lezV24
а -s должно оставаться перед O2FILES, или после них, он вроде относится к
EXTRACCFLAGS.. Дербанил Makefile, теперь вот так все это выглядит:
[vova на vova SPECS]$ rpm -ba cobex.spec
Выполняется(%prep): /bin/sh -e /home/vova/tmp/rpm-tmp.68063
+ umask 022
+ /bin/mkdir -p /home/vova/RPM/BUILD
+ cd /home/vova/RPM/BUILD
+ cd /home/vova/RPM/BUILD
+ rm -rf cobex-0.2.13
+ echo 'Source #0 (cobex-0.2.13.tar.gz):'
Source #0 (cobex-0.2.13.tar.gz):
+ /bin/gzip -dc /home/vova/RPM/SOURCES/cobex-0.2.13.tar.gz
+ /bin/tar -xf -
+ cd cobex-0.2.13
+ /bin/chmod -Rf u+rwX,go-w .
+ exit 0
Выполняется(%build): /bin/sh -e /home/vova/tmp/rpm-tmp.68063
+ umask 022
+ /bin/mkdir -p /home/vova/RPM/BUILD
+ cd /home/vova/RPM/BUILD
+ cd cobex-0.2.13
+ '[' -n '' ']'
+ NPROCS=2
+ make -j2
make: Entering directory `/home/vova/RPM/BUILD/cobex-0.2.13'
gcc -O2 -Wall -c cobex_core.c
gcc -O2 -Wall -c cobex_tools.c
cobex_tools.c: In function 'ctools_signalHandler':
cobex_tools.c:41: warning: pointer targets in assignment differ in
signedness
gcc -O2 -Wall -c cobex_serial.c
gcc -O2 -Wall -c mkdir.c
mkdir.c: In function 'main':
mkdir.c:41: warning: pointer targets in assignment differ in signedness
gcc -O2 -Wall -c put.c
gcc -O2 -Wall -c get.c
get.c: In function 'main':
get.c:43: warning: pointer targets in assignment differ in signedness
gcc -O2 -Wall -c ls.c
gcc -O2 -Wall -c rm.c
rm.c: In function 'main':
rm.c:42: warning: pointer targets in assignment differ in signedness
ls.c: In function 'startElement':
ls.c:84: warning: pointer targets in passing argument 3 of 'iconv' differ
in signedness
ls.c:84: warning: pointer targets in passing argument 5 of 'iconv' differ
in signedness
ls.c: In function 'parseBody':
ls.c:145: warning: pointer targets in passing argument 2 of 'XML_Parse'
differ in signedness
ls.c:148: warning: pointer targets in passing argument 2 of 'XML_Parse'
differ in signedness
ls.c: In function 'main':
ls.c:227: warning: pointer targets in assignment differ in signedness
gcc -O2 -Wall -o cobex_mkdir mkdir.o cobex_core.o cobex_tools.o
cobex_serial.o -s -lezV24
gcc -O2 -Wall -o cobex_put put.o cobex_core.o cobex_tools.o cobex_serial.o
-s -lezV24
gcc -O2 -Wall -o cobex_get get.o cobex_core.o cobex_tools.o cobex_serial.o
-s -lezV24
gcc -O2 -Wall -lexpat -o cobex_ls ls.o cobex_core.o cobex_tools.o
cobex_serial.o -s -lezV24
gcc -O2 -Wall -o cobex_rm rm.o cobex_core.o cobex_tools.o cobex_serial.o
-s -lezV24
ls.o: In function `parseBody':
ls.c:(.text+0xff): undefined reference to `XML_Parse'
ls.o: In function `teardownExpat':
ls.c:(.text+0x28d): undefined reference to `XML_ParserFree'
ls.o: In function `setupExpat':
ls.c:(.text+0x2a9): undefined reference to `XML_ParserCreate'
ls.c:(.text+0x2cd): undefined reference to `XML_SetElementHandler'
collect2: ld returned 1 exit status
make: *** [cobex_ls] Error 1
make: Leaving directory `/home/vova/RPM/BUILD/cobex-0.2.13'
ошибка: Неверный код возврата из /home/vova/tmp/rpm-tmp.68063 (%build)
Ошибки сборки пакетов:
Неверный код возврата из /home/vova/tmp/rpm-tmp.68063 (%build)
--
С уважением, Владимир Гусев
Подробная информация о списке рассылки community