gcc output size differs on same version of solaris


 
Thread Tools Search this Thread
Operating Systems Solaris gcc output size differs on same version of solaris
# 1  
Old 03-14-2005
gcc output size differs on same version of solaris

Hello everybody,

I am having two machines. I am using g++v2.95
When I do the build,the size of output file on both machines differ. I am not able to find what can be the problem. Both the machines are solaris 5.6

The command is :
g++ -c -g -I./ -I../../../include -I/usr/local/include/g++-3 -I/usr/local/include/g++-3/std -I/usr/local/include/g++ -I/usr/local/include/g++/std -I../../../src/tools/qdbm -D_PTHREADS -g -DFWDEBUG -DNRESOURCE -Wall -Wno-unused -Wno-missing-braces -D__no_nmtrace -I../../../src/tools/PEER/include -DPEER_GENERIC_PORT -DSNMPV2_SUPPORTED -DMD5_SUPPORTED -DUSE_PROTOTYPES -D_POSIX_PTHREAD_SEMANTICS -I./../../../src/tools/PEER/include -I./../../../../embedded/g6/common/inc -I./../../../../embedded/g6/scm/syslogger/inc -I./../../../../embedded/g6/scm/RepoMgr/inc -I./../../../../embedded/g6/common/DBMS/inc -I./../../../../embedded/g6/common/Galt/inc -I/usr/java1.1/include -I/usr/java1.1/include/solaris -I./../../../../embedded/g6/scm/perfmonitor/inc -I./../../../../embedded/g6/common/Galt3/inc -fPIC VmPmUtil.cc -o VmPmUtil.o

Size of VmPmUtil.o on machines are:
Machine 1: 70724
Machine 2: 71092

Thanks in advance.
# 2  
Old 03-14-2005
I can only guess.... Maybe one of those include files is different. Tracking it down might be hard. Your program might reference, say, xyz.h which is the same on both system. But it might reference xyz2.h which is different.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Downloading and installing a very old version of gcc

I would like to acquire a very old version of gcc: 4.4.3 and set it up in such a way that I can use the update-alternatives command to switch between my current version and the older version. I believe I may have found a website where I can download 4.4.3 from. However, I am not sure what all I... (6 Replies)
Discussion started by: Circuits
6 Replies

2. Shell Programming and Scripting

Output differs when run manually and when cron job executes it

I get a different output when i manually run the .sh script and when it is run by a cron job. Please help me .. TMP1="/lhome/bbuser/script/wslog/sar.t1" TMP2="/lhome/bbuser/script/wslog/sar.t2" TMP3="/lhome/bbuser/script/wslog/sar.t3" OUTPUT="/lhome/bbuser/script/wslog/sar.out"... (8 Replies)
Discussion started by: nithinankam
8 Replies

3. Shell Programming and Scripting

Output of echo $$ differs in Script than console

Hi All, I have a very basic query for 'echo $$' command. When I am executing echo $$ on console then it is giving different output than the execution of echo $$ in a script. Console Output: ------------------------- bash-3.2$ echo $$ 15610 bash-3.2$ In Script:... (3 Replies)
Discussion started by: manishdivs
3 Replies

4. Shell Programming and Scripting

ftp. copy if size differs

Hi. On my system there is a script which making backup to ftp site. But it leaves copy of files on local machine. Then i go to Midnight Commander and check manually with MC features - i open ftp directory and copy files <if size differs>. So, how can i do the last thing in shell or other... (1 Reply)
Discussion started by: kukuruku
1 Replies

5. Red Hat

GCC version problem

I have a host PC and a target system . Host System -> gcc (3.2) Redhat linux kernel 2.4.20-8 , glibc 2.3 Target System -> gcc (4.1) Fedora linux kernel 2.6.18-1.2798.fc6, glibc 2.5 I would like to build test program that can be run on both systems --------------------------- ... (0 Replies)
Discussion started by: mugdha
0 Replies

6. HP-UX

GCC version findout

Hi, In unix box GCC installed under the /usr/local/bin/gcc, i want to know the version of GCC. Could you please let me know the process for that. Thanks & Regards, Suji (1 Reply)
Discussion started by: srujana
1 Replies

7. UNIX for Dummies Questions & Answers

how to know the gcc version

Please someone can say me how to know the gcc version installed on my sunsolaris? Thanks (2 Replies)
Discussion started by: Minguccio75
2 Replies

8. UNIX for Dummies Questions & Answers

gcc compiler version?

How do you determine which version of the GNU gcc compiler is on your system? (1 Reply)
Discussion started by: Ben070371
1 Replies

9. Shell Programming and Scripting

gcc version filtering !!

Folks, I am using gcc 2.7.2.1 for NeXT PDO on my Solaris box. I want to get gcc version in a script. I do gcc -v and try to filter the output through awk. It won't come. Strange. Assigning it to the variable is also not possible. Any ideas ? Cheers, Amol. (4 Replies)
Discussion started by: amol
4 Replies
Login or Register to Ask a Question