Проблемы со сборкой 1.2.8 на Solaris 10 1/13 SPARC
-
Здравствуйте уважаемые!
Помогите пожалуйста со сборкой subj с поддержкой Unicode? Без Unicode все собирается прекрасно (ну почти!).
Пытаюсь собрать с Unicode (установлена libiconv-1.14):-bash-3.2# CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include LIBS=-L/usr/local/lib/ ./configure --with-server --with-sqlite --prefix=/opt/netxms --disable-64bit --with-pgsql --with-agent --with-openssl --enable-unicode ... checking wctype.h usability... yes checking wctype.h presence... yes checking for wctype.h... yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for wchar_t... yes checking for wint_t... yes checking size of wchar_t... 4 checking for wcslen... yes checking for wcsdup... no checking for wcsncpy... yes checking for wcstoll... yes checking for wcstoull... yes checking for towupper... yes ... checking for wcscasecmp... no checking for libiconv_open in -liconv... yes checking for libiconv... yes checking whether iconv supports UCS-2-INTERNAL... yes checking whether iconv supports UCS-2... yes checking whether iconv supports UCS2... no checking whether iconv supports UCS-2BE... yes checking whether iconv supports UCS-2LE... yes checking whether iconv supports UTF-16... yes checking whether iconv supports UCS-4-INTERNAL... yes checking whether iconv supports UCS-4... yes checking whether iconv supports UCS4... no checking whether iconv supports UCS-4BE... yes checking whether iconv supports UCS-4LE... yes checking whether iconv supports UTF-32... yes checking whether iconv supports ISO8859-1... yes checking whether iconv supports ISO-8859-1... yes checking whether iconv supports ASCII... yes checking whether iconv supports //IGNORE... yes checking for iconv declaration... const checking for floor in -lm... yes ... --------------------------------------------------------------------- Configure results --------------------------------------------------------------------- Prefix : /opt/netxms Build Server : YES Server libs : -lssl -ltermcap Encryption enabled : YES Build DB-Drivers : pgsql sqlite Build Clients : NO Build Agent : YES Subagents list : sunos Build Static Agent : NO UNICODE build : YES Use internal libexpat : NO Use internal libtre : YES Use internal zlib : NO Force 32bit build : YES C compiler : gcc C++ compiler : g++ CPPFLAGS : -I/usr/local/include -D_THREAD_SAFE -DTRE_WCHAR=1 -I/usr/local/pgsql/include -I/usr/include/pgsql -I/usr/pgsql/include -I/usr/local/include/pgsql -I/usr/local/pgsql/include/pgsql -I/usr/pgsql/include/pgsql -I/usr/local/postgresql/include -I/usr/include/postgresql -I/usr/postgresql/include -I/usr/local/include/postgresql -I/usr/local/postgresql/include/postgresql -I/usr/postgresql/include/postgresql -I/opt/openssl/include -DUNICODE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -m32 -I/usr/local/include -DPREFIX=L\"${prefix}\" -DDATADIR=L\"${pkgdatadir}\" -DBINDIR=L\"${bindir}\" -DLIBDIR=L\"${libdir}\" -DPKGLIBDIR=L\"${pkglibdir}\" CXXFLAGS : -g -O2 -fno-rtti -fno-exceptions CFLAGS : -I/usr/local/include LDFLAGS : -m32 -L/usr/local/pgsql/lib -L/usr/lib64/pgsql -L/usr/lib/pgsql -L/usr/pgsql/lib -L/usr/local/lib/pgsql -L/usr/local/pgsql/lib/pgsql -L/usr/pgsql/lib/pgsql -L/usr/local/postgresql/lib -L/usr/lib/postgresql -L/usr/postgresql/lib -L/usr/local/lib/postgresql -L/usr/local/postgresql/lib/postgresql -L/usr/postgresql/lib/postgresql -L/usr/local/lib -L/opt/openssl/lib -L/usr/local/lib LIBS : -lm -lkvm -lexpat -lz -lkstat -ldl -lsocket -lxnet -lcrypto -lcrypto -lcrypto -L/usr/local/lib/ -lpthread -liconv PostgreSQL libs : -lpq -bash-3.2# make make all-recursive ... Making all in libnetxms make[3]: Entering directory `/export/src/netxms-1.2.8/src/libnetxms' CXX libnetxms_la-agent.lo In file included from libnetxms.h:28, from agent.cpp:24: ../../include/nms_util.h: In member function `void StringMap::set(const wchar_t*, const wchar_t*)': ../../include/nms_util.h:282: error: `wcsdup' undeclared (first use this function) ../../include/nms_util.h:282: error: (Each undeclared identifier is reported only once for each function it appears in.) ../../include/nms_util.h: In member function `void TableColumnDefinition::setDisplayName(const wchar_t*)': ../../include/nms_util.h:490: error: `wcsdup' undeclared (first use this function) ../../include/nms_util.h: In member function `void Table::setTitle(const wchar_t*)': ../../include/nms_util.h:531: error: `wcsdup' undeclared (first use this function) ../../include/nms_util.h: At global scope: ../../include/nms_util.h:1116: error: `wchar_t* wcsdup(const wchar_t*)' used prior to declaration make[3]: *** [libnetxms_la-agent.lo] Error 1 make[3]: Leaving directory `/export/src/netxms-1.2.8/src/libnetxms' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/src/netxms-1.2.8/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/src/netxms-1.2.8' make: *** [all] Error 2И вот на основании вышеизложенного возникает извечный русский вопрос: Что делать?

-
Таки это баг - на солярисе нет функции wcsdup, и замена не подставляется. Я поправлю к релизу 1.2.9.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login