[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] Building gettext-0.18.3.2 for G4 processor fails in unsete
From: |
Peter Dyballa |
Subject: |
[bug-gettext] Building gettext-0.18.3.2 for G4 processor fails in unsetenv.c |
Date: |
Sun, 4 May 2014 11:05:03 +0200 |
Hello!
Configure determines:
time env LANG=C
PATH=/Developer45/usr/bin:/usr/local/texlive/2013/bin/x86_64-darwin:$PATH
./configure --target=ppc-apple-darwin10.8.0 --build=i686-apple-darwin10.8.0
--prefix=.../wp2latex.3.65/build --libdir=.../wp2latex.3.65/build/lib-G4
--enable-shared=no --disable-csharp --disable-openmp --disable-acl
--disable-libasprintf --disable-rpath --with-pic
CPPFLAGS="-I.../wp2latex.3.65/build/include" CFLAGS="-arch ppc -isysroot
/Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -mcpu=G4 -m32 -H
-pipe -fPIC -fast -mtune=G4 -mpowerpc-gfxopt -faltivec -maltivec -mabi=altivec
-pthread -finline-functions" LDFLAGS="-arch ppc -Wl,-dead_strip_dylibs
-Wl,-bind_at_load -Wl,-t" CC=gcc-4.0 CPP=cpp-4.0 CXX=g++-4.0 CXXCPP="g++-4.0
-E" LD=gcc-4.0 OBJDUMP=gobjdump
.
.
.
checking whether unsetenv is declared without a macro... yes
.
.
.
checking whether unsetenv is declared... yes
.
.
.
checking for unsetenv... yes
checking for unsetenv() return type... int
checking whether unsetenv obeys POSIX… no
and then fails:
/bin/sh ../libtool --tag=CC --mode=compile gcc-4.0 -std=gnu99
-DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl
-I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1
-I///usr/include/libxml2 -I./libcroco -I.../wp2latex.3.65/build/include -arch
ppc -isysroot /Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
-mcpu=G4 -m32 -H -pipe -fPIC -fast -mtune=G4 -mpowerpc-gfxopt -faltivec
-maltivec -mabi=altivec -pthread -finline-functions -c -o unsetenv.lo unsetenv.c
libtool: compile: gcc-4.0 -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\"
-DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I..
-DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I///usr/include/libxml2
-I./libcroco -I.../wp2latex.3.65/build/include -arch ppc -isysroot
/Developer45/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -mcpu=G4 -m32 -H
-pipe -fPIC -fast -mtune=G4 -mpowerpc-gfxopt -faltivec -maltivec -mabi=altivec
-pthread -finline-functions -c unsetenv.c -fno-common -DPIC -o unsetenv.o
. ../config.h
. ./stdlib.h
.. /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/stdlib.h
... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/cdefs.h
... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/_types.h
.... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/_types.h
..... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/machine/_types.h
...... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/ppc/_types.h
... ./sys/wait.h
.... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/wait.h
..... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/signal.h
...... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/appleapiopts.h
...... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/machine/signal.h
....... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/ppc/signal.h
..... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/resource.h
..... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/machine/endian.h
...... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/ppc/endian.h
....... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/_endian.h
........ ./stdint.h
.........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include/stdint.h
......... ./sys/types.h
.......... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/types.h
...........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/machine/types.h
............ /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/ppc/types.h
...........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/machine/endian.h
.........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include/limits.h
..........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include/syslimits.h
.......... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/limits.h
...........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/machine/limits.h
............ /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/ppc/limits.h
.............
/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/ppc/_limits.h
...........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/syslimits.h
......... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/inttypes.h
.......... ./stdint.h
........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/libkern/OSByteOrder.h
.........
/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/libkern/ppc/OSByteOrder.h
.... ./sys/types.h
... ./alloca.h
..
/Developer45/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include/stddef.h
. ./errno.h
.. /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/errno.h
... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/errno.h
. ./string.h
.. /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/string.h
..
/Developer45/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include/stddef.h
. ./unistd.h
.. /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/unistd.h
... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/unistd.h
... ./sys/select.h
.... ./sys/types.h
.... ./sys/time.h
..... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/time.h
...... ./time.h
....... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/time.h
........ /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/machine/_limits.h
.......
/Developer45/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include/stddef.h
.... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/sys/select.h
..... ./sys/types.h
..... ./signal.h
...... ./sys/types.h
...... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/signal.h
.... ./signal.h
..
/Developer45/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include/stddef.h
.. ./stdlib.h
.. ./sys/types.h
.. ./getopt.h
... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/getopt.h
.... ./unistd.h
... ../config.h
... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/ctype.h
.... /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/runetype.h
.. /Developer45/SDKs/MacOSX10.4u.sdk/usr/include/crt_externs.h
unsetenv.c: In function 'rpl_unsetenv':
unsetenv.c:123: error: void value not ignored as it ought to be
make[4]: *** [unsetenv.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
When I compile unsetenv.c with -E -dD instead of -c I get:
491 #define GNULIB_TEST_SETENV 1
536 #define GNULIB_TEST_UNSETENV 1
714 #define HAVE_DECL_SETENV 1
742 #define HAVE_DECL_UNSETENV 1
1296 #define HAVE_RAW_DECL_SETENV 1
1427 #define HAVE_RAW_DECL_UNSETENV 1
1571 #define HAVE_SETENV 1
1752 #define HAVE_UNSETENV 1
6886 #define GNULIB_TEST_SETENV 1
6931 #define GNULIB_TEST_UNSETENV 1
7109 #define HAVE_DECL_SETENV 1
7137 #define HAVE_DECL_UNSETENV 1
7691 #define HAVE_RAW_DECL_SETENV 1
7822 #define HAVE_RAW_DECL_UNSETENV 1
7966 #define HAVE_SETENV 1
8147 #define HAVE_UNSETENV 1
4946 # 143 "/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/stdlib.h" 3 4
...
5030 int setenv(const char *, const char *, int) ;
...
5047 void unsetenv(const char *);
5048 # 260 "/Developer45/SDKs/MacOSX10.4u.sdk/usr/include/stdlib.h" 3 4
...
5191 # 1113 "./stdlib.h" 3
5192 #undef setenv
5193 #define setenv rpl_setenv
5194
5195 extern int rpl_setenv (const char *name, const char *value, int
replace);
5196
5197
5198 extern int _gl_cxxalias_dummy;
5199 # 1131 "./stdlib.h" 3
5200 extern int _gl_cxxalias_dummy;
5201 # 1236 "./stdlib.h" 3
5202 #undef unsetenv
5203 #define unsetenv rpl_unsetenv
5204
5205 extern int rpl_unsetenv (const char *name);
...
8807 # 33 "unsetenv.c" 2
8808
8809
8810 #define __environ environ
8811 # 45 "unsetenv.c"
8812 #define LOCK
8813 #define UNLOCK
8814 # 99 "unsetenv.c"
8815 #undef unsetenv
8816 # 110 "unsetenv.c"
8817 int
8818 rpl_unsetenv (const char *name)
8819 {
8820 int result = 0;
8821 if (!name || !*name || strchr (name, '='))
8822 {
8823 (*__error()) = 22;
8824 return -1;
8825 }
8826 while (getenv (name))
8827
8828 result =
8829
8830 unsetenv (name);
8831 return result;
8832 }
So obviously in unsetenv.c neither
extern void unsetenv (const char *);
nor
extern int unsetenv (const char *);
happens, only
# undef unsetenv
in the #else part of the #if _LIBC || !HAVE_UNSETENV clause.
--
Greetings
Pete
Let's face it; we don't want a free market economy either.
– James Farley, president, Coca-Cola Export Corp., 1959
- [bug-gettext] Building gettext-0.18.3.2 for G4 processor fails in unsetenv.c,
Peter Dyballa <=