[emailrelay-help] errors when compiling emailrelay on openindiana-hispter
SMTP email proxy and relay server
Brought to you by:
graeme_walker
From: Marc L. <mar...@uc...> - 2017-12-01 13:51:58
|
*Hello,* *I'm trying to compile emailrelay1.9 on openindiana-hipster (the opensource cousin of solaris).* *./configure went fine* root@catalina:/opt/emailrelay-1.9# ./configure checking for a BSD-compatible install... /usr/gnu/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/gnu/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for ranlib... ranlib checking for gawk... (cached) gawk checking for grep that handles long lines and -e... /usr/gnu/bin/grep checking for make... make checking for ar... ar checking for gzip... gzip checking for doxygen... no checking for man2html... no checking for library containing gethostbyname... -lnsl checking for library containing connect... -lsocket checking how to run the C preprocessor... gcc -E checking for egrep... /usr/gnu/bin/grep -E checking for ANSI C header files... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking whether time.h and sys/time.h may both be included... 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 for unistd.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for glob... yes checking for socklen_t... yes checking for ipv6... yes checking for getipnodebyname... yes checking for sin6_len... no checking for buggy ctime... no checking for pam headers in /usr/include/pam... no checking for linux pam... yes checking for getpwnam_r... yes checking for gmtime_r... yes checking for localtime_r... yes checking for setgroups... yes checking for pkg-config... no checking for QT... no checking for moc... no checking for pkg-config... no checking for zlib... yes checking for openssl... yes checking for glob... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/glib/Makefile config.status: creating src/gssl/Makefile config.status: creating src/gnet/Makefile config.status: creating src/gauth/Makefile config.status: creating src/gsmtp/Makefile config.status: creating src/gpop/Makefile config.status: creating src/main/Makefile config.status: creating src/win32/Makefile config.status: creating src/gui/Makefile config.status: creating lib/Makefile config.status: creating lib/gcc2.95/Makefile config.status: creating lib/msvc6.0/Makefile config.status: creating bin/Makefile config.status: creating doc/Makefile config.status: creating etc/Makefile config.status: creating test/Makefile config.status: creating extra/Makefile config.status: creating debian/Makefile config.status: creating config.h config.status: executing depfiles commands *but when I try make, it fails on the following error* make[3]: Entering directory '/opt/emailrelay-1.9/src/glib' g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gcc4.9 -I/usr/include/security -g -O2 -MT gpam_linux.o -MD -MP -MF .deps/gpam_linux.Tpo -c -o gpam_linux.o gpam_linux.cpp gpam_linux.cpp: In constructor ‘G::PamImp::PamImp(G::Pam&, const string&, const string&, bool)’: gpam_linux.cpp:110:14: error: invalid conversion from ‘int (*)(int, const pam_message**, pam_response**, void*)’ to ‘int (*)(int, pam_message**, pam_response**, void*)’ [-fpermissive] m_conv.conv = converse ; ^ gpam_linux.cpp: In member function ‘std::string G::PamImp::name() const’: gpam_linux.cpp:180:49: error: invalid conversion from ‘const void**’ to ‘void**’ [-fpermissive] m_rc = ::pam_get_item( hpam() , PAM_USER , &vp ) ; ^ In file included from gpam_linux.cpp:40:0: /usr/include/security/pam_appl.h:186:1: note: initializing argument 3 of ‘int pam_get_item(const pam_handle_t*, int, void**)’ pam_get_item( ^ make[3]: *** [Makefile:470: gpam_linux.o] Error 1 make[3]: Leaving directory '/opt/emailrelay-1.9/src/glib' make[2]: *** [Makefile:254: all-recursive] Error 1 make[2]: Leaving directory '/opt/emailrelay-1.9/src' make[1]: *** [Makefile:368: all-recursive] Error 1 make[1]: Leaving directory '/opt/emailrelay-1.9' gmake: *** [Makefile:290: all] Error 2 *Any suggestion to solve this problem ?* * * *Thanks* *Marc* |