List:General Discussion« Previous MessageNext Message »
From:michael Date:April 21 1999 12:17am
Subject:egcs and no main() function
View as plain text  
>Description:
	Binaries produced by egcs where the source code neglected to define
	main() do not run on my system.
>How-To-Repeat:
	CXX=egcs CC=egcs ./configure; make
>Fix:
	Add "void main() { }" to configure's generated test programs (i.e.,
	the program for testing the availability of ANSI C headers).

>Submitter-Id:	<submitter ID>
>Originator:	
>Organization:	Internet Travel Guides
>MySQL support: none
>Synopsis:	egcs-created binaries where no main() function was defined fail
>Severity:	serious
>Priority:	medium
>Category:	mysql
>Class:		sw-bug
>Release:	mysql-3.22.21 (Source distribution)

>Environment:
RedHat 5.2
glibc 2.0.7-29 (rpm)
egcs 1.0.3a-14 (rpm)
egcs-c++ 1.0.3a-14 (rpm)

System: Linux excalibur 2.0.36 #1 Wed Jan 6 10:30:26 AKST 1999 i586 unknown
Architecture: i586

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/specs
gcc version 2.7.2.3

Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''  LDFLAGS='-static'

Configure command: ./configure  --prefix=/usr --exec_prefix=/usr --bindir=/usr/local/mysql
--sbindir=/usr/local/mysql --libexecdir=/usr/local/mysql --datadir=/usr/share
--sysconfdir=/home/mysqld/etc --sharedstatedir=/var/lib/mysql
--localstatedir=/var/lib/mysql --without-readline --without-debug

Perl: This is perl, version 5.004_04 built for i386-linux
Thread
egcs and no main() functionmichael21 Apr