aspell-devel
[Top][All Lists]
Advanced

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

Re: [aspell-devel] patch to fix for g++ -O3


From: David Fang
Subject: Re: [aspell-devel] patch to fix for g++ -O3
Date: Sat, 6 Jan 2007 00:00:48 -0500 (EST)

> it is what I saw on the output, so it appeared to be the problem.
> If it is supposed to be that there is something else causing problems.
>
> I could succeed in compiling "inside" the directory like this.
> tar -xzvf aspell-0.60.5.tar.gz
> cd aspell-0.60-5
> ./configure
> make
>
> but I can't compile "outside" the aspell directory like David suggested.
> ...this is slightly different (learned from sqlite).
> tar -xzvf aspell-0.60.5.tar.gz
> mkdir build
> cd build
> ../configure --srcdir=../aspell-0.60.5/
> make
>  the above causes the problem line again...
> ----------------

Hi,
        More comments:
Your --srcdir argument looks incorrect; it is inconsistent with your
../configure invocation: it should be "--srcdir=..", but you should really
omit it altogether, as it is automatically inferred (correctly).

> g++ -DHAVE_CONFIG_H -I. -I./gen -I../aspell-0.60.5 -I../aspell-0.60.5/gen 
> -I../aspell-0.60.5/common -I../aspell-0.60.5/interfaces/cc/ 
> -I../aspell-0.60.5/modules/speller/default/ 
> -DLOCALEDIR=/usr/local/share/locale -g -O2 -fno-exceptions -MT
> common/string_map.lo -MD -MP -MF
> common/.deps/string_map.Tpo -c ../aspell-0.60.5/common/string_map.cpp  -fPIC 
> -DPIC -o
> common/.libs/string_map.o
> depbase=`echo common/string_list.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
>         /bin/sh ./libtool --tag=CXX   --mode=compile
> g++ -DHAVE_CONFIG_H -I. -I./gen -I../aspell-0.60.5  -I../aspell-0.60.5/gen 
> -I../aspell-0.60.5/common -I../aspell-0.60.5/interfaces/cc/ 
> -I../aspell-0.60.5/modules/speller/default/ 
> -DLOCALEDIR="/usr/local/share/locale"   -g -O2 -fno-exceptions -MT
> common/string_list.lo -MD -MP -MF $depbase.Tpo -c -o
> common/string_list.lo ../aspell-0.60.5/common/string_list.cpp &&\
>         mv -f $depbase.Tpo $depbase.Plo
>
> g++ -DHAVE_CONFIG_H -I. -I./gen -I../aspell-0.60.5 -I../aspell-0.60.5/gen 
> -I../aspell-0.60.5/common -I../aspell-0.60.5/interfaces/cc/ 
> -I../aspell-0.60.5/modules/speller/default/ 
> -DLOCALEDIR=/usr/local/share/locale -g -O2 -fno-exceptions -MT
> common/string_list.lo -MD -MP -MF
> common/.deps/string_list.Tpo -c ../aspell-0.60.5/common/string_list.cpp  
> -fPIC -DPIC -o
> common/.libs/string_list.o
> cd gen; perl
> mk-dirs_h.pl /usr/local /usr/local/lib/aspell-0.60 /usr/local/lib/aspell-0.60 
>  /usr/local/etc
> >  dirs.h
> Can't open perl script "mk-dirs_h.pl": No such file or directory
> make[1]: *** [gen/dirs.h] Error 2
> make[1]: Leaving directory `/home/digital/temp/build'
> make: *** [all-recursive] Error 1
> ----------------

Again, see my previous email.  You have not successfully regenerated
Makefile.in yet (run 'autoreconf' after patching if you have automake
installed).  Assuming you fix the configure-invocation as described
earlier, the make commands for "gen/dirs.h" should look like:

-------->8 snip 8<--------
fang% make gen/dirs.h
cd gen; perl ../../gen/mk-dirs_h.pl /usr/local /usr/local/lib/aspell-0.60
/usr/local/lib/aspell-0.60  /usr/local/etc >  dirs.h
-------->8 snip 8<--------

because my revisions to Makefile.am result in the following change in
Makefile.in (near line 1880) [1]:

gen/dirs.h: $(srcdir)/gen/mk-dirs_h.pl
        cd gen; perl ../$(srcdir)/gen/mk-dirs_h.pl ${prefix} ${pkgdatadir}
${pkglibdir}  ${sysconfdir} >  dirs.h


Maintainers: Does my patch work for you?  Should I re-submit a patch
including Makefile.in diffs?





[1] In hindsight, that could probably just be re-written:

gen/dirs.h: $(srcdir)/gen/mk-dirs_h.pl
        perl $(srcdir)/gen/mk-dirs_h.pl ${prefix} ${pkgdatadir}
${pkglibdir}  ${sysconfdir} > $@


David


David Fang
Computer Systems Laboratory
Electrical & Computer Engineering
Cornell University
http://www.csl.cornell.edu/~fang/
        -- (2400 baud? Netscape 3.0?? lynx??? No problem!)





reply via email to

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