IServerD: http://iserverd.khstu.ru/download/IServerd-2.4.14.tar.gz
разархивировал
Заменил в configure адрес до sh на /cygdrive/d/cw/bin/bash
запустил ./configure
вот что написало оно мне:
bash-3.2$ ./configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for full system name... uname -a
checking for a BSD compatible install... /cygdrive/d/cw/bin//install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
bash-3.2$
automake и autoconf заинсталлены (в бине правда нету ексех, а они должны быть? ) и как я дальше уследил во время установки сигвина установлены и aclocal и autoheader.
Но выдаёт мисинги
хелп
аддед:
через день запустил и оно сконфигурировалось хз как и почему %)
вот что показало:
bash-3.2$ ./configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for full system name... uname -a
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... .exe
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for sendmail... sendmail
checking for mktemp... /bin/mktemp
checking for main in -lm... yes
checking for semop in -lcygipc... no
checking if user specified directory name... iserverd
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for stdio.h... yes
checking for stddef.h... yes
checking for sys/wait.h... (cached) yes
checking for fcntl.h... yes
checking for strings.h... yes
checking for sys/sockio.h... no
checking for sys/termios.h... yes
checking for term.h... no
checking for sys/int_types.h... no
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/pstat.h... no
checking for endian.h... yes
checking for sys/poll.h... yes
checking for poll.h... yes
checking for sys/fcntl.h... yes
checking for sys/stat.h... yes
checking for sys/file.h... (cached) yes
checking for stdarg.h... yes
checking for errno.h... yes
checking for unistd.h... (cached) yes
checking for sys/ipc.h... yes
checking for sys/sem.h... yes
checking for sys/msg.h... yes
checking for sys/shm.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for ctype.h... yes
checking for sys/resource.h... yes
checking for sys/param.h... yes
checking for sys/ioctl.h... (cached) yes
checking for sys/socket.h... yes
checking for arpa/inet.h... yes
checking for netinet/in.h... yes
checking for netdb.h... yes
checking for net/if.h... yes
checking for sys/un.h... yes
checking for syslog.h... yes
checking for machine/endian.h... yes
checking for signal.h... yes
checking for atexit... yes
checking for srandomdev... no
checking for vsyslog... yes
checking for strerror... yes
checking for pstat... no
checking for setproctitle... no
checking for mktemp... yes
checking for mkstemp... yes
checking for ualarm... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigaddset... yes
checking for setsid... yes
checking for seteuid... yes
checking for setegid... yes
checking for setpgid... yes
checking for backtrace... no
checking for fcntl... yes
checking for memcpy... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... (cached) yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... (cached) yes
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t in sys/socket.h... yes
checking for System V IPC headers... yes
checking for struct semun... no
checking whether setpgrp takes no argument... yes
checking for pid_t... (cached) yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for Postgres includes... /usr/include
checking for Postgres libraries... /usr/lib
checking for Postgres binaries... /usr/bin
checking for PS_STRINGS... no
checking for socket... yes
checking for gethostname... yes
checking for gethostbyname... yes
checking for gethostbyaddr... yes
checking for getprotobyname... yes
checking for inet_aton... yes
checking if server should be compiled with debug symbols... no
checking for stdint-types... found in stdint.h
creating include/mystdint.h - (just to include stdint.h)
checking whether what binaries we shall create... dynamically linked
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating script/Makefile
config.status: creating script/icquser
config.status: creating script/db_manage.sh
config.status: creating include/defaults.h
config.status: creating script/iserverd.sh
config.status: creating script/iserverd.sh.asp
config.status: creating script/post_mess.cgi
config.status: creating man/Makefile
config.status: creating script/convert_db.sh
config.status: creating data/etc/iserv.conf.default
config.status: creating data/etc/v3_proto.conf.default
config.status: creating data/etc/v5_proto.conf.default
config.status: creating data/etc/v7_proto.conf.default
config.status: creating data/etc/actions.conf.default
config.status: creating include/config.h
config.status: include/config.h is unchanged
bash-3.2$
я заметил много слов no как это поправить ? и мб это из-за миссингов?
далее попробовал сделать make all:
bash-3.2$ make all
g++ -I. -DHAVE_CONFIG_H -g -O2 -Iinclude/ -I/usr/include -I/usr/include/libpq -
DVAR_DIR=/var/run/iserverd -DBIN_DIR=/usr/bin -DETC_DIR=/etc/iserverd -DLOG_DIR=
/var/log/iserverd -c system/util_pipe.cpp -o system/util_pipe.o
system/util_pipe.cpp: In function `void pipe_send_packet(Packet&)':
system/util_pipe.cpp:76: error: `MSG_DONTWAIT' undeclared (first use this functi
on)
system/util_pipe.cpp:76: error: (Each undeclared identifier is reported only onc
e for each function it appears in.)
make: *** [system/util_pipe.o] Error 1
bash-3.2$
в линухе компилится на ура (у друга всё скомпилилось).
А вот в сигвине вот такие проблемы.
Однако при конфигуре выдавало что не найден интерпритатор sh ещё много раз и я просто сделал копию bash.exe и переименовал её в sh.exe и вроде перестало выдавать ошибку но получилось то что описано выше.
Вопрос: как заставить его собрать IServerd ? =(