When I compiling lcms or ncurses I get: undefined reference to `sincos'
I've searched the header files of the entire system and all of the source code
for  ANY references to sincos and none exist.
sincos() is simply not on my system.

As far as I can tell, this happens only when cos() exists in the source code of
some.  When cos() is removed, the sincos() linker error vanishes.

I believe it has something to do with gcc-4.4.0 because I have not seen this
problem until I switched to gcc-4.4.0 from gcc-4.1.2 on a clean & bootstrapped
system.

This can be triggered consistently with the ncurses test program:
ncurses-5.7/test/tclock.c
(during the standard ./configure && make process)

--

gcc-4.4.0
uClibc-0.9.28.3 or uClibc-0.30.1
binutils 2.19.1

configure options:
--enable-languages=c,c++ --enable-clocale --enable-__cxa_atexit
--with-system-zlib --enable-multilib --enable-threads=posix
--disable-libstdcxx-pch --enable-ssp --enable-wchar_t --enable-long-long


-- 
           Summary: cos gets replaced by sincos somehow, which doesn't exist
                    on system
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: thekevinday at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40393

Reply via email to