memcached make error: Error1 And Error2 - makefile

I was trying to follow this tutorial:
https://devcenter.heroku.com/articles/process-model
And in the very first step, I wget the file and run the ./configure script.
It complained about missing libevent-
➜ memcached-1.4.5 ./configure
checking build system type... i386-apple-darwin13.1.0
checking host system type... i386-apple-darwin13.1.0
checking target system type... i386-apple-darwin13.1.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
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 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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for icc in use... no
checking for Sun cc in use... no
checking for gcc option to accept ISO C99... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
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 sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking for gcov... /usr/bin/gcov
checking for main in -lgcov... no
checking for libevent directory... configure: error: libevent is required.
After that I did a
$ brew install libevent
Running the ./configure passed without any error:
➜ memcached-1.4.5 ./configure
checking build system type... i386-apple-darwin13.1.0
checking host system type... i386-apple-darwin13.1.0
checking target system type... i386-apple-darwin13.1.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
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 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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for icc in use... no
checking for Sun cc in use... no
checking for gcc option to accept ISO C99... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
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 sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking for gcov... /usr/bin/gcov
checking for main in -lgcov... no
checking for libevent directory... (system)
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing umem_cache_create... no
checking for library containing gethugepagesizes... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inttypes.h... (cached) yes
checking for print macros for integers (C99 section 7.8.1)... yes
checking for an ANSI C-conforming const... yes
checking for socklen_t... yes
checking for endianness... little
checking for htonll... no
checking for library containing pthread_create... none required
checking for mlockall... yes
checking for getpagesizes... no
checking for memcntl... no
checking for sigignore... yes
checking for alignment... need
checking for setppriv... no
checking umem.h usability... no
checking umem.h presence... no
checking for umem.h... no
checking for xml2rfc... no
checking for xsltproc... /usr/bin/xsltproc
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
then,
➜ memcached-1.4.5 make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in doc
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
make[3]: Nothing to be done for `all-am'.
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
mv -f .deps/memcached-memcached.Tpo .deps/memcached-memcached.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-hash.o -MD -MP -MF .deps/memcached-hash.Tpo -c -o memcached-hash.o `test -f 'hash.c' || echo './'`hash.c
mv -f .deps/memcached-hash.Tpo .deps/memcached-hash.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-slabs.o -MD -MP -MF .deps/memcached-slabs.Tpo -c -o memcached-slabs.o `test -f 'slabs.c' || echo './'`slabs.c
mv -f .deps/memcached-slabs.Tpo .deps/memcached-slabs.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-items.o -MD -MP -MF .deps/memcached-items.Tpo -c -o memcached-items.o `test -f 'items.c' || echo './'`items.c
mv -f .deps/memcached-items.Tpo .deps/memcached-items.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-assoc.o -MD -MP -MF .deps/memcached-assoc.Tpo -c -o memcached-assoc.o `test -f 'assoc.c' || echo './'`assoc.c
mv -f .deps/memcached-assoc.Tpo .deps/memcached-assoc.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-thread.o -MD -MP -MF .deps/memcached-thread.Tpo -c -o memcached-thread.o `test -f 'thread.c' || echo './'`thread.c
mv -f .deps/memcached-thread.Tpo .deps/memcached-thread.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-daemon.o -MD -MP -MF .deps/memcached-daemon.Tpo -c -o memcached-daemon.o `test -f 'daemon.c' || echo './'`daemon.c
mv -f .deps/memcached-daemon.Tpo .deps/memcached-daemon.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-stats.o -MD -MP -MF .deps/memcached-stats.Tpo -c -o memcached-stats.o `test -f 'stats.c' || echo './'`stats.c
mv -f .deps/memcached-stats.Tpo .deps/memcached-stats.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-util.o -MD -MP -MF .deps/memcached-util.Tpo -c -o memcached-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/memcached-util.Tpo .deps/memcached-util.Po
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-cache.o -MD -MP -MF .deps/memcached-cache.Tpo -c -o memcached-cache.o `test -f 'cache.c' || echo './'`cache.c
mv -f .deps/memcached-cache.Tpo .deps/memcached-cache.Po
gcc -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -o memcached memcached-memcached.o memcached-hash.o memcached-slabs.o memcached-items.o memcached-assoc.o memcached-thread.o memcached-daemon.o memcached-stats.o memcached-util.o memcached-cache.o -levent
clang: error: argument unused during compilation: '-pthread'
make[2]: *** [memcached] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Ends up with this error. I haven't ever build anything from source till now so some pointers in how to go about debugging this kind of problem will be helpful. Looking at another post I see the following info maybe helpful:
➜ memcached-1.4.5 gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
And my os is mac os x 10.9.2
Thanks and regards,
Dhruv Kapur.

Related

Installing SPro on ubuntu16.04(x86_64)

SPro can be downloaded here,and it's installed by ./configure, make, make install. However, ./configure and make both arouse errors.
First, run ./configure, get the following warnings:
Try /large_dsk/share/upload/spro-5.0/spro-5.0/auxdir/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for gawk... no
The total output is as following:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/large_dsk/share/upload/spro-5.0/spro-5.0/auxdir/missing: Unknown `--run' option
Try `/large_dsk/share/upload/spro-5.0/spro-5.0/auxdir/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for library containing strerror... none required
checking for function prototypes... yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for size_t... yes
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 8
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for string.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for _doprnt... no
configure: checking for gcc warning options...
... -Wbad-function-cast
... -Wcast-align
... -Wmissing-declarations
... -Wmissing-prototypes
... -Wnested-externs
... -Wpointer-arith
... -Wshadow
... -Wstrict-prototypes
... -Wwrite-strings
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating auxdir/Makefile
config.status: creating test/Makefile
config.status: creating test/ref/Makefile
config.status: creating test/dat/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Second, when run the make, get the following errors:
I searched this error, and get the method that add -lm in gcc command, but seemly it doesn't work.
And the total ouput is as following:
So should I install some libs first or the gcc version is not right? my gcc version is gcc 5.4.0.
make all-recursive
make[1]: Entering directory '/large_dsk/share/upload/spro-5.0/spro-5.0'
Making all in doc
make[2]: Entering directory '/large_dsk/share/upload/spro-5.0/spro-5.0/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/large_dsk/share/upload/spro-5.0/spro-5.0/doc'
Making all in auxdir
make[2]: Entering directory '/large_dsk/share/upload/spro-5.0/spro-5.0/auxdir'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/large_dsk/share/upload/spro-5.0/spro-5.0/auxdir'
Making all in test
make[2]: Entering directory '/large_dsk/share/upload/spro-5.0/spro-5.0/test'
Making all in ref
make[3]: Entering directory '/large_dsk/share/upload/spro-5.0/spro-5.0/test/ref'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/large_dsk/share/upload/spro-5.0/spro-5.0/test/ref'
Making all in dat
make[3]: Entering directory '/large_dsk/share/upload/spro-5.0/spro-5.0/test/dat'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/large_dsk/share/upload/spro-5.0/spro-5.0/test/dat'
make[3]: Entering directory '/large_dsk/share/upload/spro-5.0/spro-5.0/test'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/large_dsk/share/upload/spro-5.0/spro-5.0/test'
make[2]: Leaving directory '/large_dsk/share/upload/spro-5.0/spro-5.0/test'
make[2]: Entering directory '/large_dsk/share/upload/spro-5.0/spro-5.0'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT sig.o -MD -MP -MF ".deps/sig.Tpo" -c -o sig.o sig.c; \
then mv -f ".deps/sig.Tpo" ".deps/sig.Po"; else rm -f ".deps/sig.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT spf.o -MD -MP -MF ".deps/spf.Tpo" -c -o spf.o spf.c; \
then mv -f ".deps/spf.Tpo" ".deps/spf.Po"; else rm -f ".deps/spf.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT header.o -MD -MP -MF ".deps/header.Tpo" -c -o header.o header.c; \
then mv -f ".deps/header.Tpo" ".deps/header.Po"; else rm -f ".deps/header.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT lpc.o -MD -MP -MF ".deps/lpc.Tpo" -c -o lpc.o lpc.c; \
then mv -f ".deps/lpc.Tpo" ".deps/lpc.Po"; else rm -f ".deps/lpc.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT convert.o -MD -MP -MF ".deps/convert.Tpo" -c -o convert.o convert.c; \
then mv -f ".deps/convert.Tpo" ".deps/convert.Po"; else rm -f ".deps/convert.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT fft.o -MD -MP -MF ".deps/fft.Tpo" -c -o fft.o fft.c; \
then mv -f ".deps/fft.Tpo" ".deps/fft.Po"; else rm -f ".deps/fft.Tpo"; exit 1; fi
rm -f libspro.a
ar cru libspro.a sig.o spf.o header.o misc.o lpc.o convert.o fft.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libspro.a
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT scopy.o -MD -MP -MF ".deps/scopy.Tpo" -c -o scopy.o scopy.c; \
then mv -f ".deps/scopy.Tpo" ".deps/scopy.Po"; else rm -f ".deps/scopy.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT gggetopt.o -MD -MP -MF ".deps/gggetopt.Tpo" -c -o gggetopt.o gggetopt.c; \
then mv -f ".deps/gggetopt.Tpo" ".deps/gggetopt.Po"; else rm -f ".deps/gggetopt.Tpo"; exit 1; fi
gggetopt.c: In function \u2018_getopt_long\u2019:
gggetopt.c:442:12: warning: implicit declaration of function \u2018strcmp\u2019 [-Wimplicit-function-declaration]
if ( strcmp(optarg, "--") == 0 ) {
^
gcc -g -O2 -o scopy scopy.o gggetopt.o -lm -L. -lspro
./libspro.a(misc.o): In function `spf_buf_normalize':
/large_dsk/share/upload/spro-5.0/spro-5.0/misc.c:278: undefined reference to `sqrt'
/large_dsk/share/upload/spro-5.0/spro-5.0/misc.c:187: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_lifter':
/large_dsk/share/upload/spro-5.0/spro-5.0/misc.c:408: undefined reference to `sin'
./libspro.a(misc.o): In function `sig_normalize':
/large_dsk/share/upload/spro-5.0/spro-5.0/misc.c:431: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_sig_win':
/large_dsk/share/upload/spro-5.0/spro-5.0/misc.c:464: undefined reference to `cos'
/large_dsk/share/upload/spro-5.0/spro-5.0/misc.c:479: undefined reference to `cos'
/large_dsk/share/upload/spro-5.0/spro-5.0/misc.c:479: undefined reference to `cos'
/large_dsk/share/upload/spro-5.0/spro-5.0/misc.c:471: undefined reference to `cos'
collect2: error: ld returned 1 exit status
Makefile:353: recipe for target 'scopy' failed
make[2]: *** [scopy] Error 1
make[2]: Leaving directory '/large_dsk/share/upload/spro-5.0/spro-5.0'
Makefile:432: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/large_dsk/share/upload/spro-5.0/spro-5.0'
Makefile:236: recipe for target 'all' failed
make: *** [all] Error 2
I think the build script is just wrong:
gcc -g -O2 -o scopy scopy.o gggetopt.o -lm -L. -lspro
Since -lspro uses functions from -lm, it has to come first. See this answer for some background.
I encountered the same error as you did. I wanted to installed spro 4.0 and failed.
I have been tried a lot of methods like updating the gcc,and install different version gcc but it didn't work anymore.I think the reason of this error is that installing spro 4.0 needs a old version gcc like g++-4.4.
So I solved this problem as follow:
1.first install g++-4.4,
we maybe can't install g++-4.4 in directly,so we have to install or update by the command as follow:
$sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$sudo apt-get update
$sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib
2.when installed g++-4.4 successfully, we enter the spro4.0 directory and run the install command,to prevent the permission of the installation,I suggest that we run in root or sudo:
# export CC=gcc-4.4
# ./configure && make && make install
Please don't hesitate to contact me if you have any questions.

Make error on Mac OS X: libtool: compile: unrecognized option `-c'

