[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: safer way to use gnulib
From: |
John W. Eaton |
Subject: |
Re: safer way to use gnulib |
Date: |
Tue, 16 Mar 2010 08:24:14 -0400 |
On 16-Mar-2010, Ben Abbott wrote:
| I'm not sure this is related, but with my tip as ...
|
| $ hg tip
| changeset: 10412:d2ac9433cd09
| tag: tip
| user: John W. Eaton <address@hidden>
| date: Mon Mar 15 16:56:14 2010 -0400
| summary: append AM_CPPFLAGS to libcruft_la_CPPFLAGS
|
| ... compiling octave fails with the error below.
|
| /bin/sh ../libtool --tag=CXX --mode=compile g++-4.2 -DHAVE_CONFIG_H -I.
-I.. -I/sw/lib/flex/include -I/sw/include -O0 -g -m32
-I/sw/include/freetype2 -I/sw/include/qhull -I/usr/include -I../libgnu
-I../libgnu -I../libcruft/misc -I/sw/lib/flex/include -I/sw/include -O0 -g -m32
-I/sw/include/freetype2 -I/sw/include/qhull -I/usr/include -I/sw/include -O0 -g
-m32 -D_THREAD_SAFE -D_REENTRANT -DHAVE_CONFIG_H -mieee-fp -I/sw/include
-I/sw/include/freetype2 -I/sw/include -I/usr/X11/include -Wall -W -Wshadow
-Wold-style-cast -Wformat -I/sw/include -O0 -g -m32 -D_THREAD_SAFE -D_REENTRANT
-D_THREAD_SAFE -pthread -I/sw/include -O0 -g -m32 -D_THREAD_SAFE -D_REENTRANT
-MT liboctave_la-ODES.lo -MD -MP -MF .deps/liboctave_la-ODES.Tpo -c -o
liboctave_la-ODES.lo `test -f 'ODES.cc' || echo './'`ODES.cc
| libtool: compile: g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I/sw/lib/flex/include
-I/sw/include -O0 -g -m32 -I/sw/include/freetype2 -I/sw/include/qhull
-I/usr/include -I../libgnu -I../libgnu -I../libcruft/misc
-I/sw/lib/flex/include -I/sw/include -O0 -g -m32 -I/sw/include/freetype2
-I/sw/include/qhull -I/usr/include -I/sw/include -O0 -g -m32 -D_THREAD_SAFE
-D_REENTRANT -DHAVE_CONFIG_H -mieee-fp -I/sw/include -I/sw/include/freetype2
-I/sw/include -I/usr/X11/include -Wall -W -Wshadow -Wold-style-cast -Wformat
-I/sw/include -O0 -g -m32 -D_THREAD_SAFE -D_REENTRANT -D_THREAD_SAFE -pthread
-I/sw/include -O0 -g -m32 -D_THREAD_SAFE -D_REENTRANT -MT liboctave_la-ODES.lo
-MD -MP -MF .deps/liboctave_la-ODES.Tpo -c ODES.cc -fno-common -DPIC -o
.libs/liboctave_la-ODES.o
| In file included from /usr/include/sys/time.h:197,
| from ../libgnu/sys/time.h:40,
| from ../libgnu/sys/select.h:51,
| from /usr/include/unistd.h:519,
| from ../libgnu/unistd.h:29,
| from
/usr/include/c++/4.2.1/i686-apple-darwin10/bits/os_defines.h:61,
| from
/usr/include/c++/4.2.1/i686-apple-darwin10/bits/c++config.h:41,
| from /usr/include/c++/4.2.1/cstddef:50,
| from Array.h:30,
| from MArray.h:28,
| from dMatrix.h:27,
| from ODESFunc.h:26,
| from ODES.h:26,
| from ODES.cc:27:
| ../libgnu/stdlib.h:737: error: previous declaration of ‘int _gl_warn_on_use’
with ‘C++’ linkage
| ../libgnu/time.h:350: error: conflicts with new declaration with ‘C’ linkage
Will you please add -save-temps to the command libtool uses for
compiling ODES.cc and send the resulting ODES.ii file to me?
Thanks,
jwe
Re: safer way to use gnulib, Jaroslav Hajek, 2010/03/16
Re: safer way to use gnulib, Ben Abbott, 2010/03/16