Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 11775 invoked from network); 12 Mar 2007 22:46:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2007 22:46:30 -0000 Received: (qmail 59669 invoked by uid 500); 12 Mar 2007 22:46:38 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 59660 invoked by uid 500); 12 Mar 2007 22:46:38 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 59649 invoked by uid 99); 12 Mar 2007 22:46:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 15:46:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 15:46:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7DDB771406D for ; Mon, 12 Mar 2007 15:46:09 -0700 (PDT) Message-ID: <9619207.1173739569513.JavaMail.jira@brutus> Date: Mon, 12 Mar 2007 15:46:09 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Closed: (STDCXX-354) make 18.limits.traps linker errors due to bad library order In-Reply-To: <9988182.1173730929511.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor closed STDCXX-354. ------------------------------- Resolution: Fixed Fix Version/s: 4.2 > make 18.limits.traps linker errors due to bad library order > ----------------------------------------------------------- > > Key: STDCXX-354 > URL: https://issues.apache.org/jira/browse/STDCXX-354 > Project: C++ Standard Library > Issue Type: Bug > Components: Tests > Affects Versions: 4.1.3 > Environment: all > Reporter: Martin Sebor > Assigned To: Martin Sebor > Fix For: 4.2 > > Attachments: stdcxx-354.patch > > > Tests such 18.limits.traps fail to link when make is invoked explicitly with their name as a target because make places the stdcxx library before the object file in the rule. Notice the command attempts to both compile and link the target. > $ make 18.limits.traps > gcc -pedantic -nostdinc++ -g -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -I/build/sebor/stdcxx-4.1.3/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/include -I/build/sebor/stdcxx-4.1.3/include -I/build/sebor/stdcxx-4.1.3/../rwtest -I/build/sebor/stdcxx-4.1.3/../rwtest/include -I/build/sebor/stdcxx-4.1.3/tests/include -L/build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest -lrwtest11s -L/build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/lib -lstd11s /build/sebor/stdcxx-4.1.3/tests/support/18.limits.traps.cpp /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/lib/libstd11s.a /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a -lsupc++ -lm -o 18.limits.traps > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `_rw_fmtstr': > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:2497: undefined reference to `__rw::__rw_memattr(void const*, unsigned int, int)' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `libstd_vasnprintf': > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:3169: undefined reference to `std::basic_string, std::allocator >::data() const' > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:3170: undefined reference to `std::basic_string, std::allocator >::size() const' > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:3178: undefined reference to `std::basic_string, std::allocator >::data() const' > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:3179: undefined reference to `std::basic_string, std::allocator >::size() const' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `__static_initialization_and_destruction_0': > /build/sebor/stdcxx-4.1.3/include/iostream:39: undefined reference to `std::ios_base::Init::Init()' > /build/sebor/stdcxx-4.1.3/include/iostream:39: undefined reference to `std::ios_base::Init::~Init()' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `_rw_vasnprintf_c99': > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:520: undefined reference to `__rw::__rw_assert_fail(char const*, char const*, int, char const*)' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `int rw_quotestr(FmtSpec const&, char**, unsigned int*, unsigned char const*, unsigned int, int)': > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:2297: undefined reference to `__rw::__rw_memattr(void const*, unsigned int, int)' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `int rw_quotestr(FmtSpec const&, char**, unsigned int*, unsigned short const*, unsigned int, int)': > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:2297: undefined reference to `__rw::__rw_memattr(void const*, unsigned int, int)' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `int rw_quotestr(FmtSpec const&, char**, unsigned int*, unsigned int const*, unsigned int, int)': > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:2297: undefined reference to `__rw::__rw_memattr(void const*, unsigned int, int)' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `int rw_quotestr(FmtSpec const&, char**, unsigned int*, unsigned long long const*, unsigned int, int)': > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:2297: undefined reference to `__rw::__rw_memattr(void const*, unsigned int, int)' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o): In function `int rw_quotestr(FmtSpec const&, char**, unsigned int*, wchar_t const*, unsigned int, int)': > /build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:2297: undefined reference to `__rw::__rw_memattr(void const*, unsigned int, int)' > /build/sebor/stdcxx-4.1.3-gcc-4.1.0-11s/rwtest/librwtest11s.a(printf.o):/build/sebor/stdcxx-4.1.3/tests/src/printf.cpp:2297: more undefined references to `__rw::__rw_memattr(void const*, unsigned int, int)' follow > collect2: ld returned 1 exit status > make: *** [18.limits.traps] Error 1 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.