bug-commoncpp
[Top][All Lists]
Advanced

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

Re: how to compile commoncpp2-1.0.13 for win32?


From: taraben . a
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
Date: Sun, 21 Dec 2003 20:58:03 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4

Wolgang,

sorry, forgot to tell you that I made an other change
undefine the HAVE_OLD_IOSTREAM in win32/c++/config.h

//#define       HAVE_OLD_IOSTREAM

I swear that was the last change until success ;-) (hope you have libxml in place?)

Adib.


Wolfgang wrote:

Hello Adib,

i added #include <stdio.h> to win32/config.h and got a bit further. (see attached log). however there are still some probs left.

again, any hints and ideas are welcome ;-)

thx
Wolfgang


=======snip crosscompile on debian with modified config.h =========

address@hidden:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/thread.o ../src/thread.cpp i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/mutex.o ../src/mutex.cpp i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/semaphore.o ../src/semaphore.cpp i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/threadkey.o ../src/threadkey.cpp i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/friends.o ../src/friends.cpp i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/event.o ../src/event.cpp i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2 -mthreads -o ../win32/../win32/slog.o ../src/slog.cpp
../src/slog.cpp: In constructor `ost::Slog::Slog()':
../src/slog.cpp:70: error: no matching function for call to `
   std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const
   <anonymous>**)'
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/iosfwd:64: error: candidates
   are: std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const
   std::basic_ostream<char, std::char_traits<char> >&)
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ostream:106: error:
           std::basic_ostream<_CharT,
_Traits>::basic_ostream(std::basic_streambuf<_CharT, _Traits>*) [with _CharT
   = char, _Traits = std::char_traits<char>]
make: *** [../win32/slog.o] Fehler 1
address@hidden:~/common-c++/common

=======snap crosscompile on debian with modified config.h =========





Am Sonntag, 21. Dezember 2003 18:50 schrieb address@hidden:

Hi Wolfgang,

ah yes ;-) I got the same trouble so I added in \win32\c++\config.h
#include <stdio.h>
directly after the
#ifndef CCXX_CONFIG_H_
#define CCXX_CONFIG_H_
statements.

HTH,

Adib.

Wolfgang wrote:

Hello,

i still have problems to build commonc++ for the win32 platform.

pls let me appologize in advance, if i did not follow the etiquette of
this mailinglist by attaching so much compiler output. the reason is
simply that i hope that someone can fingerpoint to what i am doing wrong.

for my last attempt to crosscompile  i used the makefile that Adib
provided in the recent mail (Thank your for that!) and changed only the
reference to minggw.
here the output of my attempt to compile for win32 on my linux box
(debiin unstable):

=======snip====
/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
i586-mingw32msvc-c++ -c -I. -I../include -I/usr/i586-mingw32msvc/include
-DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
-mthreads -o ../win32/../win32/thread.o ../src/thread.cpp
In file included from
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
i586-mingw32msvc/bits/c++io.h:35,
                from
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ bits/fpos.h:44,
                from
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/
bits/char_traits.h:46,
                from
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/ string:47,
                from ../include/cc++/strchar.h:49,
                from ../include/cc++/exception.h:54,
                from ../include/cc++/thread.h:58,
                from ../src/thread.cpp:43:
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:167: error: `
  snprintf' not declared
/usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/cstdio:177: error: `
  snprintf' not declared
make: *** [../win32/thread.o] Fehler 1

=========snap===========
It seems this is because the redefiinition of snprintf for a mingw32
compile ,that i saw in one of the header files, did not apply.
(and therefore some other minggw specific defines will not have applied
as well).  but why?

so i tried again to compile on a native windows system using the
following versions of mingw and msys: (fresh install)
mingw: 3.0.0.rc4 (g++ (GCC) 3.2.3 (mingw special 20030504-1) )
msys: 1.0.10.rc3


i extracted the commonc++ archive in its own directory below the msys
homedir und ran ./configure
=======snip configure on win32 using mingw/msys===============

