[omniORB] GCC Internal Compiler Error / OmniNotify1.1 RDIEvent.h /Solution+Patch

Juan M. Casillas juanm.casillas@eresmas.com
Fri, 16 Mar 2001 13:50:34 +0100 (CET)


--v2Ahe8NVYl
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit


Hello,

	This days I was trying to compile OmniORB 3.0.3 with 
	OmniNotify 1.1 when I get always an internal compiler
	error when trying to compile omniNotify 1.1 in a Debian
	(Linux) potato with a glibc 2.1 and gcc version 2.95.2
	(the platform selected is i586_linux_2.0_glibc) I disable
	the -O2 optimization for g++ and put a --enable-share in
	the gcc directives. 

	Another thing I change some code for OmniNotify RDIEvent.h
	in the line 668. When gcc tries to compile this line, it gets
	an internal error. I only use a temporal variable to store
	the length (more details inside the patch) and then 
	compiles ok!

	Another thing is I get all the examples working fine, using
	tcpwrappers stuff and the dummy one also. Near the end of the
	file, I attached two patches, one for the RDIEvent.h file
	(lives under omniNotify/lib directory) and another for the
	i586 platform).

Kind Regards,


--v2Ahe8NVYl
Content-Type: application/octet-stream
Content-Disposition: attachment;
	filename="RDIEvent.h.patch"
Content-Transfer-Encoding: base64

KioqIFJESUV2ZW50Lmgub3JpZwlGcmkgTWFyIDE2IDEzOjQxOjAwIDIwMDEKLS0tIFJESUV2
ZW50LmgJRnJpIE1hciAxNiAxMzozOTozNCAyMDAxCioqKioqKioqKioqKioqKgoqKiogNjY1
LDY3MCAqKioqCiAgICBpZiAoX2V2bnQuaGVhZGVyLnZhcmlhYmxlX2hlYWRlci5sZW5ndGgo
KSkKICAgICAgX3ZhaGRyX3J0dmFsID0gbmV3IFJESV9SVFZhbFtfZXZudC5oZWFkZXIudmFy
aWFibGVfaGVhZGVyLmxlbmd0aCgpXTsKISAgIGlmIChfZXZudC5maWx0ZXJhYmxlX2RhdGEu
bGVuZ3RoKCkpCiEgICAgIF9mZGF0YV9ydHZhbCA9IG5ldyBSRElfUlRWYWxbX2V2bnQuZmls
dGVyYWJsZV9kYXRhLmxlbmd0aCgpXTsKICAKICAgIGZvciAoaT0wOyBpIDwgX2V2bnQuaGVh
ZGVyLnZhcmlhYmxlX2hlYWRlci5sZW5ndGgoKTsgaSsrKSB7Ci0tLSA2NjUsNjczIC0tLS0K
ICAgIGlmIChfZXZudC5oZWFkZXIudmFyaWFibGVfaGVhZGVyLmxlbmd0aCgpKQogICAgICBf
dmFoZHJfcnR2YWwgPSBuZXcgUkRJX1JUVmFsW19ldm50LmhlYWRlci52YXJpYWJsZV9oZWFk
ZXIubGVuZ3RoKCldOwohICAgaWYgKF9ldm50LmZpbHRlcmFibGVfZGF0YS5sZW5ndGgoKSkg
ewohICAgICB1bnNpZ25lZCBpbnQgX2V2bnRfZmlsdGVyYWJsZV9kYXRhX2xlbmd0aDsKISAg
ICAgX2V2bnRfZmlsdGVyYWJsZV9kYXRhX2xlbmd0aCA9IF9ldm50LmZpbHRlcmFibGVfZGF0
YS5sZW5ndGgoKTsKISAgICAgX2ZkYXRhX3J0dmFsID0gbmV3IFJESV9SVFZhbFtfZXZudF9m
aWx0ZXJhYmxlX2RhdGFfbGVuZ3RoXTsKISAgIH0KICAKICAgIGZvciAoaT0wOyBpIDwgX2V2
bnQuaGVhZGVyLnZhcmlhYmxlX2hlYWRlci5sZW5ndGgoKTsgaSsrKSB7Cg==

--v2Ahe8NVYl
Content-Type: application/octet-stream
Content-Disposition: attachment;
	filename="i586_linux_2.0_glibc.mk.patch"
Content-Transfer-Encoding: base64

KioqIGk1ODZfbGludXhfMi4wX2dsaWJjLm1rLm9yaWcJV2VkIEF1ZyAgOSAxODowNzoyNyAy
MDAwCi0tLSBpNTg2X2xpbnV4XzIuMF9nbGliYy5tawlGcmkgTWFyIDE2IDEzOjQ1OjI4IDIw
MDEKKioqKioqKioqKioqKioqCioqKiAxOSwyMiAqKioqCi0tLSAxOSwyMyAtLS0tCiAgI1BZ
VEhPTiA9ICQoQUJTVE9QKS8kKEJJTkRJUikvb21uaXB5dGhvbgogICNQWVRIT04gPSAvdXNy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otLS0gNTEsNjMgLS0tLQogIEVnY3NNaW5vclZlcnNpb24gPSAxICAgICAgICAj
IFRoaXMgaXMgYWN0dWFsbHkgYSBwb3N0LTEuMCBlZ2NzIHNuYXBzaG90LgogIAohICNDQyAg
ICAgICAgICAgPSAvdXNyL2xvY2FsL2VnY3MvYmluL2djYwohIENDPS91c3IvYmluL2djYwog
IENNQUtFREVQRU5EICArPSAtRF9fR05VQ19fCiAgQ0RFQlVHRkxBR1MgID0gLU8KICAKICBD
TElOSyAgICAgICAgPSAkKENDKQohIENMSU5LT1BUSU9OUyA9ICQoQ0RFQlVHRkxBR1MpICQo
Q09QVElPTlMpIC0tZW5hYmxlLXNoYXJlZCBcCiEgCSAgICAgICAkKHBhdHN1YnN0ICUsLVds
JChjb21tYSktcnBhdGgkKGNvbW1hKSUsJChJTVBPUlRfTElCUkFSWV9ESVJTKSkgCiEgCQog
IAogIElOU1RBTEwgPSBpbnN0YWxsIC1jCioqKioqKioqKioqKioqKgoqKiogNjYsNjkgKioq
KgotLS0gNzEsNzUgLS0tLQogIAogIG9tbmlPUkJHYXRla2VlcGVySW1wbGVtZW50YXRpb24g
PSBPTU5JT1JCX1RDUFdSQVBHSworICNvbW5pT1JCR2F0ZWtlZXBlckltcGxlbWVudGF0aW9u
ID0gT01OSU9SQl9EVU1NWUdLCiAgQ29yYmFJbXBsZW1lbnRhdGlvbiA9IE9NTklPUkIKICAK

--v2Ahe8NVYl
Content-Type: text/plain; charset=us-ascii
Content-Description: .signature
Content-Transfer-Encoding: 7bit




-- 
==================================================
Juan M. Casillas Perez               Icq# 97323426
Mail Manager		 	 Tlf: +34912020087   
EresMas.com 	        juanm.casillas@eresmas.com
==================================================


--v2Ahe8NVYl--