nixp.ru v3.0

19 апреля 2024,
пятница,
22:51:48 MSK

pro100sanya написал 7 ноября 2005 года в 16:21 (915 просмотров) Ведет себя неопределенно; открыл 1 тему в форуме, оставил 8 комментариев на сайте.

Привет. Я совсем недавно начал разбираться с линухом, взялся за слаку, но мне показалась система несколько трудновата для новичка. Перешел по совету знакомого на фёдора.

Хочу скомпилировать чат для локалки — VyQChat.

Пишу ./configure — никаких ошибок не выдает.

затем пишу make — начинается компиляция, и в конце вижу строки похожие на эти -

leaving directory [name_of_dir]

Ошибка 2

Я не могу понять что за ошибка.. в мане ничего не нашел по этому поводу.

И в директории с исходником чата я не нашел файла appwin.o …

cyb3rpunk

В пути к исходникам не должно быть пробелов

pro100sanya

могу даже точный путь к исходнику написать — вот он:

/tmp/chat/vyqchat0.2.5

там нет никаких пробелов.

P.S. такую ошибку вижу при сборке любой проги. В том числе и при компиляции ядра.

Может нехватает какого компонента? хотя я установил все что только можно…

fly4life

А покажи строки выше этого «leaving directory [name_of_dir]». Штук пять…

pro100sanya

ээээ.. дома у меня федора.. На работе стоит винда.. завтра покажу .

pro100sanya

[root@virus chat]# ls

echat-0.02 vchatd_src.tar vyc_linux.zip vyqchat-0.2.5 vyqchat-0.2.7 xvchat-0.2_x86.zip

[root@virus chat]# cd vyqchat-0.2.7/

[root@virus vyqchat-0.2.7]# ./configure

checking for a BSD-compatible install… /usr/bin/install -c

checking whether build environment is sane… yes

checking for gawk… gawk

checking whether make sets $(MAKE)… yes

checking for g++… g++

checking for C++ compiler default output file name… a.out

checking whether the C++ compiler works… yes

checking whether we are cross compiling… no

checking for suffix of executables…

checking for suffix of object files… o

checking whether we are using the GNU C++ compiler… yes

checking whether g++ accepts -g… yes

checking for style of include used by make… GNU

checking dependency style of g++… gcc3

checking for gcc… gcc

checking whether we are using the GNU C compiler… yes

checking whether gcc accepts -g… yes

checking for gcc option to accept ANSI C… none needed

checking dependency style of gcc… gcc3

checking how to run the C preprocessor… gcc -E

checking for egrep… grep -E

checking for ANSI C header files… yes

checking for sys/types.h… yes

checking for sys/stat.h… yes

checking for stdlib.h… yes

checking for string.h… yes

checking for memory.h… yes

checking for strings.h… yes

checking for inttypes.h… yes

checking for stdint.h… yes

checking for unistd.h… yes

checking arpa/inet.h usability… yes

checking arpa/inet.h presence… yes

checking for arpa/inet.h… yes

checking for stdlib.h… (cached) yes

checking sys/ioctl.h usability… yes

checking sys/ioctl.h presence… yes

checking for sys/ioctl.h… yes

checking sys/socket.h usability… yes

checking sys/socket.h presence… yes

checking for sys/socket.h… yes

checking for unistd.h… (cached) yes

checking for an ANSI C-conforming const… yes

checking whether gcc needs -traditional… no

checking for vprintf… yes

checking for _doprnt… no

checking for gethostname… yes

checking for inet_ntoa… yes

checking for socket… yes

checking for fork… yes

checking for pkg-config… /usr/bin/pkg-config

checking for sndfile >= 1.0.5… Package sndfile was not found in the pkg-config search path.

