From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1298 invoked by alias); 1 Apr 2009 13:45:11 -0000 Received: (qmail 32024 invoked by uid 48); 1 Apr 2009 13:44:56 -0000 Date: Wed, 01 Apr 2009 13:45:00 -0000 Subject: [Bug gcov-profile/39609] New: hidden symbol `__gcov_init' in /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/libgcc.a(_gcov.oS) is referenced by DSO X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ramu dot konaparthi at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00033.txt.bz2 Problem: g++ fail to build execuable by linking .so files built with options -Wall -fprofile-arcs -ftest-coverage I am able to built shared objects with g++ using options -Wall -fprofile-arcs -ftest-coverage. But, while building the executable binary by linkng the shared objects, I see the error "hidden symbol `__gcov_init' in /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/libgcc.a(_gcov.oS) is referenced by DSO". I dont see the same problem for .c files building with gcc and same options. Some one please help me. Please let know if you need any more info. ======output snippet Begin ================== /usr/bin/g++ -g -fPIC -o hpvgtst hpvgtstpgm.o -L../Tools/lib -lgatorapi -lhpvgtst -L/vob/tdodbc_nt/driver_manager/data_direct/suselinux-x8664/lib -lodbc -lodbcinst -lnsl -lresolv -lc -lddicu21 /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: hpvgtst: hidden symbol `__gcov_init' in /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/libgcc.a(_gcov.oS) is referenced by DSO collect2: ld returned 1 exit status make: *** [hpvgtst] Error 1 ======output snippet End ================== gcc Version used: =================== gcc --version gcc (GCC) 3.3.3 (SuSE Linux) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. =================== Regards, -Ramu -- Summary: hidden symbol `__gcov_init' in /usr/lib64/gcc- lib/x86_64-suse-linux/3.3.3/libgcc.a(_gcov.oS) is referenced by DSO Product: gcc Version: 3.3.3 Status: UNCONFIRMED Severity: major Priority: P3 Component: gcov-profile AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ramu dot konaparthi at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39609