Executable Size Differences

I have a customer site running a Phab application we created.

I need to modify and test this app in the office.

I downloaded all the code from the site to the office.

When I compile the code in the office I get a different executable file size
(2802795 vs. 2817692 at site).

When I try to run either executable at the office both die with a memory
fault.

Running both apps through the debugger I see they both die in the abmain.c
file when the first ApLinkWindow is called.

As far as I can see both boxes are set up the same. Same software, same
versions, same libraries, etc…

I have tried compiling them static and shared library both. Neither solves
the problem of file size differences or memory fault. I’m sure they are both
related.

Below is the versions for the site and office.

I can’t figure out why there is a file size difference or what could be
causing the memory fault.

Seems to me there is something being compiled in on the site that is not
being compiled in at the office, yet there are no errors or warnings when
compiling or linking at the office.

Any help I can get on this is greatly appreciated.

I can get more info if anybody needs it.

Thanks.

George Trowbridge

Alvey IBS



Site versions:

PROGRAM NAME VERSION DATE

/boot/sys/Proc32 Proc 4.25J Sep 09 1999

/boot/sys/Proc32 Slib16 4.23G Oct 04 1996

/boot/sys/Slib32 Slib32 4.24B Aug 12 1997

/bin/Fsys Fsys32 4.24V Feb 18 2000

/bin/Fsys Floppy 4.24B Aug 19 1997

/bin/Fsys.eide eide 4.25A Feb 09 2000

//3/bin/Dev32 Dev32 4.23G Oct 04 1996

//3/bin/Pipe Pipe 4.23A Feb 26 1996

//3/bin/Dev32.ser Dev32.ser 4.23I Jun 27 1997

//3/bin/Dev32.ser Dev32.ser 4.23I Jun 27 1997

//3/bin/Dev32.ansi Dev32.ansi 4.23H Nov 21 1996

//3/bin/Dev32.par Dev.par 4.26 Feb 24 2000

//3/bin/Dev32.pty Dev32.pty 4.23G Oct 04 1996

//3/bin/Fsys.eide eide 4.25A Feb 09 2000

//3/bin/Fsys.aha7scsi scsi 4.24M Mar 23 1998

//3/bin/Iso9660fsys Iso9660fsys 4.23D Mar 20 2000

//3/bin/Net Net 4.25C Aug 30 1999

//3/bin/Net.ct100tx Net.ct100tx 4.25F Aug 20 2001

//3/bin/Dosfsys Dosfsys 4.23E Jan 21 1997

//3/*/usr/ucb/Socklet Socklet 4.25H Jul 30 1999

//3/bin/cron cron 4.23B Oct 30 1997

//3/*/bin/dbsrv50 SQL Anywhere 5.50D

//3/usr/bin/lpsrvr lpsrvr 4.24A Jun 26 1997

//3/*/bin/phfontpfr Photon Font 1.14H Jun 05 2000

//3/*/photon/bin/Photon Photon 1.14B Sep 03 1999



Office versions:

PROGRAM NAME VERSION DATE

/boot/sys/Proc32 Proc 4.25J Sep 09 1999

/boot/sys/Proc32 Slib16 4.23G Oct 04 1996

/boot/sys/Slib32 Slib32 4.24B Aug 12 1997

/bin/Fsys Fsys32 4.24V Feb 18 2000

/bin/Fsys Floppy 4.24B Aug 19 1997

/bin/Fsys.aha7scsi scsi 4.24M Mar 23 1998

//1/bin/Dev32 Dev32 4.23G Oct 04 1996

//1/bin/Pipe Pipe 4.23A Feb 26 1996

//1/bin/Dev32.ser Dev32.ser 4.23I Jun 27 1997

//1/bin/Dev32.ser Dev32.ser 4.23I Jun 27 1997

//1/bin/Dev32.ansi Dev32.ansi 4.23H Nov 21 1996

//1/bin/Dev32.pty Dev32.pty 4.23G Oct 04 1996

//1/bin/Fsys.eide eide 4.25A Feb 09 2000

//1/bin/Dosfsys Dosfsys 4.23E Jan 21 1997

//1/bin/Iso9660fsys Iso9660fsys 4.23D Mar 20 2000

//1/bin/Net Net 4.25C Aug 30 1999

//1/bin/Net.tulip Net.tulip 4.25Q Aug 30 1999

//1/usr/bin/lpsrvr lpsrvr 4.24A Jun 26 1997

//1/bin/cron cron 4.23B Oct 30 1997

//1/*/usr/ucb/Socklet Socklet 4.25H Jul 30 1999

//1/*/bin/phfontpfr Photon Font 1.14H Jun 05 2000

//1/*/photon/bin/Photon Photon 1.14B Sep 03 1999

//1/*/bin/dbsrv50 SQL Anywhere 5.50D

//1/*/bin/dbsrv50 SQL Anywhere 5.50D

//1/*/photon/bin/Photon Photon 1.14B Sep 03 1999

“George Trowbridge” <george.trowbridge@fkilogistex.com> wrote in message
news:aslm5m$d5t$1@inn.qnx.com

I have a customer site running a Phab application we created.

I need to modify and test this app in the office.

I downloaded all the code from the site to the office.

When I compile the code in the office I get a different executable file
size
(2802795 vs. 2817692 at site).

When I try to run either executable at the office both die with a memory
fault.

Running both apps through the debugger I see they both die in the abmain.c
file when the first ApLinkWindow is called.

As far as I can see both boxes are set up the same. Same software, same
versions, same libraries, etc…