address@hidden ~/commoncpp2-1.0.13
$ ./configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
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 egrep... grep -E
checking for ANSI C header files... no
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 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 how to run the C preprocessor... gcc -E
checking for strerror in -lcposix... no
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for MSC environment... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
ld... yes
checking for D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe option to reload
object files... -r
checking for BSD-compatible nm... /mingw/bin/nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 8192
checking command to parse /mingw/bin/nm output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -DDLL_EXPORT
checking if gcc PIC flag -DDLL_EXPORT works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe
checking if the linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe) is GNU
ld... yes
checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT
checking if g++ PIC flag -DDLL_EXPORT works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -DDLL_EXPORT
checking if g77 PIC flag -DDLL_EXPORT works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (D:/APPS/DEVEL/MinGW/mingw32/bin/ld.exe)
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking for ranlib... (cached) ranlib
checking for genorated automake files... found
checking whether to enable maintainer-specific portions of Makefiles...
no checking for Win32 gnu environment... yes
checking whether system meets Posix.1... no
checking for unistd.h... (cached) yes
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking for sys/types.h... (cached) yes
checking for sigaction... no
checking for setitimer... no
checking for sigwait... no
checking bsd/signal.h usability... no
checking bsd/signal.h presence... no
checking for bsd/signal.h... no
checking return type of signal handlers... void
checking whether sigwait has 2 arguments... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for snprintf... yes
checking for memmove... yes
checking for strings.h... (cached) yes
checking for getopt... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long in -lgnugetopt... no
checking for getopt_long... yes
checking for dlfcn.h... (cached) no
checking for shl_load in -ldld... no
checking for dlopen in -ldl... no
checking for dlopen in -lc... no
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
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 features.h usability... no
checking features.h presence... no
checking for features.h... no
checking pthread.h usability... no
checking pthread.h presence... no
checking for pthread.h... no
checking sys/atomic.h usability... no
checking sys/atomic.h presence... no
checking for sys/atomic.h... no
checking thread.h usability... no
checking thread.h presence... no
checking for thread.h... no
checking for setenv... no
checking for localtime_r in -lc_r... no
checking for strtok_r in -lc... no
checking for localtime_r in -lc... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking winsock.h usability... yes
checking winsock.h presence... yes
checking for winsock.h... yes
checking for socket in -lsocket... no
checking sys/libcsys.h usability... no
checking sys/libcsys.h presence... no
checking for sys/libcsys.h... no
checking for inet_aton in -lc... no
checking for socklen_t defined... no
checking poll.h usability... no
checking poll.h presence... no
checking for poll.h... no
checking sys/poll.h usability... no
checking sys/poll.h presence... no
checking for sys/poll.h... no
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking for poll... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking for xml2-config... no
checking for xml-config... no
checking for valid libxml2... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/lockf.h usability... no
checking sys/lockf.h presence... no
checking for sys/lockf.h... no
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking posix_evlog.h usability... no
checking posix_evlog.h presence... no
checking for posix_evlog.h... no
checking ss.h usability... no
checking ss.h presence... no
checking for ss.h... no
checking how to run the C preprocessor... gcc -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ has built-in bool type... yes
checking whether g++ supports -fhandle-exceptions... no
checking whether g++ supports exception handling... yes
checking exception usability... yes
checking exception presence... yes
checking for exception... yes
checking whether g++ supports mutable... yes
checking whether g++ supports namespace... yes
checking wheather old style iostreams... no
checking whether g++ has new(size_t,void*)... yes
checking sstream usability... yes
checking sstream presence... yes
checking for sstream... yes
checking for debugging... no
checking for profiling... no
configure: creating ./config.status
config.status: creating src/ccgnu2-config
config.status: creating src/Makefile
config.status: creating win32/Makefile
config.status: creating m4/Makefile
config.status: creating config/Makefile
config.status: creating doc/Makefile
config.status: creating demo/Makefile
config.status: creating include/Makefile
config.status: creating include/cc++/Makefile
config.status: creating Makefile
config.status: creating template/Makefile
config.status: creating commoncpp2.spec
config.status: creating tests/Makefile
config.status: creating commoncpp2.proto
config.status: creating freebsd/Makefile
config.status: creating freebsd/pkg-plist
config.status: creating pkginfo
config.status: creating win32/CCXX2.rc
config.status: creating include/config.h
config.status: executing depfiles commands

address@hidden ~/commoncpp2-1.0.13


=======snap configure on win32 using mingw/msys===============
i guess that is ok!?



then i tried make:
===========snip make in msys/mingw ================

address@hidden ~/commoncpp2-1.0.13
$ make
Making all in include
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
make  all-recursive
make[2]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/include'
Making all in cc++
make[3]: Entering directory
`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Nothing to be
done for `all'.
make[3]: Leaving directory
`/home/Wolfgang/commoncpp2-1.0.13/include/cc++' make[3]: Entering
directory `/home/Wolfgang/commoncpp2-1.0.13/include' make[3]: Nothing to
be done for `all-am'.
make[3]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
make[2]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/include'
Making all in win32
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/win32'
Making all in template
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/template'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/template'
Making all in doc
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13/doc'
make[1]: Entering directory `/home/Wolfgang/commoncpp2-1.0.13'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/Wolfgang/commoncpp2-1.0.13'

address@hidden ~/commoncpp2-1.0.13

===========snap make in msys/mingw ================

well i was surpised that make returned with "nothing to do ...." so i
cd'ed int src/ and tried make within the src/ dir since no object files
had been created before...


===========snip make in src/ dir using msys/mingw ================

address@hidden ~/commoncpp2-1.0.13/src
$ make
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT thread.lo -MD -MP -MF ".deps/thread.Tpo" \
 -c -o thread.lo `test -f 'thread.cpp' || echo './'`thread.cpp; \
then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; \
else rm -f ".deps/thread.Tpo"; exit 1; \
fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
.deps/thread.Tpo -c thread.cpp  -DDLL_EXPORT -DPIC -o .libs/thread.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF
.deps/thread.Tpo -c thread.cpp -o thread.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT mutex.lo -MD -MP -MF ".deps/mutex.Tpo" \
 -c -o mutex.lo `test -f 'mutex.cpp' || echo './'`mutex.cpp; \
then mv -f ".deps/mutex.Tpo" ".deps/mutex.Plo"; \
else rm -f ".deps/mutex.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo
-c mutex.cpp  -DDLL_EXPORT -DPIC -o .libs/mutex.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT mutex.lo -MD -MP -MF .deps/mutex.Tpo
-c mutex.cpp -o mutex.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF ".deps/semaphore.Tpo" \
 -c -o semaphore.lo `test -f 'semaphore.cpp' || echo './'`semaphore.cpp;
\ then mv -f ".deps/semaphore.Tpo" ".deps/semaphore.Plo"; \
else rm -f ".deps/semaphore.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
.deps/semaphore.Tpo -c semaphore.cpp  -DDLL_EXPORT -DPIC -o
.libs/semaphore.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT semaphore.lo -MD -MP -MF
.deps/semaphore.Tpo -c semaphore.cpp -o semaphore.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF ".deps/threadkey.Tpo" \
 -c -o threadkey.lo `test -f 'threadkey.cpp' || echo './'`threadkey.cpp;
\ then mv -f ".deps/threadkey.Tpo" ".deps/threadkey.Plo"; \
else rm -f ".deps/threadkey.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
.deps/threadkey.Tpo -c threadkey.cpp  -DDLL_EXPORT -DPIC -o
.libs/threadkey.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT threadkey.lo -MD -MP -MF
.deps/threadkey.Tpo -c threadkey.cpp -o threadkey.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT friends.lo -MD -MP -MF ".deps/friends.Tpo" \
 -c -o friends.lo `test -f 'friends.cpp' || echo './'`friends.cpp; \
then mv -f ".deps/friends.Tpo" ".deps/friends.Plo"; \
else rm -f ".deps/friends.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
.deps/friends.Tpo -c friends.cpp  -DDLL_EXPORT -DPIC -o .libs/friends.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT friends.lo -MD -MP -MF
.deps/friends.Tpo -c friends.cpp -o friends.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT event.lo -MD -MP -MF ".deps/event.Tpo" \
 -c -o event.lo `test -f 'event.cpp' || echo './'`event.cpp; \
