473,608 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with frozen app: compatibility between Unixware and SCO Unix

I need to deploy a Python app on both SCO Unixware and old SCO Unix
boxes. We freeze the app under Unixware, and set the compatibility
flag ('elfmark -t udk') on the resulting executable. We successfully
did this using Python 1.5.2. Recently, we decided to upgrade the app
to use Python 2.3.2.

Unfortunately, we've just discovered a nasty surprise. Under 2.3.2,
os.path.isdir() returns True on Unixware for an existing directory
(/tmp, for example), but returns False under SCO Unix. Ouch.

Note that this has been verified using a test program that is frozen
under Unixware, then run on Unixware and SCO Unix. We don't currently
have a python interpreter on the SCO Unix box.

Because of the way a frozen app is involved, I'm thinking that this is
a binary compatibility problem, and will investigate further. We do
the same 'compile under Unixware, deploy under SCO Unix' thing for
many other apps that are written in C, without encountering this
problem.

Does anyone have any suggestions on how I can best proceed? Have you
heard of this kind of problem before? What additional information
would you like to read?

Thanks
Jul 18 '05 #1
2 1301
Mike Kent <mk***@webmd.ne t> pisze:
What additional information would you like to read?


Why you still work with this piece of shit?

BP, NMSP ("I'm Sorry, I Couldn't Resist")

--
Jarek Zgoda
Unregistered Linux User #-1
http://www.zgoda.biz/ JID:zg***@chrom e.pl http://zgoda.jogger.pl/
Jul 18 '05 #2
Upon further intense investigation, here's what I now know.

os.stat() is the culprit. A very simple test program frozen under
Unixware 7.1 which does more more than stat '/tmp' will return proper
results under Unixware, but return totally bogus results when that
frozen test program is run on an OpenServer 5 machine. Bogus in the
sense that the tuple of values returned by os.stat() contain values
that are so far off, it is apparent that the structure returned by the
OS's 'stat' system call is not being unpacked properly.

The docs for the Unixware UDK state that the 'stat' system call is
fully compatible across the two platforms. This was verified by
writing a short 'C' language program, compiling it under Unixware, and
running it on both Unixware and OpenServer. In both cases, it
returned proper results.

The problem appears to be something in Python's wrapper around 'stat'
in posixmodule.c

Any ideas on how I can proceed?
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4602
by: Steve French | last post by:
I have a VB6 DLL that contains a class and a number of forms. A method of the class shows any one of the forms modally, depending on the method arguments. The method is called from a modal form in the host application (also VB6). Everything works fine when the host application and DLL are run in the VB6 IDE as a group. However, when I refer to the compiled DLL (outside the IDE), the forms in the DLL are displayed but 'frozen' i.e. they...
3
12301
by: Paul | last post by:
Hi I'm trying to build a standalone COM exe server using Python 2.2 + Mark Hammond's windows extensions + Py2Exe. I've built the example linked on the Py2Exe homepage and get this error when running the exe: I:\Program Files\Python22\dist\comtest>comtest --register Traceback (most recent call last): File "<string>", line 37, in ? File "win32com\server\register.pyc", line 468, in UseCommandLine
0
1326
by: | last post by:
1) VB6 application has been converted to VB.NET using wizard. Application works as expected on Development system. 2) Deploy application by taking the Bin directory and copying it to another system. This system is fully up to date and has the .NET framework 1.1 Service Pack 1 loaded, but DOES NOT have the .NET development environment installed. 3) Get a protect abort starting application. After adding some "try / Catch code" into the...
2
338
by: karl_m | last post by:
I'm having trouble with unsigned long long declarations on my SCO unix 7.1.1 compiler. Can you test the following code? I'm expecting both printf functions to report 1. Thanks, karl m #include <stdio.h> typedef struct { unsigned long long cnt:16; unsigned long long right:48; } Page;
0
2238
by: Tomas Vera | last post by:
Hello All, I've developed a Commerce Server application and am having deployment problems. The issue is not Commerce Server specific, so I'll ask here, since questions get answered here. The application is developed on a remote machine. My compiler runs locally, but the source files and destination is on the remote machine. The remote machine is running Framework 1.0.3705. This morning I PUP'd the Commerce Server site and deployed it...
0
281
by: Tequila | last post by:
Here’s the description I’d launched Visual Studio and started to write an application After some time of coding, I wanted to test it. I pressed F5 hopin to run application for debugging. I was expecting my app to start. It didn’t happen The screen blinked, became black and after a few seconds returned “normal” picture whole VS IDE become frozen and looked that is still in design mod with the hourglass as cursor icon. After...
1
1545
by: progTiger | last post by:
The upgrade wizard just hangs on step 5 of 5 when it reaches "Upgrading DataEnvironment..." I have let it sit for 3 hours and it does nothing. .Net Studio is not frozen, but the process does nothing. How do I get past this?? Tiger
12
4205
by: Elad | last post by:
Hello All, Im taking an OOP course, in one of the tutorials, there was a frozen class example, i.e. a class which is impossible to inherit from, the example was something like: struct ice__ { ice() {}; };
11
6223
by: rossum | last post by:
I want to declare a const multi-line string inside a method, and I am having some problems using Environment.NewLine. I started out with: class foo { public void PrintStuff() { const string multiline = "The first line." + Environment.NewLine +
0
8067
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8483
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8157
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3967
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4030
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2477
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1336
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.