I have tried compiling them static and shared library both. Neither solves
the problem of file size differences or memory fault. I’m sure they are
both
related.

Below is the versions for the site and office.

That only show the version of program running in memory, what about compiler
version? Compare size of library file found under /usr/lib.


che

I can’t figure out why there is a file size difference or what could be
causing the memory fault.

Seems to me there is something being compiled in on the site that is not
being compiled in at the office, yet there are no errors or warnings when
compiling or linking at the office.

Any help I can get on this is greatly appreciated.

I can get more info if anybody needs it.

Thanks.

George Trowbridge

Alvey IBS



Site versions:

PROGRAM NAME VERSION DATE

/boot/sys/Proc32 Proc 4.25J Sep 09 1999

/boot/sys/Proc32 Slib16 4.23G Oct 04 1996

/boot/sys/Slib32 Slib32 4.24B Aug 12 1997

/bin/Fsys Fsys32 4.24V Feb 18 2000

/bin/Fsys Floppy 4.24B Aug 19 1997

/bin/Fsys.eide eide 4.25A Feb 09 2000

//3/bin/Dev32 Dev32 4.23G Oct 04 1996

//3/bin/Pipe Pipe 4.23A Feb 26 1996

//3/bin/Dev32.ser Dev32.ser 4.23I Jun 27 1997

//3/bin/Dev32.ser Dev32.ser 4.23I Jun 27 1997

//3/bin/Dev32.ansi Dev32.ansi 4.23H Nov 21 1996

//3/bin/Dev32.par Dev.par 4.26 Feb 24 2000

//3/bin/Dev32.pty Dev32.pty 4.23G Oct 04 1996

//3/bin/Fsys.eide eide 4.25A Feb 09 2000

//3/bin/Fsys.aha7scsi scsi 4.24M Mar 23 1998

//3/bin/Iso9660fsys Iso9660fsys 4.23D Mar 20 2000

//3/bin/Net Net 4.25C Aug 30 1999

//3/bin/Net.ct100tx Net.ct100tx 4.25F Aug 20 2001

//3/bin/Dosfsys Dosfsys 4.23E Jan 21 1997

//3/*/usr/ucb/Socklet Socklet 4.25H Jul 30 1999

//3/bin/cron cron 4.23B Oct 30 1997

//3/*/bin/dbsrv50 SQL Anywhere 5.50D

//3/usr/bin/lpsrvr lpsrvr 4.24A Jun 26 1997

//3/*/bin/phfontpfr Photon Font 1.14H Jun 05 2000

//3/*/photon/bin/Photon Photon 1.14B Sep 03 1999



Office versions:

PROGRAM NAME VERSION DATE

/boot/sys/Proc32 Proc 4.25J Sep 09 1999

/boot/sys/Proc32 Slib16 4.23G Oct 04 1996

/boot/sys/Slib32 Slib32 4.24B Aug 12 1997

/bin/Fsys Fsys32 4.24V Feb 18 2000

/bin/Fsys Floppy 4.24B Aug 19 1997

/bin/Fsys.aha7scsi scsi 4.24M Mar 23 1998

//1/bin/Dev32 Dev32 4.23G Oct 04 1996

//1/bin/Pipe Pipe 4.23A Feb 26 1996

//1/bin/Dev32.ser Dev32.ser 4.23I Jun 27 1997

//1/bin/Dev32.ser Dev32.ser 4.23I Jun 27 1997

//1/bin/Dev32.ansi Dev32.ansi 4.23H Nov 21 1996

//1/bin/Dev32.pty Dev32.pty 4.23G Oct 04 1996

//1/bin/Fsys.eide eide 4.25A Feb 09 2000

//1/bin/Dosfsys Dosfsys 4.23E Jan 21 1997

//1/bin/Iso9660fsys Iso9660fsys 4.23D Mar 20 2000

//1/bin/Net Net 4.25C Aug 30 1999

//1/bin/Net.tulip Net.tulip 4.25Q Aug 30 1999

//1/usr/bin/lpsrvr lpsrvr 4.24A Jun 26 1997

//1/bin/cron cron 4.23B Oct 30 1997

//1/*/usr/ucb/Socklet Socklet 4.25H Jul 30 1999

//1/*/bin/phfontpfr Photon Font 1.14H Jun 05 2000

//1/*/photon/bin/Photon Photon 1.14B Sep 03 1999

//1/*/bin/dbsrv50 SQL Anywhere 5.50D

//1/*/bin/dbsrv50 SQL Anywhere 5.50D

//1/*/photon/bin/Photon Photon 1.14B Sep 03 1999

\

Previously, Mario Charest wrote in qdn.public.qnx4.photon:

“George Trowbridge” <> george.trowbridge@fkilogistex.com> > wrote in message
news:aslm5m$d5t$> 1@inn.qnx.com> …
I have a customer site running a Phab application we created.

I need to modify and test this app in the office.

I downloaded all the code from the site to the office.

When I compile the code in the office I get a different executable file
size
(2802795 vs. 2817692 at site).

When I try to run either executable at the office both die with a memory
fault.

Running both apps through the debugger I see they both die in the abmain.c
file when the first ApLinkWindow is called.

As far as I can see both boxes are set up the same. Same software, same
versions, same libraries, etc…

I have tried compiling them static and shared library both. Neither solves
the problem of file size differences or memory fault. I’m sure they are
both
related.

Below is the versions for the site and office.

That only show the version of program running in memory, what about compiler
version? Compare size of library file found under /usr/lib.

The CRC of the library is more important than the size. If the sizes
are the same but the CRCs are different then you’re comparing apples
and oranges.

[…]