Perhaps you should add the directory containing `sndfile.pc'

to the PKG_CONFIG_PATH environment variable

No package ’sndfile' found

configure: WARNING: «Disabling build-in sound support»

checking for openssl >= 0.9.6… yes

checking OPENSSL_CFLAGS… -I/usr/kerberos/include

checking OPENSSL_LIBS… -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz

checking for X… libraries /usr/X11R6/lib, headers /usr/X11R6/include

checking for gethostbyname… yes

checking for connect… yes

checking for remove… yes

checking for shmat… yes

checking for IceConnectionNumber in -lICE… yes

checking for Qt… yes:

QT_CXXFLAGS=-I/usr/lib/qt-3.3/include

QT_DIR=/usr/lib/qt-3.3

QT_LIBS=-L/usr/lib/qt-3.3/lib -lqt-mt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi

QT_UIC=/usr/lib/qt-3.3/bin/uic

QT_MOC=/usr/lib/qt-3.3/bin/moc

checking correct functioning of Qt installation… succes

configure: creating ./config.status

pro100sanya

config.status: creating Makefile

config.status: creating src/Makefile

config.status: creating gfx/Makefile

config.status: creating gfx/default/Makefile

config.status: creating gfx/crystal/Makefile

config.status: creating tr/Makefile

config.status: creating src/config.h

config.status: src/config.h is unchanged

config.status: executing depfiles commands

[root@virus vyqchat-0.2.7]# ls

acinclude.m4 config.status depcomp install-sh missing README-KEYS

aclocal.m4 configure FAQ m4 mkinstalldirs src

AUTHORS configure.in gfx Makefile NEWS THANKS

ChangeLog contrib ICONS-NEEDED Makefile.am PROTOCOL TODO

config.log COPYING INSTALL Makefile.in README tr

[root@virus vyqchat-0.2.7]# make

Making all in src

make[1]: Entering directory `/archive/chat/vyqchat-0.2.7/src'

make all-am

make[2]: Entering directory `/archive/chat/vyqchat-0.2.7/src'

if g++ -DHAVE_CONFIG_H -I. -I. -I. -DDATADIR=\«/usr/local/share/vyqchat/\» -I/usr/lib/qt-3.3/include -I/usr/kerberos/include -DDATADIR=\«/usr/local/share/vyqchat/\» -I/usr/lib/qt-3.3/include -I/usr/kerberos/include -g -O2 -MT vyqchat-appwin.o -MD -MP -MF «.deps/vyqchat-appwin.Tpo» -c -o vyqchat-appwin.o `test -f 'appwin.cpp' || echo './’`appwin.cpp; \

then mv -f «.deps/vyqchat-appwin.Tpo» «.deps/vyqchat-appwin.Po»; else rm -f «.deps/vyqchat-appwin.Tpo»; exit 1; fi

user.h: In member function 'bool User::setGender(char)’:

user.h:34: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

user.h:34: note: candidate 1: operator==(int, int)

/usr/lib/qt-3.3/include/qstring.h:302: note: candidate 2: bool operator==(char, QChar)

user.h:34: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

user.h:34: note: candidate 1: operator==(int, int)

/usr/lib/qt-3.3/include/qstring.h:302: note: candidate 2: bool operator==(char, QChar)

appwin.cpp: In member function 'void MainWindow::on_vc_say(const QString&, const QString&, const QString&)’:

appwin.cpp:1045: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1045: note: candidate 1: operator==(int, int)

/usr/lib/qt-3.3/include/qstring.h:302: note: candidate 2: bool operator==(char, QChar)

appwin.cpp: In member function 'void MainWindow::on_vc_join(const QHostAddress&, const QString&, const QString&, char, char)’:

appwin.cpp:1135: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1135: note: candidate 1: operator==(int, int)

/usr/lib/qt-3.3/include/qstring.h:302: note: candidate 2: bool operator==(char, QChar)

appwin.cpp: In member function 'void MainWindow::on_vc_leave(const QString&, const QString&, char)’:

appwin.cpp:1155: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1155: note: candidate 1: operator==(int, int)

/usr/lib/qt-3.3/include/qstring.h:302: note: candidate 2: bool operator==(char, QChar)

appwin.cpp: In member function 'void MainWindow::on_vc_private_say(const QString&, const QString&, const QString&)’:

appwin.cpp:1188: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1188: note: candidate 1: operator==(int, int)

/usr/lib/qt-3.3/include/qstring.h:302: note: candidate 2: bool operator==(char, QChar)

