Verlihub + OpenBSD (Не компилится)

FreeBSD, NetBSD, OpenBSD, DragonFly и т. д.

Модератор: arachnid

FATMan
Сообщения: 166
ОС: OpenBSD4 Slacka11 MacOS X

Verlihub + OpenBSD

Сообщение FATMan »

Пробовал скомпилить Verlihub в OpenBSD - make вылетает с ошибками:

Код:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -I/usr/src/include/ -I/usr/local/include -I/usr/local/include -MT creguserinfo.lo -MD -MP -MF .deps/creguserinfo.Tpo -c creguserinfo.cpp -fPIC -DPIC -o .libs/creguserinfo.o In file included from /usr/include/g++/bits/locale_facets.tcc:41, from /usr/include/g++/locale:47, from /usr/include/g++/bits/ostream.tcc:37, from /usr/include/g++/ostream:535, from /usr/include/g++/iostream:45, from creguserinfo.h:22, from creguserinfo.cpp:28: /usr/include/g++/cmath:107: error: `acosf' not declared /usr/include/g++/cmath:110: error: `asinf' not declared /usr/include/g++/cmath:113: error: `atanf' not declared /usr/include/g++/cmath:116: error: `atan2f' not declared /usr/include/g++/cmath:119: error: `ceilf' not declared /usr/include/g++/cmath:122: error: `coshf' not declared /usr/include/g++/cmath:125: error: `expf' not declared /usr/include/g++/cmath:128: error: `floorf' not declared /usr/include/g++/cmath:131: error: `fmodf' not declared /usr/include/g++/cmath:134: error: `frexpf' not declared /usr/include/g++/cmath:137: error: `ldexpf' not declared /usr/include/g++/cmath:140: error: `logf' not declared /usr/include/g++/cmath:143: error: `log10f' not declared /usr/include/g++/cmath:146: error: `modff' not declared /usr/include/g++/cmath:149: error: `powf' not declared /usr/include/g++/cmath:152: error: `sinhf' not declared /usr/include/g++/cmath:155: error: `tanf' not declared /usr/include/g++/cmath:158: error: `tanhf' not declared /usr/include/g++/cmath: In function `float std::acos(float)': /usr/include/g++/cmath:184: error: `acosf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::asin(float)': /usr/include/g++/cmath:204: error: `asinf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::atan(float)': /usr/include/g++/cmath:222: error: `atanf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::atan2(float, float)': /usr/include/g++/cmath:240: error: `atan2f' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::ceil(float)': /usr/include/g++/cmath:260: error: `ceilf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::cosh(float)': /usr/include/g++/cmath:288: error: `coshf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::exp(float)': /usr/include/g++/cmath:306: error: `expf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::floor(float)': /usr/include/g++/cmath:334: error: `floorf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::fmod(float, float)': /usr/include/g++/cmath:352: error: `fmodf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::frexp(float, int*)': /usr/include/g++/cmath:372: error: `frexpf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::ldexp(float, int)': /usr/include/g++/cmath:391: error: `ldexpf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::log(float)': /usr/include/g++/cmath:411: error: `logf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::log10(float)': /usr/include/g++/cmath:429: error: `log10f' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::modf(float, float*)': /usr/include/g++/cmath:447: error: `modff' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::pow(float, float)': /usr/include/g++/cmath:486: error: `powf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::sinh(float)': /usr/include/g++/cmath:528: error: `sinhf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::tan(float)': /usr/include/g++/cmath:556: error: `tanf' undeclared in namespace ` __gnu_cxx::__c99_binding' /usr/include/g++/cmath: In function `float std::tanh(float)': /usr/include/g++/cmath:574: error: `tanhf' undeclared in namespace ` __gnu_cxx::__c99_binding' *** Error code 1 Stop in /root/p2p/verlihub/src. *** Error code 1 Stop in /root/p2p/verlihub (line 286 of Makefile). *** Error code 1 Stop in /root/p2p/verlihub (line 190 of Makefile).

Гуглил - ответа не нашёл... Что посоветуете?
Спасибо сказали:
FATMan
Сообщения: 166
ОС: OpenBSD4 Slacka11 MacOS X

Re: Verlihub + OpenBSD

Сообщение FATMan »

Всё - вопрос решился - тему удалите plz!
Спасибо сказали:
GeoF
Сообщения: 181
Статус: BSD guy
ОС: FreeBSD 6 Stable

Re: Verlihub + OpenBSD

Сообщение GeoF »

Вот так всегда, ищешь ответ на подобную проблему и находишь только что проблема решена, а решение не описано :) Поделились бы в чем была проблема, кто-то спасибо когда-нибудь скажет :)
Спасибо сказали:
FATMan
Сообщения: 166
ОС: OpenBSD4 Slacka11 MacOS X

Re: Verlihub + OpenBSD

Сообщение FATMan »

Точно не помню как решал, но что-то я просто закоментировал. Если я не ошибусь, делал так (порядок - как делал, т.е. нерациональный):
1) копировал проблемный файл ( cmath ) в папку с сорцами (т.к. файлы, если я не ошибусь, ищутся сначала именно в этой папке)
2) комментировал больные строки... Подумал, что косинус и прочие геометрические функции не нужны - помогло...
3) Далее компилятор орал о проблемах с какими-то фунциям, связанными с кодировкой - поставил, если не ошибусь, libxml2
4) скомпилил - не работают скрипты для настройки и создания пользователей (и ещё какой-то фигни - не разбирался, лень)
5) скрипты было лень переделывать - просто присвоил переменным значения и просмотрел обращения к MySQL
6) скинул всё это в чрут (ИМХО: лишним не бывает), прописал в автозапуск, настроил pf и сижу довольный :)
Компилятор орал ещё на проблемы с MySQL - точно не помню как решал, но если кому-нибудь потребуется - вспомню...
Может, конечно, не "научный подход" - но собралось и работает - с проблемами сборки сталкиваюсь в первый раз - сильно не пинайте :)
Спасибо сказали:
myx
Сообщения: 1
ОС: Openbsd 4.2

Re: Verlihub + OpenBSD

Сообщение myx »

Не могли бы вы написать patch или howto поподробней чтобы пофиксить сей досадный баг?
Спасибо сказали:
FATMan
Сообщения: 166
ОС: OpenBSD4 Slacka11 MacOS X

Re: Verlihub + OpenBSD

Сообщение FATMan »

Могу, но мало времени и опыта :)
Попробовал компилировать - самые простые варианты:
1) перейти в папку с сорцами и выполнить touch src/cmath
2) ./configure CFLAGS="-I/usr/local/mysql/include/mysql" CXXFLAGS="-I/usr/local/mysql/include/mysql" LDFLAGS="-L/usr/local/mysql/lib/mysql -lmysqlclient -Wl,-rpath -Wl,/usr/local/mysql/lib/mysql" --prefix=path2install
/usr/local/mysql/include/mysql, /usr/local/mysql/lib/mysql появляются из-за того, что я ставил мускул в /usr/local/mysql
3) gmake && gmake install :)

Если скрипты vh_getcfg и другие скрипты Verlihub не работают - редактируем их ручками.
Мне лень было их редактировать - я просто отредактировал vh_install - вручную присвоил значения переменным. Если кому-нибудь нужно - выложу. Остальные настройки выполнял через клиент, подключившись к хабу и через mysql.
Спасибо сказали: