you can check the dependancy libraries which can distinguish the binaries
Code:
ldd binary_file
If their versions match that of the current version of the libs.
apparently you can check out the external libs they are using another way too.
Code:
nm -o binary_file | grep '\bU\b'
The binary file alone cannot give you the information about which version of gcc was used to build it.
If there is a difference b/w the kernel version they are using then you can check the binaries that are made for 2.4 or 2.6 . I suppose redhat-6.2 uses 2.4 while rhel uses 2.6.18.
example :
Code:
file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped
So it lists 2.6 on mine
So in order to distinguish you can rename all lthe binaries depending on the kernel version to later distinguish them
Code:
#!/bin/bash
for fil in $DIR/*;do if file $fil | grep -q '2.6' ;then echo "2.6-${fil}";else echo "2.4-${fil}";fi;done
Apparently you can rename the files with the kernel version to find out which OS it was built.
Hope this helps,
Regards,
gaurav.
Last edited by gaurav1086; 04-18-2010 at 02:34 AM..
Reason: correct variable names
Hi,
I have two Solaris machines.
1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500
2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60
I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
dears i working in solaris and when i type make for report it gives me the error kindly can you help me what is the reason
-bash-3.00$ make BPSEXT130
make: Warning: File `BPSEXT130.rc' has modification time 12 s in the future
make BPSEXT130.c
make: Entering directory... (3 Replies)
Hi,
When i'm compiling my C files, I'm getting an error saying that the file name i've defined is undeclared. Could someone tell me how to solve this error. I've defined the file name as
#define _FILE_CODE_ _XYZ_C_
The error is "_XYZ_C undeclared".
Thanks in advance (1 Reply)
I am planning carving out dual VIO servers on a P750 based and would like to know how to allocate internal disks to the VIOS. This has 4 internal disks and I would to assign 2 disks to each VIO.
This is what I was thinking of assigning . Any advise?
vio1
U5802.001.9K8H757-P1-C1 PCI-E x8... (17 Replies)
Hi,
Generally we will run to install, configure apache 2.x on Solaris machine, but dont want to follow these on the remaining machines.
I want to build the apache binary centrally, so that i can untar the tar file on remaining machines. Please suggest on how to prepare this file and when i... (12 Replies)
Hi,
So I downloaded this kernel source and was able to build it successfully.
But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself.
I added the SDK in the main Makefile:
init-y := init/
#added SDK... (0 Replies)
Hello *nix specialists,
Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
I have a tree structure as follows:
/vik/build/sc/botoh.sc
/vik/lib/endian.f
/vik/utils/botoh.f
Then I run the build script as
cd vik/build/sc
scons -f botoh.sc
The above shows that the SConstruct botoh.sc is down a few levels, and it
may be easiest to have the main... (6 Replies)
Hi Team,
My new build configuration always looking for the files from the build where i copied from.
please help me to resolve this.
I am using Visual studio 2008.It has Qt 4.8. plugins,qml,C++ development
I created new debug_new build configuration with additional preprocessor from the... (1 Reply)
Discussion started by: SA_Palani
1 Replies
LEARN ABOUT REDHAT
glfrontface
GLFRONTFACE(3G)GLFRONTFACE(3G)NAME
glFrontFace - define front- and back-facing polygons
C SPECIFICATION
void glFrontFace( GLenum mode )
PARAMETERS
mode Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is GL_CCW.
DESCRIPTION
In a scene composed entirely of opaque closed surfaces, back-facing polygons are never visible. Eliminating these invisible polygons has
the obvious benefit of speeding up the rendering of the image. To enable and disable elimination of back-facing polygons, call glEnable
and glDisable with argument GL_CULL_FACE.
The projection of a polygon to window coordinates is said to have clockwise winding if an imaginary object following the path from its
first vertex, its second vertex, and so on, to its last vertex, and finally back to its first vertex, moves in a clockwise direction about
the interior of the polygon. The polygon's winding is said to be counterclockwise if the imaginary object following the same path moves in
a counterclockwise direction about the interior of the polygon. glFrontFace specifies whether polygons with clockwise winding in window
coordinates, or counterclockwise winding in window coordinates, are taken to be front-facing. Passing GL_CCW to mode selects counterclock-
wise polygons as front-facing; GL_CW selects clockwise polygons as front-facing. By default, counterclockwise polygons are taken to be
front-facing.
ERRORS
GL_INVALID_ENUM is generated if mode is not an accepted value.
GL_INVALID_OPERATION is generated if glFrontFace is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_FRONT_FACE
SEE ALSO glCullFace(3G), glLightModel(3G)GLFRONTFACE(3G)