appwin.cpp: In member function 'void MainWindow::on_vc_message(const QHostAddress&, const QCString&, const QString&, const QString&, const QString&)’:

appwin.cpp:1207: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1207: note: candidate 1: operator==(int, int)

/usr/lib/qt-3.3/include/qstring.h:302: note: candidate 2: bool operator==(char, QChar)

appwin.cpp:1210: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1210: note: candidate 1: operator!=(int, int)

/usr/lib/qt-3.3/include/qstring.h:322: note: candidate 2: bool operator!=(char, QChar)

appwin.cpp:1212: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1212: note: candidate 1: operator!=(int, int)

/usr/lib/qt-3.3/include/qstring.h:322: note: candidate 2: bool operator!=(char, QChar)

appwin.cpp: In member function 'void MainWindow::on_vc_hereack(const QString&, const QString&, const QString&, char)’:

appwin.cpp:1254: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1254: note: candidate 1: operator==(int, int)

/usr/lib/qt-3.3/include/qstring.h:302: note: candidate 2: bool operator==(char, QChar)

appwin.cpp: In member function 'void MainWindow::on_vc_inforeq(const QString&, const QString&)’:

appwin.cpp:1265: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1265: note: candidate 1: operator!=(int, int)

/usr/lib/qt-3.3/include/qstring.h:322: note: candidate 2: bool operator!=(char, QChar)

appwin.cpp: In member function 'void MainWindow::on_vc_changestatus(const QString&, char, char, const QString&)’:

appwin.cpp:1314: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:

appwin.cpp:1314: note: candidate 1: operator!=(int, int)

/usr/lib/qt-3.3/include/qstring.h:322: note: candidate 2: bool operator!=(char, QChar)

make[2]: * [vyqchat-appwin.o] я█╔┬╦┴ 1

make[2]: Leaving directory `/archive/chat/vyqchat-0.2.7/src'

make[1]: * [all] я█╔┬╦┴ 2

make[1]: Leaving directory `/archive/chat/vyqchat-0.2.7/src'

make: * [all-recursive] я█╔┬╦┴ 1

pro100sanya

соррии.. с кодировкой не лады. Вообщем в последних строках пишется «Ошибка 2» . как с этим бороться я незнаю.

P.S. под Slackware собирается все очень хорошо

fly4life

Судя по всему, для сборки нужен gcc3, а в Fedora Core 4 стоит gcc4.

cyb3rpunk

У меня на четвертом GCC все на ура собирается, правда у меня третья федора, но попробовать стоит

pro100sanya

Ну вообще не собирается ни одно из приложений которое я с инета слил. В их числе komba (клиент для локальной сети) и ему подобная еще софтина. непомню названия.

Вообщем везде подобные ошибки вижу. Может у меня не хватает библиотек? хотя я установил все что только можно из раздела разработки..

P.S. при попытке скомпилить ядро, я вижу сообщение о нехватающем .h .

fly4life
cyb3rpunk
У меня на четвертом GCC все на ура собирается, правда у меня третья федора, но попробовать стоит

В Fedora Core 3 всё-таки gcc3 (gcc-3.4.2). Или ты сам поставил gcc4?

pro100sanya

Может я что то неправильно делаю? скажите, файл configure перед установкой надо править?

fly4life

Нет, править configure не надо.

Я конечно понимаю, что всегда верится в лучшее, но говорю же — дело в gcc. Тебе нужен gcc3. В FC4 есть пакет compat-gcc-32. Попробуй его установить, а затем опять попытаться скомпилировать свой чат. Только для этого придётся отредактировать Makefile, заменив в нём gcc на gcc32.

cyb3rpunk
fly4life
В Fedora Core 3 всё-таки gcc3 (gcc-3.4.2). Или ты сам поставил gcc4?

Сам поставил, тока при сборке некоторых программ такие же глюки появились :(

cyb3rpunk

Попробуй поставить пакеты поддержки устаревших приложений, еслие ошибаюсь (и если ты их не ставил)

cyb3rpunk

Хотя, мне тоже кажется, что это компилятор…

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.