I am trying to make a tool called seqpp. But I get this error:
/bin/sh ../libtool --tag=F77 --mode=compile -c -o fcdiv.lo fcdiv.f
libtool: compile: unrecognized option `-c'
libtool: compile: Try `libtool --help' for more information.
I work on MacOSx 10.9.5 Mavericks
I have thought of 2 problems:
an absence of fortran compiler,
or a problem with libtool package.
So I installed gfortran by reinstalling gcc compiler using Macports : sudo port install gcc46 +gfortran. And I reinstalled libtool using MacPorts. I also installed the last version of developper tools installed, just in case.
libtool seems to be correctly installed:
$ which libtool
/usr/bin/libtool
I do not really know how to check the installation for gfortran. And it might still not be ok; as you can see in log: checking for f77... no
Is that the right problem? If yes, how to fix it?
Thanks in advance for your precious help!
Here is the whole log of the installation ("./configure" followed by "make" commands):
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) awk
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 g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking build system type... i386-apple-darwin13.4.0
checking host system type... i386-apple-darwin13.4.0
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains /XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains /XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm
checking the name lister (/opt/local/bin/nm) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /opt/local/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
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 dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... (cached) no
checking whether accepts -g... (cached) no
checking for objdir... .libs
rm: conftest.dSYM: is a directory
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking for gsl-config... /usr/local/bin/gsl-config
checking for doxygen... no
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for strchr... yes
checking for strcspn... yes
checking for strrchr... yes
checking for strtol... yes
checking for main in -lm... yes
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... inline
checking whether make sets $(MAKE)... (cached) yes
configure: creating ./config.status
config.status: creating seqpp.spec
config.status: creating Makefile
config.status: creating seqpp/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxyfiles/config.dox
config.status: creating doc/doxyfiles/header.html
config.status: creating doc/doxyfiles/footer.html
config.status: creating doc/html/Makefile
config.status: creating doc/man/Makefile
config.status: creating argtable2/Makefile
config.status: creating src/Makefile
config.status: creating alphabet/Makefile
config.status: creating data/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: "Note that XML Library libxml2 NOT FOUND or XML Modules NOT ACTIVATED by --enable-xml => XML output disabled."
pc17:seqpp-4.2.0 iryna$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in seqpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. `/usr/local/bin/gsl-config --cflags` `` -O3 -MT Coder.lo -MD -MP -MF .deps/Coder.Tpo -c -o Coder.lo Coder.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT Coder.lo -MD -MP -MF .deps/Coder.Tpo -c Coder.cc -fno-common -DPIC -o .libs/Coder.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT Coder.lo -MD -MP -MF .deps/Coder.Tpo -c Coder.cc -o Coder.o >/dev/null 2>&1
mv -f .deps/Coder.Tpo .deps/Coder.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. `/usr/local/bin/gsl-config --cflags` `` -O3 -MT arnoldi.lo -MD -MP -MF .deps/arnoldi.Tpo -c -o arnoldi.lo arnoldi.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT arnoldi.lo -MD -MP -MF .deps/arnoldi.Tpo -c arnoldi.cc -fno-common -DPIC -o .libs/arnoldi.o
arnoldi.cc:218:51: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cerr<<"arnoldi: no convergence, too many it<E9>rations !"<<endl;
^~~~
arnoldi.cc:482:51: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cerr<<"arnoldi: no convergence, too many it<E9>rations !"<<endl;
^~~~
arnoldi.cc:744:51: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cerr<<"arnoldi: no convergence, too many it<E9>rations !"<<endl;
^~~~
arnoldi.cc:1009:51: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cerr<<"arnoldi: no convergence, too many it<E9>rations !"<<endl;
^~~~
4 warnings generated.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT arnoldi.lo -MD -MP -MF .deps/arnoldi.Tpo -c arnoldi.cc -o arnoldi.o >/dev/null 2>&1
mv -f .deps/arnoldi.Tpo .deps/arnoldi.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. `/usr/local/bin/gsl-config --cflags` `` -O3 -MT Sequence.lo -MD -MP -MF .deps/Sequence.Tpo -c -o Sequence.lo Sequence.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT Sequence.lo -MD -MP -MF .deps/Sequence.Tpo -c Sequence.cc -fno-common -DPIC -o .libs/Sequence.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT Sequence.lo -MD -MP -MF .deps/Sequence.Tpo -c Sequence.cc -o Sequence.o >/dev/null 2>&1
mv -f .deps/Sequence.Tpo .deps/Sequence.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. `/usr/local/bin/gsl-config --cflags` `` -O3 -MT PrimarySequence.lo -MD -MP -MF .deps/PrimarySequence.Tpo -c -o PrimarySequence.lo PrimarySequence.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT PrimarySequence.lo -MD -MP -MF .deps/PrimarySequence.Tpo -c PrimarySequence.cc -fno-common -DPIC -o .libs/PrimarySequence.o
PrimarySequence.cc:19:26: warning: comparison of unsigned expression < 0 is
always false [-Wtautological-compare]
if ( ( beg>stop )||(beg<0)||(stop>=_length) ){
~~~^~
PrimarySequence.cc:36:26: warning: comparison of unsigned expression < 0 is
always false [-Wtautological-compare]
if ( ( beg>stop )||(beg<0)||(stop>=_length) ){
~~~^~
2 warnings generated.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT PrimarySequence.lo -MD -MP -MF .deps/PrimarySequence.Tpo -c PrimarySequence.cc -o PrimarySequence.o >/dev/null 2>&1
mv -f .deps/PrimarySequence.Tpo .deps/PrimarySequence.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. `/usr/local/bin/gsl-config --cflags` `` -O3 -MT SequenceSet.lo -MD -MP -MF .deps/SequenceSet.Tpo -c -o SequenceSet.lo SequenceSet.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT SequenceSet.lo -MD -MP -MF .deps/SequenceSet.Tpo -c SequenceSet.cc -fno-common -DPIC -o .libs/SequenceSet.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT SequenceSet.lo -MD -MP -MF .deps/SequenceSet.Tpo -c SequenceSet.cc -o SequenceSet.o >/dev/null 2>&1
mv -f .deps/SequenceSet.Tpo .deps/SequenceSet.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. `/usr/local/bin/gsl-config --cflags` `` -O3 -MT PhasedMarkov.lo -MD -MP -MF .deps/PhasedMarkov.Tpo -c -o PhasedMarkov.lo PhasedMarkov.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT PhasedMarkov.lo -MD -MP -MF .deps/PhasedMarkov.Tpo -c PhasedMarkov.cc -fno-common -DPIC -o .libs/PhasedMarkov.o
In file included from PhasedMarkov.cc:1:
../seqpp/PhasedMarkov.h:31:17: warning: using directive refers to
implicitly-defined namespace 'std'
using namespace std;
^
PhasedMarkov.cc:63:20: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cerr<<"\"# Phase n<B0>\" line missing or mispositionned"<<endl;
^~~~
PhasedMarkov.cc:935:46: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cerr<<"arnoldi: no convergence, too many it<E9>rations !"<<endl;
^~~~
PhasedMarkov.cc:1396:5: warning: add explicit braces to avoid dangling else
[-Wdangling-else]
else{
^
PhasedMarkov.cc:1413:4: warning: add explicit braces to avoid dangling else
[-Wdangling-else]
else{
^
PhasedMarkov.cc:1426:2: warning: add explicit braces to avoid dangling else
[-Wdangling-else]
else{
^
PhasedMarkov.cc:1458:6: warning: add explicit braces to avoid dangling else
[-Wdangling-else]
else{
^
PhasedMarkov.cc:1619:70: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
...PhasedMarkov::distVarTot\n, Pi ou Mu ne sont pas d<E9>finis pour une de...
^~~~
PhasedMarkov.cc:1677:19: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
Out << "# Phase n<B0>" << p <<endl;
^~~~
9 warnings generated.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT PhasedMarkov.lo -MD -MP -MF .deps/PhasedMarkov.Tpo -c PhasedMarkov.cc -o PhasedMarkov.o >/dev/null 2>&1
mv -f .deps/PhasedMarkov.Tpo .deps/PhasedMarkov.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. `/usr/local/bin/gsl-config --cflags` `` -O3 -MT Markov.lo -MD -MP -MF .deps/Markov.Tpo -c -o Markov.lo Markov.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT Markov.lo -MD -MP -MF .deps/Markov.Tpo -c Markov.cc -fno-common -DPIC -o .libs/Markov.o
In file included from Markov.cc:1:
In file included from ../seqpp/Markov.h:31:
../seqpp/PhasedMarkov.h:31:17: warning: using directive refers to
implicitly-defined namespace 'std'
using namespace std;
^
1 warning generated.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT Markov.lo -MD -MP -MF .deps/Markov.Tpo -c Markov.cc -o Markov.o >/dev/null 2>&1
mv -f .deps/Markov.Tpo .deps/Markov.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. `/usr/local/bin/gsl-config --cflags` `` -O3 -MT Translator.lo -MD -MP -MF .deps/Translator.Tpo -c -o Translator.lo Translator.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT Translator.lo -MD -MP -MF .deps/Translator.Tpo -c Translator.cc -fno-common -DPIC -o .libs/Translator.o
Translator.cc:183:37: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<_iter_si->first<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:190:37: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<_iter_ci->first<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:202:37: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<_iter_si->first<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:207:17: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<"Compl<E9>mentaire"<<endl;
^~~~
Translator.cc:211:37: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<_iter_si->first<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:218:28: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<i<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:223:28: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<i<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:353:37: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<_iter_si->first<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:360:37: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<_iter_ci->first<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:372:37: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<_iter_si->first<<" est associ<E9> <E0> "
^~~~ ~~~~
Translator.cc:379:28: warning: illegal character encoding in string literal
[-Winvalid-source-encoding]
cout<<i<<" est associ<E9> <E0> "
^~~~ ~~~~
11 warnings generated.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -O3 -MT Translator.lo -MD -MP -MF .deps/Translator.Tpo -c Translator.cc -o Translator.o >/dev/null 2>&1
mv -f .deps/Translator.Tpo .deps/Translator.Plo
/bin/sh ../libtool --tag=F77 --mode=compile -c -o fcdiv.lo fcdiv.f
libtool: compile: unrecognized option `-c'
libtool: compile: Try `libtool --help' for more information.
make[2]: *** [fcdiv.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Actually I figured out the problem: it was indeed due to absence of fortran compiler. As I have told, I had downloaded from Macports a gcc compiler containing fortran with:
sudo port install gcc46 +gfortran
Then I had to set this compiler as my default compiler:
1)install gcc_select from Macports
sudo port install gcc_select
2)view all gcc compilers and set one of them as compiler by default (my compiler is mp-gcc46) :
port select --list gcc
sudo port select --set gcc mp-gcc46
3)you can check that the compiler has been modified:
gcc --version
That's it, I hope it will help somebody

compiling hunspell-1.3.2 with cygwin in win 7 ultimate

I need hunspell. I am a windows user. I am using win 7 ultimate English.
OS Name Microsoft Windows 7 Ultimate
Version 6.1.7601 Service Pack 1 Build 7601
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name NURAS-PC
System Manufacturer Sony Corporation
System Model VPCW21M1E
System Type x64-based PC
Processor Intel(R) Atom(TM) CPU N450 # 1.66GHz, 1666 Mhz, 1 Core(s), 2 Logical Processor(s)
BIOS Version/Date INSYDE R0240E2, 07-Dec-09
SMBIOS Version 2.6
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "6.1.7601.17514"
User Name nuras-PC\nuras
Time Zone Turkey Daylight Time
Installed Physical Memory (RAM) 2.00 GB
Total Physical Memory 1.99 GB
Available Physical Memory 704 MB
Total Virtual Memory 4.23 GB
Available Virtual Memory 1.84 GB
Page File Space 2.24 GB
Page File C:\pagefile.sys
Yesterday I installed Cygwin x86 all packages written in hunspell read me.
2. Compiling in Cygwin environment
make
gcc-g++ development package
mingw development package (for cygwin.dll free native Windows compilation)
ncurses, readline (for user interface)
iconv (character conversion)
I selected nearly all dev and util packages
firstly I pasted my "C:\cygwin\bin\cygwin1.dll" to "c:\Windows\system32\"
the first time pushed the Cygwin console wrote the command "mkdir dene"
then I added the path the windows path
my downloaded hunspell I unzipped two times with 7zip and copied pasted to under "dene" directory
then pushed Cygwin console
nuras#nuras-PC ~
$ cd dene
nuras#nuras-PC ~/dene
$ ls
hunspell-1.3.2
nuras#nuras-PC ~/dene
$ cd hunspell-1.3.2
nuras#nuras-PC ~/dene/hunspell-1.3.2
$ ./configure --with-ui
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
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 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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for as... as
checking for dlltool... dlltool
checking for objdump... (cached) objdump
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for unistd.h... (cached) yes
checking error.h usability... yes
checking error.h presence... yes
checking for error.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for error_at_line... yes
checking for ANSI C header files... (cached) yes
checking for memchr... yes
checking for setlocale... yes
checking for strchr... yes
checking for strstr... yes
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether we are using the GNU C Library 2 or newer... no
checking for ranlib... (cached) ranlib
checking for simple visibility declarations... yes
checking for size_t... yes
checking for stdint.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for unsigned long long int... yes
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ld used by GCC... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for shared library run path origin... done
checking whether imported symbols can be declared weak... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking for pthread_rwlock_t... yes
checking for multithread API to use... posix
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for argz_count... yes
checking for argz_stringify... yes
checking for argz_next... yes
checking for __fsetlocking... no
checking whether feof_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for NL_LOCALE_NAME macro... no
checking for bison... no
checking for long long int... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for ptrdiff_t... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for asprintf... yes
checking for fwprintf... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... (cached) yes
checking for snprintf... yes
checking for wcslen... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether getc_unlocked is declared... yes
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for windres... windres
checking for CFPreferencesCopyAppValue... (cached) no
checking for CFLocaleCopyCurrent... (cached) no
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... no
checking whether to use NLS... yes
checking where the gettext function comes from... included intl directory
checking for tparm in -lncursesw... yes
Compiling with curses user interface.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating hunspell.pc
config.status: creating man/Makefile
config.status: creating man/hu/Makefile
config.status: creating intl/Makefile
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating src/hunspell/Makefile
config.status: creating src/hunspell/hunvisapi.h
config.status: creating src/parsers/Makefile
config.status: creating src/tools/Makefile
config.status: creating src/win_api/Makefile
config.status: creating tests/Makefile
config.status: creating tests/suggestiontest/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
nuras#nuras-PC ~/dene/hunspell-1.3.2
$ make
make all-recursive
make[1]: Entering directory '/home/nuras/dene/hunspell-1.3.2'
Making all in intl
make[2]: Entering directory '/home/nuras/dene/hunspell-1.3.2/intl'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/nuras/dene/hunspell-1.3.2/intl'
Making all in po
make[2]: Entering directory '/home/nuras/dene/hunspell-1.3.2/po'
make[2]: Leaving directory '/home/nuras/dene/hunspell-1.3.2/po'
Making all in src
make[2]: Entering directory '/home/nuras/dene/hunspell-1.3.2/src'
Making all in hunspell
make[3]: Entering directory '/home/nuras/dene/hunspell-1.3.2/src/hunspell'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT affentry.lo -MD -MP -MF .deps/affentry.Tpo -c -o affentry.lo affentry.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT affentry.lo -MD -MP -MF .deps/affentry.Tpo -c affentry.cxx -DDLL_EXPORT -DPIC -o .libs/affentry.o
In file included from affentry.cxx:9:0:
affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL);
^
affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL);
^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT affentry.lo -MD -MP -MF .deps/affentry.Tpo -c affentry.cxx -o affentry.o >/dev/null 2>&1
mv -f .deps/affentry.Tpo .deps/affentry.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT affixmgr.lo -MD -MP -MF .deps/affixmgr.Tpo -c -o affixmgr.lo affixmgr.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT affixmgr.lo -MD -MP -MF .deps/affixmgr.Tpo -c affixmgr.cxx -DDLL_EXPORT -DPIC -o .libs/affixmgr.o
In file included from affixmgr.cxx:12:0:
affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL);
^
affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null]
struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL);
^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT affixmgr.lo -MD -MP -MF .deps/affixmgr.Tpo -c affixmgr.cxx -o affixmgr.o >/dev/null 2>&1
mv -f .deps/affixmgr.Tpo .deps/affixmgr.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT csutil.lo -MD -MP -MF .deps/csutil.Tpo -c -o csutil.lo csutil.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT csutil.lo -MD -MP -MF .deps/csutil.Tpo -c csutil.cxx -DDLL_EXPORT -DPIC -o .libs/csutil.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT csutil.lo -MD -MP -MF .deps/csutil.Tpo -c csutil.cxx -o csutil.o >/dev/null 2>&1
mv -f .deps/csutil.Tpo .deps/csutil.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT dictmgr.lo -MD -MP -MF .deps/dictmgr.Tpo -c -o dictmgr.lo dictmgr.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT dictmgr.lo -MD -MP -MF .deps/dictmgr.Tpo -c dictmgr.cxx -DDLL_EXPORT -DPIC -o .libs/dictmgr.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT dictmgr.lo -MD -MP -MF .deps/dictmgr.Tpo -c dictmgr.cxx -o dictmgr.o >/dev/null 2>&1
mv -f .deps/dictmgr.Tpo .deps/dictmgr.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hashmgr.lo -MD -MP -MF .deps/hashmgr.Tpo -c -o hashmgr.lo hashmgr.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hashmgr.lo -MD -MP -MF .deps/hashmgr.Tpo -c hashmgr.cxx -DDLL_EXPORT -DPIC -o .libs/hashmgr.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hashmgr.lo -MD -MP -MF .deps/hashmgr.Tpo -c hashmgr.cxx -o hashmgr.o >/dev/null 2>&1
mv -f .deps/hashmgr.Tpo .deps/hashmgr.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hunspell.lo -MD -MP -MF .deps/hunspell.Tpo -c -o hunspell.lo hunspell.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hunspell.lo -MD -MP -MF .deps/hunspell.Tpo -c hunspell.cxx -DDLL_EXPORT -DPIC -o .libs/hunspell.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hunspell.lo -MD -MP -MF .deps/hunspell.Tpo -c hunspell.cxx -o hunspell.o >/dev/null 2>&1
mv -f .deps/hunspell.Tpo .deps/hunspell.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT suggestmgr.lo -MD -MP -MF .deps/suggestmgr.Tpo -c -o suggestmgr.lo suggestmgr.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT suggestmgr.lo -MD -MP -MF .deps/suggestmgr.Tpo -c suggestmgr.cxx -DDLL_EXPORT -DPIC -o .libs/suggestmgr.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT suggestmgr.lo -MD -MP -MF .deps/suggestmgr.Tpo -c suggestmgr.cxx -o suggestmgr.o >/dev/null 2>&1
mv -f .deps/suggestmgr.Tpo .deps/suggestmgr.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT phonet.lo -MD -MP -MF .deps/phonet.Tpo -c -o phonet.lo phonet.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT phonet.lo -MD -MP -MF .deps/phonet.Tpo -c phonet.cxx -DDLL_EXPORT -DPIC -o .libs/phonet.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT phonet.lo -MD -MP -MF .deps/phonet.Tpo -c phonet.cxx -o phonet.o >/dev/null 2>&1
mv -f .deps/phonet.Tpo .deps/phonet.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT filemgr.lo -MD -MP -MF .deps/filemgr.Tpo -c -o filemgr.lo filemgr.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT filemgr.lo -MD -MP -MF .deps/filemgr.Tpo -c filemgr.cxx -DDLL_EXPORT -DPIC -o .libs/filemgr.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT filemgr.lo -MD -MP -MF .deps/filemgr.Tpo -c filemgr.cxx -o filemgr.o >/dev/null 2>&1
mv -f .deps/filemgr.Tpo .deps/filemgr.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hunzip.lo -MD -MP -MF .deps/hunzip.Tpo -c -o hunzip.lo hunzip.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hunzip.lo -MD -MP -MF .deps/hunzip.Tpo -c hunzip.cxx -DDLL_EXPORT -DPIC -o .libs/hunzip.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT hunzip.lo -MD -MP -MF .deps/hunzip.Tpo -c hunzip.cxx -o hunzip.o >/dev/null 2>&1
mv -f .deps/hunzip.Tpo .deps/hunzip.Plo
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT replist.lo -MD -MP -MF .deps/replist.Tpo -c -o replist.lo replist.cxx
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT replist.lo -MD -MP -MF .deps/replist.Tpo -c replist.cxx -DDLL_EXPORT -DPIC -o .libs/replist.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -MT replist.lo -MD -MP -MF .deps/replist.Tpo -c replist.cxx -o replist.o >/dev/null 2>&1
mv -f .deps/replist.Tpo .deps/replist.Plo
/bin/sh ../../libtool --tag=CXX --mode=link g++ -fvisibility=hidden -DBUILDING_LIBHUNSPELL -g -O2 -no-undefined -o libhunspell-1.3.la -rpath /usr/local/lib affentry.lo affixmgr.lo csutil.lo dictmgr.lo hashmgr.lo hunspell.lo suggestmgr.lo phonet.lo filemgr.lo hunzip.lo replist.lo
libtool: link: rm -fr .libs/libhunspell-1.3.a .libs/libhunspell-1.3.dll.a .libs/libhunspell-1.3.la .libs/libhunspell-1.3.lai
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i686-pc-cygwin/4.8.3/crtbegin.o .libs/affentry.o .libs/affixmgr.o .libs/csutil.o .libs/dictmgr.o .libs/hashmgr.o .libs/hunspell.o .libs/suggestmgr.o .libs/phonet.o .libs/filemgr.o .libs/hunzip.o .libs/replist.o -L/usr/lib/gcc/i686-pc-cygwin/4.8.3 -L/usr/lib/gcc/i686-pc-cygwin/4.8.3/../../.. -lstdc++ -lgcc_s -lgcc -lcygwin -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc /usr/lib/gcc/i686-pc-cygwin/4.8.3/crtend.o -o .libs/cyghunspell-1.3-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libhunspell-1.3.dll.a
libtool: link: ar cru .libs/libhunspell-1.3.a affentry.o affixmgr.o csutil.o dictmgr.o hashmgr.o hunspell.o suggestmgr.o phonet.o filemgr.o hunzip.o replist.o
libtool: link: ranlib .libs/libhunspell-1.3.a
libtool: link: ( cd ".libs" && rm -f "libhunspell-1.3.la" && ln -s "../libhunspell-1.3.la" "libhunspell-1.3.la" )
make[3]: Leaving directory '/home/nuras/dene/hunspell-1.3.2/src/hunspell'
Making all in parsers
make[3]: Entering directory '/home/nuras/dene/hunspell-1.3.2/src/parsers'
g++ -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT firstparser.o -MD -MP -MF .deps/firstparser.Tpo -c -o firstparser.o firstparser.cxx
mv -f .deps/firstparser.Tpo .deps/firstparser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT htmlparser.o -MD -MP -MF .deps/htmlparser.Tpo -c -o htmlparser.o htmlparser.cxx
mv -f .deps/htmlparser.Tpo .deps/htmlparser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT latexparser.o -MD -MP -MF .deps/latexparser.Tpo -c -o latexparser.o latexparser.cxx
mv -f .deps/latexparser.Tpo .deps/latexparser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT manparser.o -MD -MP -MF .deps/manparser.Tpo -c -o manparser.o manparser.cxx
mv -f .deps/manparser.Tpo .deps/manparser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT textparser.o -MD -MP -MF .deps/textparser.Tpo -c -o textparser.o textparser.cxx
mv -f .deps/textparser.Tpo .deps/textparser.Po
rm -f libparsers.a
ar cru libparsers.a firstparser.o htmlparser.o latexparser.o manparser.o textparser.o
ranlib libparsers.a
/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -o testparser.exe firstparser.o htmlparser.o latexparser.o manparser.o testparser.o textparser.o ../hunspell/libhunspell-1.3.la
libtool: link: g++ -g -O2 -o .libs/testparser.exe firstparser.o htmlparser.o latexparser.o manparser.o testparser.o textparser.o ../hunspell/.libs/libhunspell-1.3.dll.a -L/usr/local/lib
make[3]: Leaving directory '/home/nuras/dene/hunspell-1.3.2/src/parsers'
Making all in tools
make[3]: Entering directory '/home/nuras/dene/hunspell-1.3.2/src/tools'
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/hunspell -I../../src/parsers -g -O2 -MT analyze.o -MD -MP -MF .deps/analyze.Tpo -c -o analyze.o analyze.cxx
mv -f .deps/analyze.Tpo .deps/analyze.Po
/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -o analyze.exe analyze.o ../hunspell/libhunspell-1.3.la
libtool: link: g++ -g -O2 -o .libs/analyze.exe analyze.o ../hunspell/.libs/libhunspell-1.3.dll.a -L/usr/local/lib
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/hunspell -I../../src/parsers -g -O2 -MT chmorph.o -MD -MP -MF .deps/chmorph.Tpo -c -o chmorph.o chmorph.cxx
mv -f .deps/chmorph.Tpo .deps/chmorph.Po
/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -o chmorph.exe chmorph.o ../parsers/libparsers.a ../hunspell/libhunspell-1.3.la
libtool: link: g++ -g -O2 -o .libs/chmorph.exe chmorph.o ../parsers/libparsers.a ../hunspell/.libs/libhunspell-1.3.dll.a -L/usr/local/lib
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/hunspell -I../../src/parsers -g -O2 -MT hunspell.o -MD -MP -MF .deps/hunspell.Tpo -c -o hunspell.o hunspell.cxx
hunspell.cxx:119:21: fatal error: ncurses.h: No such file or directory
#include <ncurses.h>
^
compilation terminated.
Makefile:524: recipe for target 'hunspell.o' failed
make[3]: *** [hunspell.o] Error 1
make[3]: Leaving directory '/home/nuras/dene/hunspell-1.3.2/src/tools'
Makefile:329: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/nuras/dene/hunspell-1.3.2/src'
Makefile:425: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/nuras/dene/hunspell-1.3.2'
Makefile:330: recipe for target 'all' failed
make: *** [all] Error 2
I think I forgot the installing "readline package" I will try to install now.
if I succeed the compilation which directory will Cygwin put it the huspell's executables?
if anyone give me some help I will be appreciated. Thank you.
art
Expanding on my comment above, it does look like that you're missing libncursesw-devel. You can install that from the setup application that you used to install Cygwin.
I've downloaded the source for hunspell-1.3.2 and built it successfully on my machine.
I can now tell you that by default it installs into /usr/local.
Also, for better performance, you should add "--enable-shared=yes" to your configure command line options and add LDFLAGS="-no-undefined" to your options when you call "make". This will force the build scripts to build a shared library for libhunspell.
Finally, hunspell's configure script aborts almost immediately under 64-bit Cygwin, complaining that it can't recognize the system type. Since I notice that you're using 32-bit Cygwin, I did not do any research into how difficult this would be to correct. Fixing configure is probably pretty trivial, but that doesn't guarantee that hunspell will compile and run.

