igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] failure compiling igraph in C under Windows


From: Francois Bastardie
Subject: [igraph] failure compiling igraph in C under Windows
Date: Thu, 10 Feb 2011 13:29:10 +0100

Hello,


By any chance, someone would have experienced the same like me?

I am using MinGW + MSYS (Windows) but the compilation fails. It seems
the configure script is not guessing properly my settings. Also I don't
know to what extend this error is linked with the libxml2 library. It is
written in the online doc that we need it to run the graphml format...so
I installed libxml2\bin in my $PATH but it does not seems it is enough
because I got back: 
igraph successfully configured.
  GraphML format support -- no
etc.

You may want to see the entire messages I got back when running
"./configure" and then the "make" command hereafter  
Thank you
Best regards,
Francois



address@hidden /c/igraph-0.5.4
$ ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
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.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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for bison... bison -y
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 sys/times.h usability... no
checking sys/times.h presence... no
checking for sys/times.h... no
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for as... as
checking for dlltool... dlltool
checking for objdump... objdump
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /bin/nm -B
checking the name lister (/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -p
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 c:/mingw/mingw32/bin/ld.exe option to reload object
files... -r
checking for objdump... (cached) 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 /bin/nm -B output from gcc object... ok
checking for dlfcn.h... no
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 (c:/mingw/mingw32/bin/ld.exe) supports
shared li
braries... 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++... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (c:/mingw/mingw32/bin/ld.exe) supports
shared li
braries... 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 (c:/mingw/mingw32/bin/ld.exe) supports
shared li
braries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for expm1... yes
checking for rint... yes
checking for rintf... yes
checking for finite... yes
checking for log2... yes
checking for logbl... yes
checking for snprintf... yes
checking for log1p... yes
checking for round... yes
checking for fmin... yes
checking for strcasecmp... yes
checking for isnan... yes
checking whether compiler supports -ffloat-store... yes
checking whether compiler supports -fstore... no
checking for xml2-config... none
checking for xmlSAXUserParseFile in -lxml2... no
checking for __gmpz_add in -lgmp... no
configure: creating ./config.status
config.status: creating tests/Makefile
config.status: creating tests/atlocal
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating igraph.pc
config.status: creating igraph_Info.plist
config.status: creating doc/Makefile
config.status: creating doc/book/Makefile
config.status: creating interfaces/R/configure.in
config.status: creating interfaces/R/Makefile
config.status: creating interfaces/R/src/Makevars.win
config.status: creating interfaces/R/DESCRIPTION
config.status: creating interfaces/Makefile
config.status: creating interfaces/shell/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands
igraph successfully configured.
  GraphML format support -- no
  GMP library support    -- no
  Use internal ARPACK    -- yes
  Use internal LAPACK    -- yes
  Use internal BLAS      -- yes
  Debug build            -- no
  Profiling              -- no
  Shell interface        -- no

Hereafter what I got back running the make command:
 
address@hidden /c/igraph-0.5.4
$ make
make  all-recursive
make[1]: Entering directory `/c/igraph-0.5.4'
Making all in src
make[2]: Entering directory `/c/igraph-0.5.4/src'
make  all-am
make[3]: Entering directory `/c/igraph-0.5.4/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-basic_query.lo -MD -MP -MF
.deps/libigraph_la-basic_query
.Tpo -c -o libigraph_la-basic_query.lo `test -f 'basic_query.c' || echo
'./'`bas
ic_query.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-basic_qu
ery.lo -MD -MP -MF .deps/libigraph_la-basic_query.Tpo -c basic_query.c
-DDLL_EX
PORT -DPIC -o .libs/libigraph_la-basic_query.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-basic_qu
ery.lo -MD -MP -MF .deps/libigraph_la-basic_query.Tpo -c basic_query.c
-o libigr
aph_la-basic_query.o >/dev/null 2>&1
mv -f .deps/libigraph_la-basic_query.Tpo
.deps/libigraph_la-basic_query.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-games.lo -MD -MP -MF .deps/libigraph_la-games.Tpo
-c -o l
ibigraph_la-games.lo `test -f 'games.c' || echo './'`games.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-games.lo
 -MD -MP -MF .deps/libigraph_la-games.Tpo -c games.c  -DDLL_EXPORT -DPIC
-o .lib
s/libigraph_la-games.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-games.lo
 -MD -MP -MF .deps/libigraph_la-games.Tpo -c games.c -o
libigraph_la-games.o >/d
ev/null 2>&1
mv -f .deps/libigraph_la-games.Tpo .deps/libigraph_la-games.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-cocitation.lo -MD -MP -MF
.deps/libigraph_la-cocitation.T
po -c -o libigraph_la-cocitation.lo `test -f 'cocitation.c' || echo
'./'`cocitat
ion.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-cocitati
on.lo -MD -MP -MF .deps/libigraph_la-cocitation.Tpo -c cocitation.c
-DDLL_EXPOR
T -DPIC -o .libs/libigraph_la-cocitation.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-cocitati
on.lo -MD -MP -MF .deps/libigraph_la-cocitation.Tpo -c cocitation.c -o
libigraph
_la-cocitation.o >/dev/null 2>&1
mv -f .deps/libigraph_la-cocitation.Tpo
.deps/libigraph_la-cocitation.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-iterators.lo -MD -MP -MF
.deps/libigraph_la-iterators.Tpo
 -c -o libigraph_la-iterators.lo `test -f 'iterators.c' || echo
'./'`iterators.c

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-iterator
s.lo -MD -MP -MF .deps/libigraph_la-iterators.Tpo -c iterators.c
-DDLL_EXPORT -
DPIC -o .libs/libigraph_la-iterators.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-iterator
s.lo -MD -MP -MF .deps/libigraph_la-iterators.Tpo -c iterators.c -o
libigraph_la
-iterators.o >/dev/null 2>&1
mv -f .deps/libigraph_la-iterators.Tpo .deps/libigraph_la-iterators.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-structural_properties.lo -MD -MP -MF
.deps/libigraph_la-s
tructural_properties.Tpo -c -o libigraph_la-structural_properties.lo
`test -f 's
tructural_properties.c' || echo './'`structural_properties.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-structur
al_properties.lo -MD -MP -MF
.deps/libigraph_la-structural_properties.Tpo -c str
uctural_properties.c  -DDLL_EXPORT -DPIC -o
.libs/libigraph_la-structural_proper
ties.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-structur
al_properties.lo -MD -MP -MF
.deps/libigraph_la-structural_properties.Tpo -c str
uctural_properties.c -o libigraph_la-structural_properties.o >/dev/null
2>&1
mv -f .deps/libigraph_la-structural_properties.Tpo
.deps/libigraph_la-structural
_properties.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-components.lo -MD -MP -MF
.deps/libigraph_la-components.T
po -c -o libigraph_la-components.lo `test -f 'components.c' || echo
'./'`compone
nts.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-componen
ts.lo -MD -MP -MF .deps/libigraph_la-components.Tpo -c components.c
-DDLL_EXPOR
T -DPIC -o .libs/libigraph_la-components.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-componen
ts.lo -MD -MP -MF .deps/libigraph_la-components.Tpo -c components.c -o
libigraph
_la-components.o >/dev/null 2>&1
mv -f .deps/libigraph_la-components.Tpo
.deps/libigraph_la-components.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-layout.lo -MD -MP -MF
.deps/libigraph_la-layout.Tpo -c -o
 libigraph_la-layout.lo `test -f 'layout.c' || echo './'`layout.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-layout.l
o -MD -MP -MF .deps/libigraph_la-layout.Tpo -c layout.c  -DDLL_EXPORT
-DPIC -o .
libs/libigraph_la-layout.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-layout.l
o -MD -MP -MF .deps/libigraph_la-layout.Tpo -c layout.c -o
libigraph_la-layout.o
 >/dev/null 2>&1
mv -f .deps/libigraph_la-layout.Tpo .deps/libigraph_la-layout.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-structure_generators.lo -MD -MP -MF
.deps/libigraph_la-st
ructure_generators.Tpo -c -o libigraph_la-structure_generators.lo `test
-f 'stru
cture_generators.c' || echo './'`structure_generators.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-structur
e_generators.lo -MD -MP -MF .deps/libigraph_la-structure_generators.Tpo
-c struc
ture_generators.c  -DDLL_EXPORT -DPIC -o
.libs/libigraph_la-structure_generators
.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-structur
e_generators.lo -MD -MP -MF .deps/libigraph_la-structure_generators.Tpo
-c struc
ture_generators.c -o libigraph_la-structure_generators.o >/dev/null 2>&1
mv -f .deps/libigraph_la-structure_generators.Tpo
.deps/libigraph_la-structure_g
enerators.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-conversion.lo -MD -MP -MF
.deps/libigraph_la-conversion.T
po -c -o libigraph_la-conversion.lo `test -f 'conversion.c' || echo
'./'`convers
ion.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-conversi
on.lo -MD -MP -MF .deps/libigraph_la-conversion.Tpo -c conversion.c
-DDLL_EXPOR
T -DPIC -o .libs/libigraph_la-conversion.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-conversi
on.lo -MD -MP -MF .deps/libigraph_la-conversion.Tpo -c conversion.c -o
libigraph
_la-conversion.o >/dev/null 2>&1
mv -f .deps/libigraph_la-conversion.Tpo
.deps/libigraph_la-conversion.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-measure_dynamics.lo -MD -MP -MF
.deps/libigraph_la-measur
e_dynamics.Tpo -c -o libigraph_la-measure_dynamics.lo `test -f
'measure_dynamics
.c' || echo './'`measure_dynamics.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-measure_
dynamics.lo -MD -MP -MF .deps/libigraph_la-measure_dynamics.Tpo -c
measure_dynam
ics.c  -DDLL_EXPORT -DPIC -o .libs/libigraph_la-measure_dynamics.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-measure_
dynamics.lo -MD -MP -MF .deps/libigraph_la-measure_dynamics.Tpo -c
measure_dynam
ics.c -o libigraph_la-measure_dynamics.o >/dev/null 2>&1
mv -f .deps/libigraph_la-measure_dynamics.Tpo
.deps/libigraph_la-measure_dynamic
s.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-type_indexededgelist.lo -MD -MP -MF
.deps/libigraph_la-ty
pe_indexededgelist.Tpo -c -o libigraph_la-type_indexededgelist.lo `test
-f 'type
_indexededgelist.c' || echo './'`type_indexededgelist.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-type_ind
exededgelist.lo -MD -MP -MF .deps/libigraph_la-type_indexededgelist.Tpo
-c type_
indexededgelist.c  -DDLL_EXPORT -DPIC -o
.libs/libigraph_la-type_indexededgelist
.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-type_ind
exededgelist.lo -MD -MP -MF .deps/libigraph_la-type_indexededgelist.Tpo
-c type_
indexededgelist.c -o libigraph_la-type_indexededgelist.o >/dev/null 2>&1
mv -f .deps/libigraph_la-type_indexededgelist.Tpo
.deps/libigraph_la-type_indexe
dedgelist.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-error.lo -MD -MP -MF .deps/libigraph_la-error.Tpo
-c -o l
ibigraph_la-error.lo `test -f 'error.c' || echo './'`error.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-error.lo
 -MD -MP -MF .deps/libigraph_la-error.Tpo -c error.c  -DDLL_EXPORT -DPIC
-o .lib
s/libigraph_la-error.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-error.lo
 -MD -MP -MF .deps/libigraph_la-error.Tpo -c error.c -o
libigraph_la-error.o >/d
ev/null 2>&1
mv -f .deps/libigraph_la-error.Tpo .deps/libigraph_la-error.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-interrupt.lo -MD -MP -MF
.deps/libigraph_la-interrupt.Tpo
 -c -o libigraph_la-interrupt.lo `test -f 'interrupt.c' || echo
'./'`interrupt.c

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-interrup
t.lo -MD -MP -MF .deps/libigraph_la-interrupt.Tpo -c interrupt.c
-DDLL_EXPORT -
DPIC -o .libs/libigraph_la-interrupt.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-interrup
t.lo -MD -MP -MF .deps/libigraph_la-interrupt.Tpo -c interrupt.c -o
libigraph_la
-interrupt.o >/dev/null 2>&1
mv -f .deps/libigraph_la-interrupt.Tpo .deps/libigraph_la-interrupt.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-other.lo -MD -MP -MF .deps/libigraph_la-other.Tpo
-c -o l
ibigraph_la-other.lo `test -f 'other.c' || echo './'`other.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-other.lo
 -MD -MP -MF .deps/libigraph_la-other.Tpo -c other.c  -DDLL_EXPORT -DPIC
-o .lib
s/libigraph_la-other.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-other.lo
 -MD -MP -MF .deps/libigraph_la-other.Tpo -c other.c -o
libigraph_la-other.o >/d
ev/null 2>&1
mv -f .deps/libigraph_la-other.Tpo .deps/libigraph_la-other.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..     -
g -O2 -MT libigraph_la-foreign.lo -MD -MP -MF
.deps/libigraph_la-foreign.Tpo -c
-o libigraph_la-foreign.lo `test -f 'foreign.c' || echo './'`foreign.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libigraph_la-foreign.
lo -MD -MP -MF .deps/libigraph_la-foreign.Tpo -c foreign.c  -DDLL_EXPORT
-DPIC -
o .libs/libigraph_la-foreign.o
foreign.c: In function 'igraph_write_graph_gml':
foreign.c:2366:3: error: 'PACKAGE_VERSION' undeclared (first use in this
functio
n)
foreign.c:2366:3: note: each undeclared identifier is reported only once
for eac
h function it appears in
foreign.c: In function 'igraph_write_graph_dot':
foreign.c:2602:3: error: 'PACKAGE_VERSION' undeclared (first use in this
functio
n)
make[3]: *** [libigraph_la-foreign.lo] Error 1
make[3]: Leaving directory `/c/igraph-0.5.4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/c/igraph-0.5.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/igraph-0.5.4'
make: *** [all] Error 2

>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]