then mv -f ".deps/event.Tpo" ".deps/event.Plo"; \
else rm -f ".deps/event.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF .deps/event.Tpo
-c event.cpp  -DDLL_EXPORT -DPIC -o .libs/event.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT event.lo -MD -MP -MF .deps/event.Tpo
-c event.cpp -o event.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT slog.lo -MD -MP -MF ".deps/slog.Tpo" \
 -c -o slog.lo `test -f 'slog.cpp' || echo './'`slog.cpp; \
then mv -f ".deps/slog.Tpo" ".deps/slog.Plo"; \
else rm -f ".deps/slog.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
-c slog.cpp -DDLL_EXPORT -DPIC -o .libs/slog.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT slog.lo -MD -MP -MF .deps/slog.Tpo
-c slog.cpp -o slog.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT dir.lo -MD -MP -MF ".deps/dir.Tpo" \
 -c -o dir.lo `test -f 'dir.cpp' || echo './'`dir.cpp; \
then mv -f ".deps/dir.Tpo" ".deps/dir.Plo"; \
else rm -f ".deps/dir.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
dir.cpp -DDLL_EXPORT -DPIC -o .libs/dir.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT dir.lo -MD -MP -MF .deps/dir.Tpo -c
dir.cpp -o dir.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT file.lo -MD -MP -MF ".deps/file.Tpo" \
 -c -o file.lo `test -f 'file.cpp' || echo './'`file.cpp; \
then mv -f ".deps/file.Tpo" ".deps/file.Plo"; \
else rm -f ".deps/file.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
-c file.cpp -DDLL_EXPORT -DPIC -o .libs/file.o
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT file.lo -MD -MP -MF .deps/file.Tpo
-c file.cpp -o file.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include -I../src -DCCXX_EXPORT_LIBRARY  -I../win32 -g -O2
-D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF ".deps/inaddr.Tpo" \
 -c -o inaddr.lo `test -f 'inaddr.cpp' || echo './'`inaddr.cpp; \
then mv -f ".deps/inaddr.Tpo" ".deps/inaddr.Plo"; \
else rm -f ".deps/inaddr.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
-I../ win32 -g -O2 -D_GNU_SOURCE -MT inaddr.lo -MD -MP -MF
.deps/inaddr.Tpo -c inaddr.cpp  -DDLL_EXPORT -DPIC -o .libs/inaddr.o
In file included from inaddr.cpp:43:
../include/cc++/socket.h:762: parse error before `*' token
../include/cc++/socket.h:775: ISO C++ forbids declaration of `ssize_t'
with no type
../include/cc++/socket.h:775: `ssize_t' declared as a `virtual' field
../include/cc++/socket.h:775: parse error before `(' token
../include/cc++/socket.h:785: ISO C++ forbids declaration of `ssize_t'
with no type
../include/cc++/socket.h:785: `ssize_t' declared as a `virtual' field
../include/cc++/socket.h:785: declaration of `int ost::Socket::ssize_t'
../include/cc++/socket.h:775: conflicts with previous declaration `int
  ost::Socket::ssize_t'
../include/cc++/socket.h:785: parse error before `(' token
../include/cc++/socket.h:785: duplicate member `ost::Socket::ssize_t'
make: *** [inaddr.lo] Error 1

===========snap make in src/ dir using msys/mingw ================
that looked first promising, but the  i got some errors in socket.h.


thx in advance to all those having read this!!!

any comments on why i fail to to build the commonc++ libs/dll's using a
crosscompile on my linux box or a compile within windows using mingw/msys
are welcome.

Wolfgang

Am Samstag, 20. Dezember 2003 23:41 schrieb address@hidden:

Hi Wolfgang,

I also have problems to configure commoncpp on mingw/msys.
I have latest mingw/msys.
Try the makefile in the distro.
make -f Makefile.gcc
You need to modify some path settings and you have to shift some files

from one packet to the other because of dependency. Attached the

makefile that is working for me. Tell me if this is not working for you.

Best wishes,

Adib.

_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-commoncpp




_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

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