From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12114 invoked by alias); 22 Nov 2006 09:32:47 -0000 Received: (qmail 12105 invoked by uid 22791); 22 Nov 2006 09:32:46 -0000 X-Spam-Check-By: sourceware.org Received: from psldns.polaris.co.in (HELO psldns.polaris.co.in) (202.54.189.7) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Nov 2006 09:32:36 +0000 Received: from unknown (HELO psldns.polaris.co.in) ([172.20.102.39]) by psldns.polaris.co.in with ESMTP; 22 Nov 2006 14:59:35 +0530 X-IronPort-AV: i="4.09,447,1157308200"; d="scan'208"; a="5967711:sNHT20253317" Subject: gcc3.3.3 vs gcc4.0.0 To: gcc-bugs@gcc.gnu.org X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: jayashree.nair@polaris.co.in Date: Wed, 22 Nov 2006 09:32:00 -0000 Cc: jayashree.nair@polaris.co.in MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" 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: 2006-11/txt/msg01934.txt.bz2 Hello, I have a proc file which I compile with the proc compiler and link it with gcc. The .pc file as well as makefile is same in two m/c's. In one m/c with gcc3.3.3 installed, I have no problem in compiling and linking. In another m/c with gcc4.0.0 installed, I was getting the following error: p15.c:4857: error: conflicting types for 'logerror' p15.c:4812: error: previous implicit declaration of 'logerror' was here logerror() was not declared in the p15.pc file. So I changed the code and declared the method before my main routine and it solved my problem. What I would like to know is that why is this giving me such different results with the different versions. Or is there something wrong in the makefile. However my makefile is same in both the m/c's Or maybe my 2nd m/c doen't have the requisite libraries in the paths mentioned. Somebody please help in dipersing these doubts. FYI: Snapshot of makefile : p15.o: p15.pc $(PROC) $(PROCPLSFLAGS) iname=p15.pc userid=$(USERID) $(CC) $(CFLAGS) -I $(INCLUDEPATH) -c p15.c p15: unxfns.o rpg_fns.o p15.o cfarerr.o cfarsms.o $(CC) $(CFLAGS) -o p15 p15.o unxfns.o rpg_fns.o cfarsms.o cfarerr.o -Wl,-L/usr/lib/ -L$(LIBPATH) -L$(LIBLOCAL) Note* unxfns.o, rpg_fns.o, cfarsms.o, cfarerr.o : all are properly compiled and linked objects. Variables : USERID=cfar/cfar@liqdty NETWORKHOME=$(ORACLE_HOME)/network/ PLSQLHOME=$(ORACLE_HOME)/plsql/ INCLUDEPATH=./ -I $(ORACLE_HOME)/precomp/public LIBPATH=$(ORACLE_HOME)/lib32/ -lnsl -lclntsh -lgeneric9 LIBLOCAL$ = ./ Regards Jayashree Nair This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit us at http://www.polaris.co.in