apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50334] APR_RESTORE_THE_ENVIRONMENT clobbers CPPFLAGS, LDFLAGS, LIBS, CFLAGS, INCLUDES when set to a single space
Date Mon, 19 Sep 2011 03:37:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50334

--- Comment #9 from Nathan Phillip Brink (binki) <binki@gentoo.org> 2011-09-19 03:37:27
UTC ---
Example 2, https://bugs.gentoo.org/383549 :

checking for a sed that does not truncate output... /bin/sed
Applying APR hints file rules for x86_64-pc-linux-gnu
  adding "-D_REENTRANT" to CPPFLAGS
  adding "-D_GNU_SOURCE" to CPPFLAGS
(Default will be unix)
checking whether make sets $(MAKE)... yes
...
Restore user-defined environment settings...
  restoring CPPFLAGS to " "
  setting EXTRA_CPPFLAGS to "-D_REENTRANT-D_GNU_SOURCE"
  restoring CFLAGS to "-march=nocona -O2 -pipe "
  setting EXTRA_CFLAGS to "-pthread"
  restoring LDFLAGS to "-Wl,-O1 -Wl,--as-needed "
  setting EXTRA_LDFLAGS to ""
  restoring LIBS to ""
  setting EXTRA_LIBS to "-luuid -lrt -lcrypt  -lpthread -ldl"
  restoring INCLUDES to ""
  setting EXTRA_INCLUDES to ""
...
/bin/bash /usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc
-pthread  -march=nocona -O2 -pipe  -DHAVE_CONFIG_H -D_REENTRANT-D_GNU_SOURCE  
-I./include
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix
-I./include/arch/unix
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include  -o
locks/unix/proc_mutex.lo -c locks/unix/proc_mutex.c && touch
locks/unix/proc_mutex.lo
<command-line>:0:11: warning: missing whitespace after the macro name
<command-line>:0:0: warning: "_REENTRANT" redefined
<command-line>:0:0: note: this is the location of the previous definition
/bin/bash /usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc
-pthread  -march=nocona -O2 -pipe  -DHAVE_CONFIG_H -D_REENTRANT-D_GNU_SOURCE  
-I./include
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix
-I./include/arch/unix
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include  -o
locks/unix/thread_cond.lo -c locks/unix/thread_cond.c && touch
locks/unix/thread_cond.lo
<command-line>:0:11: warning: missing whitespace after the macro name
<command-line>:0:0: warning: "_REENTRANT" redefined
<command-line>:0:0: note: this is the location of the previous definition
/bin/bash /usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc
-pthread  -march=nocona -O2 -pipe  -DHAVE_CONFIG_H -D_REENTRANT-D_GNU_SOURCE  
-I./include
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix
-I./include/arch/unix
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include  -o
locks/unix/thread_mutex.lo -c locks/unix/thread_mutex.c && touch
locks/unix/thread_mutex.lo
<command-line>:0:11: warning: missing whitespace after the macro name
<command-line>:0:0: warning: "_REENTRANT" redefined
<command-line>:0:0: note: this is the location of the previous definition
/bin/bash /usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc
-pthread  -march=nocona -O2 -pipe  -DHAVE_CONFIG_H -D_REENTRANT-D_GNU_SOURCE  
-I./include
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix
-I./include/arch/unix
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix
-I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include  -o
locks/unix/thread_rwlock.lo -c locks/unix/thread_rwlock.c && touch
locks/unix/thread_rwlock.lo
locks/unix/proc_mutex.c: In function 'proc_mutex_proc_pthread_create':
locks/unix/proc_mutex.c:393:53: error: 'PTHREAD_PRIO_INHERIT' undeclared (first
use in this function)
locks/unix/proc_mutex.c:393:53: note: each undeclared identifier is reported
only once for each function it appears in
make[1]: *** [locks/unix/proc_mutex.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
<command-line>:0:11: warning: missing whitespace after the macro name
<command-line>:0:0: warning: "_REENTRANT" redefined
<command-line>:0:0: note: this is the location of the previous definition
<command-line>:0:11: warning: missing whitespace after the macro name
<command-line>:0:0: warning: "_REENTRANT" redefined
<command-line>:0:0: note: this is the location of the previous definition
make[1]: Leaving directory `/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5'
make: *** [all-recursive] Error 1
emake failed


This is all caused by CPPFLAGS=" " .

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message