Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » OpenBSD porting problem  
	
		
		
			| Re: OpenBSD porting problem [message #19302 is a reply to message #19276] | 
			Mon, 24 November 2008 23:06    | 
		 
		
			
				
				
				
					
						  
						masu
						 Messages: 378 Registered: February 2006 
						
					 | 
					Senior Member  | 
					 | 
		 
		 
	 | 
 
	
		The error happens in Core/plugin/z/lib/inflate.c function inflateInit2_, It returns Z_VERSION_ERROR, because stream_size is not equal to sizeof(z_stream) (64 != 56). 
I don't know why, yet. 
Here is the end of my debug session: 
 
(gdb) l
82	z_streamp z;
83	int w;
84	const char *version;
85	int stream_size;
86	{
87	  if (version == Z_NULL || version[0] != ZLIB_VERSION[0] ||
88	      stream_size != sizeof(z_stream))
89	      return Z_VERSION_ERROR;
90	
91	  /* initialize state */
(gdb) n
89	      return Z_VERSION_ERROR;
(gdb) p stream_size
$12 = 64
(gdb) p sizeof(z_stream)
$13 = 56
(gdb) bt
#0  inflateInit2_ (z=0xcfbf3ba0, w=15, version=0x3c135f60 "1.2.3", 
    stream_size=64) at uppsrc/plugin/z/lib/inflate.c:89
#1  0x1c312009 in sZpress (out=@0xcfbf3d20, in=@0xcfbf3d00, size=2496, 
    progress=
      {<Upp::Moveable<Upp::Gate2<int, int>, Upp::EmptyClass>> = {<Upp::EmptyClass> = {<No data fields>}, <No data fields>}, action = 0x0}, nohdr=false, 
    crc=0x0, compress=false) at uppsrc/Core/z.cpp:75
#2  0x1c312495 in Upp::ZDecompress (out=@0xcfbf3d20, in=@0xcfbf3d00, 
    size=2496, progress=
      {<Upp::Moveable<Upp::Gate2<int, int>, Upp::EmptyClass>> = {<Upp::EmptyClass> = {<No data fields>}, <No data fields>}, action = 0x7c2692b7}, nohdr=false, 
    crc=0x0) at uppsrc/Core/z.cpp:129
#3  0x1c31259d in Upp::ZDecompress (out=@0xcfbf3d20, in=@0xcfbf3d00, progress=
      {<Upp::Moveable<Upp::Gate2<int, int>, Upp::EmptyClass>> = {<Upp::EmptyClass> = {<No data fields>}, <No data fields>}, action = 0x2e322e31})
    at uppsrc/Core/z.cpp:139
#4  0x1c3127ce in Upp::ZDecompress (data=0x3c11a540, len=2496, progress=
      {<Upp::Moveable<Upp::Gate2<int, int>, Upp::EmptyClass>> = {<Upp::EmptyClass> = {<No data fields>}, <No data fields>}, action = 0x7c2692b7})
    at uppsrc/Core/z.cpp:154
#5  0x1c3c3043 in Upp::UnpackImlData (ptr=0x3c11a540, len=2496)
    at uppsrc/Draw/ImageBlit.cpp:369
#6  0x1c3bf777 in Upp::Iml::Get (this=0x3c3f9c60, i=0)
---Type <return> to continue, or q <return> to quit---
    at uppsrc/Draw/Image.cpp:433
#7  0x1c3d4eb4 in Upp::Override (target=@0x3c3f9c60, source=@0x3c3f9c60, 
    colored=true) at uppsrc/Draw/Cham.cpp:554
#8  0x1c3d4f7a in Upp::ColoredOverride (target=@0x3c3f9c60, source=@0x3c3f9c60)
    at uppsrc/Draw/Cham.cpp:564
#9  0x1c26a636 in Upp::ChStdSkin () at uppsrc/CtrlLib/Ch.cpp:22
#10 0x1c403d48 in Upp::Ctrl::ChSync () at uppsrc/CtrlCore/Ctrl.cpp:882
#11 0x1c428a03 in Upp::Ctrl::InitX11 (display=0x0)
    at uppsrc/CtrlCore/X11App.cpp:375
#12 0x1c0a95d4 in main (argc=1, argv=0xcfbf4154, envptr=0xcfbf415c)
    at uppsrc/ide/idewin.cpp:672
 
 
Any ideas? 
 
Regards, 
Matthias
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 13:45:29 CET 2025 
 Total time taken to generate the page: 0.06472 seconds 
 |