FREEBSD: make install Unknown modifier 'u' Variable ALL_OPTIONS is recursive

I am looking for a method to remove the make error message I am getting. Please let me know if there is any suitable solution. My uname -a returns the following:
FreeBSD SM2-BSD 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008 root#dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
UPDATE: My make command is running on my old linux machine which is of the same configuration as my new one, running FreeBSD 6.3. I am not getting any errors in that. I tried copying this make file to my new machine, but its still giving the same error.
I have just done portsnap update and am facing an error whenever I am trying to do a make install in any of the ports packages. I am getting the following error
make install
Unknown modifier 'u'
Variable ALL_OPTIONS is recursive.
I have tried deleting the /usr/ports/Mk and /usr/ports/lang/tcl84 and doing portsnap fetch again as suggested in http://forums.freebsd.org/showthread.php?t=32376 but I am getting the same error again.
I also tried copying a working make binary from my other machine and pasted it into /user/bin/make into my new machine but to no avail.
I have even tried downloading the Make files and installing them from http://ftp.gnu.org/gnu/make/make-3.82.tar.gz by running the following command in the extracted folder:
./configure
make
make check
make install
make distclean
This is the output I have got while running the above commands were:
[root#SM2-BSD ~/stuff/make-3.82]# ./configure >> logfile
config.status: WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting
[root#SM2-BSD ~/stuff/make-3.82]# make >> logfile
In file included from glob.c:1377:
glob.c: In function `glob_in_dir':
glob.c:199: warning: passing arg 1 of `my_realloc' from incompatible pointer type
In file included from glob.c:812:
glob.c: In function `glob':
glob.c:199: warning: passing arg 1 of `my_realloc' from incompatible pointer type
In file included from glob.c:931:
glob.c:199: warning: passing arg 1 of `my_realloc' from incompatible pointer type
In file included from glob.c:987:
glob.c:199: warning: passing arg 1 of `my_realloc' from incompatible pointer type
[root#SM2-BSD ~/stuff/make-3.82]# make install >> logfile
And my logfile reads:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
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 ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for ar... ar
checking for perl... perl
checking build system type... i386-unknown-freebsd6.3
checking host system type... i386-unknown-freebsd6.3
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for strerror in -lcposix... no
checking whether NLS is requested... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for library containing getpwnam... none required
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether stat file-mode macros are broken... no
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for uintmax_t... yes
checking for nanoseconds field of struct stat.st_mtim... no
checking whether to use high resolution file timestamps... no
checking whether system uses MSDOS-style paths... no
checking for standard gettimeofday... yes
checking for strdup... yes
checking for strndup... no
checking for mkstemp... yes
checking for mktemp... yes
checking for fdopen... yes
checking for fileno... yes
checking for dup2... yes
checking for getcwd... yes
checking for realpath... yes
checking for sigsetmask... yes
checking for sigaction... yes
checking for getgroups... yes
checking for seteuid... yes
checking for setegid... yes
checking for setlinebuf... yes
checking for setreuid... yes
checking for setregid... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for setvbuf... yes
checking for pipe... yes
checking for strerror... yes
checking for strsignal... yes
checking for lstat... yes
checking for readlink... yes
checking for atexit... yes
checking whether bsd_signal is declared... no
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strcmpi... no
checking for strncmpi... no
checking for stricmp... no
checking for strnicmp... no
checking for working strcoll... yes
checking for working alloca.h... no
checking for alloca... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for vprintf... yes
checking for _doprnt... no
checking whether closedir returns void... no
checking for getloadavg... yes
checking for pstat_getdynamic... no
checking for kstat_open in -lkstat... no
checking for getloadavg... yes
checking whether getloadavg requires setgid... no
checking whether sys_siglist is declared... yes
checking whether _sys_siglist is declared... no
checking whether __sys_siglist is declared... no
checking for sys/wait.h... yes
checking for waitpid... yes
checking for wait3... yes
checking for union wait... no
checking for SA_RESTART... yes
checking for location of SCCS get command... get
checking if system libc has GNU glob... no; using local copy
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating glob/Makefile
config.status: creating po/Makefile.in
config.status: creating config/Makefile
config.status: creating doc/Makefile
config.status: creating w32/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: creating build.sh
make all-recursive
Making all in glob
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -g -O2 -MT glob.o -MD -MP -MF .deps/glob.Tpo -c -o glob.o glob.c
mv -f .deps/glob.Tpo .deps/glob.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -g -O2 -MT fnmatch.o -MD -MP -MF .deps/fnmatch.Tpo -c -o fnmatch.o fnmatch.c
mv -f .deps/fnmatch.Tpo .deps/fnmatch.Po
rm -f libglob.a
ar cru libglob.a glob.o fnmatch.o
ranlib libglob.a
Making all in config
Making all in po
Making all in doc
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT ar.o -MD -MP -MF .deps/ar.Tpo -c -o ar.o ar.c
mv -f .deps/ar.Tpo .deps/ar.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT arscan.o -MD -MP -MF .deps/arscan.Tpo -c -o arscan.o arscan.c
mv -f .deps/arscan.Tpo .deps/arscan.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT commands.o -MD -MP -MF .deps/commands.Tpo -c -o commands.o commands.c
mv -f .deps/commands.Tpo .deps/commands.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT default.o -MD -MP -MF .deps/default.Tpo -c -o default.o default.c
mv -f .deps/default.Tpo .deps/default.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT dir.o -MD -MP -MF .deps/dir.Tpo -c -o dir.o dir.c
mv -f .deps/dir.Tpo .deps/dir.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT expand.o -MD -MP -MF .deps/expand.Tpo -c -o expand.o expand.c
mv -f .deps/expand.Tpo .deps/expand.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT file.o -MD -MP -MF .deps/file.Tpo -c -o file.o file.c
mv -f .deps/file.Tpo .deps/file.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT function.o -MD -MP -MF .deps/function.Tpo -c -o function.o function.c
mv -f .deps/function.Tpo .deps/function.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o getopt.c
mv -f .deps/getopt.Tpo .deps/getopt.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o getopt1.o getopt1.c
mv -f .deps/getopt1.Tpo .deps/getopt1.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT implicit.o -MD -MP -MF .deps/implicit.Tpo -c -o implicit.o implicit.c
mv -f .deps/implicit.Tpo .deps/implicit.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT job.o -MD -MP -MF .deps/job.Tpo -c -o job.o job.c
mv -f .deps/job.Tpo .deps/job.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT misc.o -MD -MP -MF .deps/misc.Tpo -c -o misc.o misc.c
mv -f .deps/misc.Tpo .deps/misc.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT read.o -MD -MP -MF .deps/read.Tpo -c -o read.o read.c
mv -f .deps/read.Tpo .deps/read.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT remake.o -MD -MP -MF .deps/remake.Tpo -c -o remake.o remake.c
mv -f .deps/remake.Tpo .deps/remake.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT remote-stub.o -MD -MP -MF .deps/remote-stub.Tpo -c -o remote-stub.o remote-stub.c
mv -f .deps/remote-stub.Tpo .deps/remote-stub.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT rule.o -MD -MP -MF .deps/rule.Tpo -c -o rule.o rule.c
mv -f .deps/rule.Tpo .deps/rule.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT signame.o -MD -MP -MF .deps/signame.Tpo -c -o signame.o signame.c
mv -f .deps/signame.Tpo .deps/signame.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT strcache.o -MD -MP -MF .deps/strcache.Tpo -c -o strcache.o strcache.c
mv -f .deps/strcache.Tpo .deps/strcache.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT variable.o -MD -MP -MF .deps/variable.Tpo -c -o variable.o variable.c
mv -f .deps/variable.Tpo .deps/variable.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT version.o -MD -MP -MF .deps/version.Tpo -c -o version.o version.c
mv -f .deps/version.Tpo .deps/version.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT vpath.o -MD -MP -MF .deps/vpath.Tpo -c -o vpath.o vpath.c
mv -f .deps/vpath.Tpo .deps/vpath.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -I/usr/local/include -g -O2 -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.c
mv -f .deps/hash.Tpo .deps/hash.Po
gcc -g -O2 -o make ar.o arscan.o commands.o default.o dir.o expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o read.o remake.o remote-stub.o rule.o signame.o strcache.o variable.o version.o vpath.o hash.o glob/libglob.a /usr/local/li
b/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
Making install in glob
Making install in config
Making install in po
/bin/sh ../config/mkinstalldirs /usr/local/share
installing be.gmo as /usr/local/share/locale/be/LC_MESSAGES/make.mo
installing da.gmo as /usr/local/share/locale/da/LC_MESSAGES/make.mo
installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/make.mo
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/make.mo
installing fi.gmo as /usr/local/share/locale/fi/LC_MESSAGES/make.mo
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/make.mo
installing ga.gmo as /usr/local/share/locale/ga/LC_MESSAGES/make.mo
installing gl.gmo as /usr/local/share/locale/gl/LC_MESSAGES/make.mo
installing he.gmo as /usr/local/share/locale/he/LC_MESSAGES/make.mo
installing hr.gmo as /usr/local/share/locale/hr/LC_MESSAGES/make.mo
installing id.gmo as /usr/local/share/locale/id/LC_MESSAGES/make.mo
installing it.gmo as /usr/local/share/locale/it/LC_MESSAGES/make.mo
installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/make.mo
installing ko.gmo as /usr/local/share/locale/ko/LC_MESSAGES/make.mo
installing lt.gmo as /usr/local/share/locale/lt/LC_MESSAGES/make.mo
installing nl.gmo as /usr/local/share/locale/nl/LC_MESSAGES/make.mo
installing pl.gmo as /usr/local/share/locale/pl/LC_MESSAGES/make.mo
installing pt_BR.gmo as /usr/local/share/locale/pt_BR/LC_MESSAGES/make.mo
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/make.mo
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/make.mo
installing tr.gmo as /usr/local/share/locale/tr/LC_MESSAGES/make.mo
installing uk.gmo as /usr/local/share/locale/uk/LC_MESSAGES/make.mo
installing vi.gmo as /usr/local/share/locale/vi/LC_MESSAGES/make.mo
installing zh_CN.gmo as /usr/local/share/locale/zh_CN/LC_MESSAGES/make.mo
if test "make" = "gettext-tools"; then /bin/sh ../config/mkinstalldirs /usr/local/share/gettext/po; for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en#quot.header en#boldquot.header insert-header.sin Rules-quot Makevars.template; do /usr/bin/i
nstall -c -m 644 ./$file /usr/local/share/gettext/po/$file; done; for file in Makevars; do rm -f /usr/local/share/gettext/po/$file; done; else : ; fi
Making install in doc
test -z "/usr/local/share/info" || ../config/install-sh -c -d "/usr/local/share/info"
/usr/bin/install -c -m 644 ./make.info ./make.info-1 ./make.info-2 '/usr/local/share/info'
install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/make.info'
test -z "/usr/local/bin" || config/install-sh -c -d "/usr/local/bin"
/usr/bin/install -c make '/usr/local/bin'
test -z "/usr/local/share/man/man1" || config/install-sh -c -d "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 make.1 '/usr/local/share/man/man1'
It looks to me like your current portstree is incompatible with the make used in ancient FreeBSD 6.3. Your best bet is to upgrade to FreeBSD 8 or 9, i.e. one of the currently supported STABLE branches.
After some research over the internet I could find the solution to the problem. Even though it is not a very clear explanation to the problem it does help in solving the problem.
The error only comes in FreeBSD 6.3 once you do a portsnap update. It is suggested that you run the following command to check which ports need to be downgraded.
To find that out use
make -V ALL_OPTIONS
It will give you all the ports, usually there will be this port /usr/ports/Mk which needs to be downgraded.
This folder simply contains some bsd.*.mk files
Now to solve the problem you need to get the old ports folder and replace it with the current Mk. Folder. You can do that by copying it from some other FreeBSD 6.3 machine which has make running properly or on which portsnap update has not been run.
UPDATE: You can also download a working Mk folder from http://cinto.in/Mk.tar
Once your replace the /usr/ports/Mk folder with the old Mk folder, your make will start running properly.
Now you can go to any port folder and run make install and it will run as desired.
Replace the /usr/ports/Mk not work for me
The best way is run "sysinstall"
#sysinstall
then add ports to your freebsd again.(Do post-install configuration of FreeBSD -> Distribution -> ports)
install from FTP site
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/6.3-RELEASE/
:)
#ChooChu and #Jens 's amswer are correct,you have an old and unsupported FreeBSD release,and you may update the port tree,the newer port tree is not compatible with your current old release.
If you still want use this old stable release,the idea is that you can downgrade the port tree to its corresponding version,you can download the port tree from FreeBSD archive site(this url is valid only for the moment when this comment is posted,if not,you should google "freebsd archive") for your 6.3 release:
http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/ports/
Download two files to an non-usr directory(not under "/usr"):
install.sh
ports.tgz
then switch to root and execute following cmds:
su
sh ./install.sh
There is a solution in case when upgrading to supported FreeBSD Release is not an option:
Edit file /usr/ports/Mk/bsd.options.mk (and, if needed, other files in /usr/ports/Mk/) removing all ":u" (case sensitive, without quotes) from the file. "
It works for me.

Trouble installing mod_mono on Mac OSX Lion

There is another question regarding installing mod_mono on OSX, but I'm going to assume that was before Lion came about, which had some breaking changes for developers (like python versions).
I've followed the instructions in the INSTALL readme of mod_mono-2.10. No Avail.
Exactly what I've done is this:
tar xvfz mod_mono-2.10.tar.gz
cd mod_mono-X.Y.Z
./configure --prefix=/usr
make
make install
$ apachectl -t
httpd: Syntax error on line 54 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /private/etc/apache2/other/mod_mono.conf: Cannot load /usr/libexec/apache2/mod_mono.so into server:
dlopen(/usr/libexec/apache2/mod_mono.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_mono.so: mach-o, but wrong architecture
It appears that mod_mono wasn't really the problem. It was mono itself.
smeatonj$ file /usr/bin/mono
/usr/bin/mono: Mach-O executable i386
smeatonj$ file /usr/libexec/apache2/mod_mono.so
/usr/libexec/apache2/mod_mono.so: Mach-O 64-bit bundle x86_64
meatonj$ file /usr/sbin/httpd
/usr/sbin/httpd: Mach-O universal binary with 2 architectures
/usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/sbin/httpd (for architecture i386): Mach-O executable i386
smeatonj$ file /usr/bin/mono
/usr/bin/mono: Mach-O executable i386
The mono package itself is not compiled for 64 bit. Perhaps I should have fully read the install guide but here is the main bit of concern:
32 and 64 bit support
The Mono packages published on this web site provide a 32-bit Mono VM.
Support for 64-bit VMs as of Mono 2.10 is only available if you build Mono from source code and install your own copy of the VM. In the future we will ship both mono and mono64 binaries for our users.
The 64 bit support has a few limitations today which is why we have not entirely switched to it:
Our Windows.Forms implementation uses Carbon, and as such, it would not work with a 64-bit Mono.
MonoDevelop uses Carbon for its menu integration so it would not run on a 64-bit VM.
MonoMac bindings have not been ported to 64 bits.
Supporting 64-bit Mono across the board would also require us to ship a 64-bit Gtk+ stack and that would increase the download size for most users.
I attempted to recompile mod_mono in i386 so that it can run with the mono runtime
sudo -s
CFLAGS="-arch i386" ./configure --prefix=/usr
make
make install
smeatonj$ file /usr/libexec/apache2/mod_mono.so
/usr/libexec/apache2/mod_mono.so: Mach-O bundle i386
Same problem:
$ apachectl -t
httpd: Syntax error on line 54 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /private/etc/apache2/other/mod_mono.conf: Cannot load /usr/libexec/apache2/mod_mono.so into server:
dlopen(/usr/libexec/apache2/mod_mono.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_mono.so: mach-o, but wrong architecture
Am I going to be able to run mod_mono on apache without compiling and installing a 64 bit version of mono? I guess I could do it side-by-side, but this whole process has been very very time consuming.. I'm not sure about maintaining the official package, and a different version just for a test webserver.
Here is the exact terminal output for the latest recompilation of mod_mono:
Josh-Mac:mod_mono-2.10 smeatonj$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
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 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 build system type... i386-apple-darwin11.2.0
checking host system type... i386-apple-darwin11.2.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking for sys/wait.h that is POSIX.1 compatible... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for ANSI C header files... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for memset... yes
checking for mkdir... yes
checking for unsetenv... yes
checking for putenv... yes
checking for setenv... yes
checking for setrlimit... yes
checking for select... yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strrchr... yes
checking for dup2... yes
checking for strndup... yes
checking if debug mode is requested... no
checking What level debug messages should be printed at... debug output disabled
checking whether mod_mono should remove the DISPLAY variable from environment... no
checking if gcov compilation was requested... no
checking if gprof support was requested... no
checking for apxs2 in /usr/local/apache2/sbin... no
checking for apxs in /usr/local/apache2/sbin... no
checking for apxs2 in /usr/local/apache2/bin... no
checking for apxs in /usr/local/apache2/bin... no
checking for apxs2 in /usr/local/apache/sbin... no
checking for apxs in /usr/local/apache/sbin... no
checking for apxs2 in /usr/local/apache/bin... no
checking for apxs in /usr/local/apache/bin... no
checking for apxs2 in /usr/sbin... no
checking for apxs in /usr/sbin... /usr/sbin/apxs
checking for apr-1-config in /usr/sbin... no
checking for apr-config in /usr/sbin... no
checking for apr-1-config in /usr/local/apache2/sbin... no
checking for apr-config in /usr/local/apache2/sbin... no
checking for apr-1-config in /usr/local/apache2/bin... no
checking for apr-config in /usr/local/apache2/bin... no
checking for apr-1-config in /usr/local/apache/sbin... no
checking for apr-config in /usr/local/apache/sbin... no
checking for apr-1-config in /usr/local/apache/bin... no
checking for apr-config in /usr/local/apache/bin... no
checking for apr-1-config in /usr/sbin... no
checking for apr-config in /usr/sbin... no
checking for apr-1-config in /usr/bin... found.
checking for apu-1-config in /usr/sbin... no
checking for apu-config in /usr/sbin... no
checking for apu-1-config in /usr/local/apache2/sbin... no
checking for apu-config in /usr/local/apache2/sbin... no
checking for apu-1-config in /usr/local/apache2/bin... no
checking for apu-config in /usr/local/apache2/bin... no
checking for apu-1-config in /usr/local/apache/sbin... no
checking for apu-config in /usr/local/apache/sbin... no
checking for apu-1-config in /usr/local/apache/bin... no
checking for apu-config in /usr/local/apache/bin... no
checking for apu-1-config in /usr/sbin... no
checking for apu-config in /usr/sbin... no
checking for apu-1-config in /usr/bin... found.
checking Apache version... 2.2
checking for http_protocol.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mod_mono.conf
config.status: creating src/Makefile
config.status: creating man/mod_mono.8
config.status: creating man/Makefile
config.status: creating include/mod_mono_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing quiet commands
./config.status: line 2068: ./scripts/patch-quiet.sh: No such file or directory
config.status: executing quiet-libtool commands
---
Configuration summary for mod_mono
* Installation prefix = /usr/local
* Apache version = 2.2
* Apache modules directory = /usr/libexec/apache2
* apxs = /usr/sbin/apxs
* apr-config = /usr/bin/apr-1-config
* apu-config = /usr/bin/apu-1-config
* CFLAGS = -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1
* Verbose logging (debug) = no
* GCOV options used = no
* Profiling enabled = no
* mono prefix = /Library/Frameworks/Mono.framework/Versions/2.10.8
* Default MonoApplicationsConfigDir = /private/etc/apache2/mod-mono-applications
---
Josh-Mac:mod_mono-2.10 smeatonj$ make
Making all in src
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-mod_mono.lo -MD -MP -MF .deps/mod_mono_la-mod_mono.Tpo -c -o mod_mono_la-mod_mono.lo `test -f 'mod_mono.c' || echo './'`mod_mono.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-mod_mono.lo -MD -MP -MF .deps/mod_mono_la-mod_mono.Tpo -c mod_mono.c -fno-common -DPIC -o .libs/mod_mono_la-mod_mono.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-mod_mono.lo -MD -MP -MF .deps/mod_mono_la-mod_mono.Tpo -c mod_mono.c -o mod_mono_la-mod_mono.o >/dev/null 2>&1
mv -f .deps/mod_mono_la-mod_mono.Tpo .deps/mod_mono_la-mod_mono.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-mono-io-portability.lo -MD -MP -MF .deps/mod_mono_la-mono-io-portability.Tpo -c -o mod_mono_la-mono-io-portability.lo `test -f 'mono-io-portability.c' || echo './'`mono-io-portability.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-mono-io-portability.lo -MD -MP -MF .deps/mod_mono_la-mono-io-portability.Tpo -c mono-io-portability.c -fno-common -DPIC -o .libs/mod_mono_la-mono-io-portability.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-mono-io-portability.lo -MD -MP -MF .deps/mod_mono_la-mono-io-portability.Tpo -c mono-io-portability.c -o mod_mono_la-mono-io-portability.o >/dev/null 2>&1
mv -f .deps/mod_mono_la-mono-io-portability.Tpo .deps/mod_mono_la-mono-io-portability.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-glib_compat.lo -MD -MP -MF .deps/mod_mono_la-glib_compat.Tpo -c -o mod_mono_la-glib_compat.lo `test -f 'glib_compat.c' || echo './'`glib_compat.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-glib_compat.lo -MD -MP -MF .deps/mod_mono_la-glib_compat.Tpo -c glib_compat.c -fno-common -DPIC -o .libs/mod_mono_la-glib_compat.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apache2 -g -O2 -I/usr/include/apache2 -I/usr/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -MT mod_mono_la-glib_compat.lo -MD -MP -MF .deps/mod_mono_la-glib_compat.Tpo -c glib_compat.c -o mod_mono_la-glib_compat.o >/dev/null 2>&1
mv -f .deps/mod_mono_la-glib_compat.Tpo .deps/mod_mono_la-glib_compat.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -DDFLT_MONO_CONFIG_DIR=\"/private/etc/apache2/mod-mono-applications\" -g -O2 -I/usr/include/apache2 -I/usr/local/include -I/usr/include/apr-1 -I/usr/include/apr-1 -module -o mod_mono.la -rpath /usr/local/lib mod_mono_la-mod_mono.lo mod_mono_la-mono-io-portability.lo mod_mono_la-glib_compat.lo
libtool: link: gcc -Wl,-undefined -Wl,dynamic_lookup -o .libs/mod_mono.0.so -bundle .libs/mod_mono_la-mod_mono.o .libs/mod_mono_la-mono-io-portability.o .libs/mod_mono_la-glib_compat.o
libtool: link: dsymutil .libs/mod_mono.0.so || :
libtool: link: (cd ".libs" && rm -f "mod_mono.so" && ln -s "mod_mono.0.so" "mod_mono.so")
libtool: link: ar cru .libs/mod_mono.a mod_mono_la-mod_mono.o mod_mono_la-mono-io-portability.o mod_mono_la-glib_compat.o
libtool: link: ranlib .libs/mod_mono.a
libtool: link: ( cd ".libs" && rm -f "mod_mono.la" && ln -s "../mod_mono.la" "mod_mono.la" )
Making all in man
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all-am'.
Josh-Mac:mod_mono-2.10 smeatonj$ sudo make install
Making install in src
/bin/sh /Users/smeatonj/Development/src/mod_mono-2.10/install-sh -d "/usr/libexec/apache2"
/usr/sbin/apxs -S LIBEXECDIR="/usr/libexec/apache2" -i -n mono mod_mono.la
/usr/share/httpd/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1/build-1/libtool' mod_mono.la /usr/libexec/apache2
/usr/share/apr-1/build-1/libtool --mode=install cp mod_mono.la /usr/libexec/apache2/
libtool: install: cp .libs/mod_mono.0.so /usr/libexec/apache2/mod_mono.0.so
libtool: install: (cd /usr/libexec/apache2 && { ln -s -f mod_mono.0.so mod_mono.so || { rm -f mod_mono.so && ln -s mod_mono.0.so mod_mono.so; }; })
libtool: install: cp .libs/mod_mono.lai /usr/libexec/apache2/mod_mono.la
libtool: install: cp .libs/mod_mono.a /usr/libexec/apache2/mod_mono.a
libtool: install: chmod 644 /usr/libexec/apache2/mod_mono.a
libtool: install: ranlib /usr/libexec/apache2/mod_mono.a
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
chmod 755 /usr/libexec/apache2/mod_mono.so
Making install in man
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man8" || .././install-sh -c -d "/usr/local/share/man/man8"
/usr/bin/install -c -m 644 './mod_mono.8' '/usr/local/share/man/man8/mod_mono.8'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/private/etc/apache2" || ./install-sh -c -d "/private/etc/apache2"
/usr/bin/install -c -m 644 'mod_mono.conf' '/private/etc/apache2/mod_mono.conf'
Josh-Mac:mod_mono-2.10 smeatonj$
Josh-Mac:apache2 smeatonj$ sudo apachectl -t
httpd: Could not reliably determine the server's fully qualified domain name, using Josh-Mac.local for ServerName
Syntax OK
Josh-Mac:apache2 smeatonj$ sudo apachectl restart
/private/var/log/apache2/error_log output:
[Fri Jan 13 14:28:51 2012] [info] removed PID file /private/var/run/httpd.pid (pid=930)
[Fri Jan 13 14:28:51 2012] [notice] caught SIGTERM, shutting down
I also have mod_wsgi installed (the only other non-standard module), but I disabled that entirely, and still get the SIGTERM.
There is an error being generated in Console:
13/01/12 3:22:50.793 PM org.apache.httpd: httpd: Syntax error on line 73 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /private/etc/apache2/mod_mono.conf: Cannot load /usr/libexec/apache2/mod_mono.so into server: dlopen(/usr/libexec/apache2/mod_mono.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_mono.so: mach-o, but wrong architecture
Here is what I did to set up mono/mod_mono on OSX 10.7, Apache2 - hopefully it saves someone else a few steps.
Note that I used a separate install of apache2. Your mileage may vary, but I have found pieces of installs here and there that are aggregated here as of Jul 2012 ... By configuring mod_mono.conf as I have, I now have an apache2/mono install that works, with an apache2 install that is standard from apache.org. While I am an Apple fan boy, I wish the OSX Apache installations were in a little more standard form.
(1) Set up Apache2 on OSX or use the default implementation as per your preference. If you build the httpd engine yourself, see commentary below.
(2) Get mod_mono source, and compile as shown below.
(3) Configure Apache's httpd.conf to include mod_mono.conf.
(4) Edit the mod_mono.conf to fit your needs.
(5) Restart Apache2.
When building apache2 to be placed at /usr/local/apache2:
./configure --prefix=/usr/local/apache2 --with-included-apr --enable-mods-shared=all --enable-module=so --enable-authz-host
When building mod_mono to find apache2 at /usr/local/apache2:
./configure --prefix=/usr/local
When configuring mod_mono on OSX 10.7 assuming that mono is accessible through /usr/bin as with a macports mono install:
# mod_mono.conf
# Achtung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.
<IfModule !mod_mono.c>
LoadModule mono_module /usr/local/apache2/modules/mod_mono.so
</IfModule>
<IfModule mod_headers.c>
Header set X-Powered-By "Mono"
</IfModule>
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
Alias /mono "/Users/tommy/Sites/mono"
AddMonoApplications default "/mono:/Users/tommy/Sites/mono"
MonoServerPath **default** "/usr/bin/mod-mono-server4"
MonoExecutablePath "/usr/bin/mono"
<Location /mono>
MonoSetServerAlias **default**
SetHandler mono
DirectoryIndex index.aspx
</Location>
Note that the httpd.conf file includes the mod_mono.conf file shown above.
64-bit Mono VM is not required in order to run the 64-bit mod_mono under Apache. See my own "file" command outputs (I'm on Lion 10.7.2 with Apache 2.2.20, Mono 2.10.8 and mod_mono 2.10) :
file /usr/bin/mono
/usr/bin/mono: Mach-O executable i386
file /usr/libexec/apache2/mod_mono.so
/usr/libexec/apache2/mod_mono.so: Mach-O 64-bit bundle x86_64
file /usr/sbin/httpd
/usr/sbin/httpd: Mach-O universal binary with 2 architectures
/usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/sbin/httpd (for architecture i386): Mach-O executable i386
So, I have exactly the same output as you, and as you can see you must use a 64-bit mod_mono in order to run ASP.NET pages under 64-bit Apache with a 32-bit Mono VM.
I think you should try again from the beginning:
download the latest Mono VM (I suggest you to take version 2.10.8, not 2.10.8.1 as this one is not considered stable)
uninstall all previous versions of Mono by running in command line the script uninstallMono.sh located in the MonoFramework-MRE-2.10.8_3.macos10.xamarin.x86.pkg bundle, under the directory Contents/Resources
install normally the Mono VM
download the latest mod_mono Apache module : you must ensure that mod_mono version matches Mono VM version
extract the content of the archive where you want and compile it with the following commands (as you can see I don't provide any argument to the commands):
./configure
make
sudo make install
ensure that you have the following line at the end of your /etc/apache2/httpd.conf file : Include /private/etc/apache2/mod_mono.conf
restart Apache server with the following command: sudo apachectl restart
This should work! If it's not the case, please post the output of mod_mono compilation to see if any error occurred. And also your httpd.conf file: the problem may be related to another Apache module that conflicts with mod_mono.
I suggest to use my own version of mod_mono.conf file, because it enables the AutoHosting feature (just replace the MonoSetEnv LANG=fr_FR.UTF-8 line with your current culture, like "en-US.UTF-8" or "ja-JP.UTF-8").
Good luck! :o)

Resources