[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: complie error of cquit.c (libcruft) (MinGW build for 3.5.50+)
From: |
Tatsuro MATSUOKA |
Subject: |
Re: complie error of cquit.c (libcruft) (MinGW build for 3.5.50+) |
Date: |
Wed, 10 Mar 2010 09:53:24 +0900 (JST) |
Hello
Sorry for the separated post.
> I have also looked at libcruft/Makefile.am in the build directory trees
> I found the following
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
> I have also looked at libcruft/Makefile.am in the build directory trees
should be
I have also looked at libcruft/Makefile in the build directory trees
I also found in libcruft/Makefile in the build directory trees
AM_CPPFLAGS = -I/WinDevTools/include -I/GnuWin32/include -I../libgnu
-I$(top_srcdir)/libgnu
The description of '-I../libgnu -I$(top_srcdir)/libgnu' is reflected.
HMMMM
I have add
AM_CPPFLAGS = -I/WinDevTools/include -I/GnuWin32/include -I../libgnu
-I$(top_srcdir)/libgnu
before
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
:
:
Compiling went well.
The 'make' fails at linking libcruft
/bin/sh ../libtool --tag=CXX --mode=link g++ -shared-libgcc -D_GLIBCXX_DLL
-O3 -fomit-frame-pointer
-DHAVE_CONFIG_H -mieee-fp -IC:/Programs/GnuWin32/include
-I/WinDevTools/bin/../include/freetype2
-I/WinDevTools/bin/../include -Ic:/Programs/WinDevTools/include -Wall -W
-Wshadow -Wold-style-cast
-Wformat -D_GLIBCXX_DLL -O3 -fomit-frame-pointer -D_GLIBCXX_DLL -O3
-fomit-frame-pointer -release
3.3.50+ -no-undefined -bindir /c/Programs/OctaveBuild/bin -L/WinDevTools/lib
-L/GnuWin32/lib
-Wl,--allow-multiple-definition -lsupc++ -lstdc++_s -o libcruft.la -rpath
/c/Programs/OctaveBuild/lib/octave-3.3.50+ amos/libcruft_la-cacai.lo
amos/libcruft_la-cacon.lo
amos/libcruft_la-cbesh.lo amos/libcruft_la-cbesi.lo amos/libcruft_la-cbesj.lo
amos/libcruft_la-cbesk.lo amos/libcruft_la-cbesy.lo
:
:
villad/libcruft_la-radau.lo villad/libcruft_la-vilerr.lo libranlib.la -llapack
-lblas
-Lc:/Programs/WinDevTools/lib -Lc:/Programs/GnuWin32/lib
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0
-Lc:/programs/mingw/bin/../lib/gcc
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/lib
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../.. -lsupc++ -lstdc++_s
-lm -lpthread
-lgfortranbegin -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -luser32
-lkernel32 -ladvapi32
-lshell32 -liberty -lm -lpthread -lgdi32 -lws2_32 -luser32 -lkernel32 -lgdi32
-lws2_32 -luser32
-lkernel32
libtool: link: rm -fr .libs/libcruft.dll.a .libs/libcruft.la.lnkscript
libtool: link: g++ -shared-libgcc -shared -nostdlib
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../dllcrt2.o
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/crtbegin.o
.libs/libcruft.la.lnkscript
-Wl,--whole-archive ./.libs/libranlib.a -Wl,--no-whole-archive
-L/WinDevTools/lib -L/GnuWin32/lib
-luser32 -lkernel32 -llapack -lblas -Lc:/Programs/WinDevTools/lib
-Lc:/Programs/GnuWin32/lib
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0
-Lc:/programs/mingw/bin/../lib/gcc
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/lib
-Lc:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../..
/mingw/lib/gcc/mingw32/4.4.0/libsupc++.a
-lstdc++_s /mingw/lib/gcc/mingw32/4.4.0/libgfortranbegin.a
-L/mingw/src/gccbf/mingw32/winsup/mingw
-L/mingw/src/gccbf/mingw32/winsup/w32api/lib
/mingw/lib/gcc/mingw32/4.4.0/libgfortran.dll.a -lmingw32
-lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32
/mingw/lib/libiberty.a
-lpthread -luser32 -lkernel32 -lgdi32 -lws2_32 -luser32 -lkernel32
/mingw/lib/gcc/mingw32/4.4.0/libstdc++_s.a -lmingw32 -lgcc_s -lgcc -lmoldname
-lmingwex -lmsvcrt
-luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc_s -lgcc -lmoldname
-lmingwex -lmsvcrt
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/crtend.o -shared-libgcc
-mieee-fp
-Wl,--allow-multiple-definition -o .libs/libcruft-3-3-50+.dll
-Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libcruft.dll.a
Creating library file:
.libs/libcruft.dll.amisc/.libs/libcruft_la-cquit.o:cquit.c:(.text+0x1b):
undefined reference to `sigprocmask'
misc/.libs/libcruft_la-cquit.o:cquit.c:(.text+0x3f): undefined reference to
`sigprocmask
Obviously -L../libgbu/.libs -lgnu are missing,
I have copied libgnu.a to libcruft and execute link manually
Creating library file:
.libs/libcruft.dll.a./libgnu.a(sigprocmask.o):sigprocmask.c:(.text+0x94):
undefined reference to `signal'
./libgnu.a(sigprocmask.o):sigprocmask.c:(.text+0x239): undefined reference to
`signal'
./libgnu.a(sigprocmask.o):sigprocmask.c:(.text+0x2ac): undefined reference to
`signal'
./libgnu.a(sigprocmask.o):sigprocmask.c:(.text+0x108): undefined reference to
`signal
Hmmmm
Please help!
Regards
Tatsuro
--- Tatsuro MATSUOKA wrote:
> Hello
>
> I have looked in to libcruft/Makefile.am in the source directory trees.
>
> I found the following
> AM_CPPFLAGS = @CPPFLAGS@ -I../libgnu -I$(top_srcdir)/libgnu
>
> I have also looked at libcruft/Makefile.am in the build directory trees
> I found the following
> COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
> $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
>
> However in compiling, '-I../libgnu -I$(top_srcdir)/libgnu' options has not
> been added.
>
> Hmmm? It's mysterious.
>
> Are there someone who met this behavior?
>
> Regards
>
> Tatsuro
> --- Tatsuro MATSUOKA <address@hidden> wrote:
>
> > Hello
> >
> > I add manually -../libgnu
> >
> > $ cd libcrft
> > $ /bin/sh ../libtool --tag=CC --mode=compile gcc -shared-libgcc
> > -DHAVE_CONFI
> > G_H -I. -I../../../hg/octave-work/libcruft -I.. -I../libgnu
> > -I/WinDevTools/inc
> > lude -I/GnuWin32/include -O3 -fomit-frame-pointer -DHAVE_CONFIG_H
> > -mieee-fp -
> > Wall -W -Wshadow -Wformat -O3 -fomit-frame-pointer -O3
> > -fomit-frame-pointer
> > -MT misc/libcruft_la-cquit.lo -MD -MP -MF misc/.deps/libcruft_la-cquit.Tpo
> > -c -
> > o misc/libcruft_la-cquit.lo `test -f 'misc/cquit.c' || echo
> > '../../../hg/octave
> > -work/libcruft/'`misc/cquit.c
> > libtool: compile: gcc -shared-libgcc -DHAVE_CONFIG_H -I.
> > -I../../../hg/octave-work/libcruft
> > -I..
> > -I../libgnu -I/WinDevTools/include -I/GnuWin32/include -O3
> > -fomit-frame-pointer
> -DHAVE_CONFIG_H
> > -mieee-fp -Wall -W -Wshadow -Wformat -O3 -fomit-frame-pointer -O3
> > -fomit-frame-pointer -MT
> > misc/libcruft_la-cquit.lo -MD -MP -MF misc/.deps/libcruft_la-cquit.Tpo -c
> > ../../../hg/octave-work/libcruft/misc/cquit.c -DDLL_EXPORT -DPIC -o
> > misc/.libs/libcruft_la-cquit.o
> >
> > Compile of cquit.c was successful.
> >
> > Regards
> >
> > Tatsuro
> >
> > --- Tatsuro MATSUOKA wrote:
> >
> > > Hello
> > >
> > > Sorry I have found in signal.h
> > > line 355-361
> > > # if !0
> > > # define SIG_BLOCK 0 /* blocked_set = blocked_set | *set; */
> > > # define SIG_SETMASK 1 /* blocked_set = *set; */
> > > # define SIG_UNBLOCK 2 /* blocked_set = blocked_set & ~*set; */
> > > _GL_FUNCDECL_SYS (sigprocmask, int,
> > > (int operation, const sigset_t *set, sigset_t
> > > *old_set));
> > > # endif
> > >
> > > gcc -shared-libgcc -DHAVE_CONFIG_H -I. -I../../../hg/octave-work/libcruft
> > > -I..
> > > -I/WinDevTools/include -I/GnuWin32/include -O3 -fomit-frame-pointer
> > > -DHAVE_CONFIG_H
> -mieee-fp
> > > -Wall -W
> > > -Wshadow -Wformat -O3 -fomit-frame-pointer -O3 -fomit-frame-pointer -MT
> > > misc/libcruft_la-cquit.lo -MD
> > > -MP -MF misc/.deps/libcruft_la-cquit.Tpo -c
> > > ../../../hg/octave-work/libcruft/misc/cquit.c
> > >
> > > Hmmmm, it seems that -I../libgnu missing in the complier flag.
> > >
> > > Regards
> > >
> > > Tatsuro
> >
> >
> > --------------------------------------
> > Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
> > http://pr.mail.yahoo.co.jp/ie8/
> >
>
>
> --------------------------------------
> Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
> http://pr.mail.yahoo.co.jp/ie8/
>
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/