Re: [CentOS] [OT] how does ELF record file scope things?
On 18 February 2013 01:56, Michael Hennebry wrote: > fred.c: > static void sfunc(int *p) { *p=1; } > static int x; > > void fred(void) > { > ... sfunc(&x); ... > } > > > greg.c: > static void sfunc(int *p) { *p=2; } > static int x; > > void greg(void) > { > ... sfunc(&x); ... > } > > Once the object files from fred.c and greg.c are linked, > how does ELF distinguish the sfunc's and the x's? > I've been trying to RTFM, but it hasn't helped? > -- > Michael henne...@web.cs.ndsu.nodak.edu > "On Monday, I'm gonna have to tell my kindergarten class, > whom I teach not to run with scissors, > that my fiance ran me through with a broadsword." -- Lily > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > The variables and functions belong to a block/file, this is their scope. Both functions/variables you mention are actually unique within their respective file scope. Also have a look at name mangling. http://en.wikipedia.org/wiki/Name_mangling. Gcc help @ http://gcc.gnu.org/ml/gcc-help/ IAll the best. Paul -- "It is a good day to die, Duras. And the day is not yet over"* **Lieutenant Worf* ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Eclipse (again)...
Hi Just thought I might ask my recent question about Eclipse again, only in a slightly different way: Is anyone here using the Eclipse version supplied with the CentOS 6 distro (as opposed to a build downloaded from www.eclipse.org)? Does it work for you? Are you able to install additional components via the built-in software setup mechanism? Thanks, - Toralf This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Eclipse (again)...
Will try it tonight or tomorrow... -Jason On 2013-02-18 09:58, Toralf Lund wrote: > Hi > > Just thought I might ask my recent question about Eclipse again, only > in > a slightly different way: > > Is anyone here using the Eclipse version supplied with the CentOS 6 > distro (as opposed to a build downloaded from www.eclipse.org)? Does > it > work for you? Are you able to install additional components via the > built-in software setup mechanism? > > Thanks, > > - Toralf > > This e-mail, including any attachments and response string, may > contain proprietary information which is confidential and may be > legally privileged. It is for the intended recipient only. If you are > not the intended recipient or transmission error has misdirected this > e-mail, please notify the author by return e-mail and delete this > message and any attachment immediately. If you are not the intended > recipient you must not use, disclose, distribute, forward, copy, > print > or rely on this e-mail in any way except as permitted by the author. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Set an Ethernet Interface Metric
On Sat, Feb 16, 2013 at 10:48 AM, Dan Young wrote: > On Thu, Feb 14, 2013 at 8:08 AM, SilverTip257 >wrote: > > > It is possible to set a metric with 'route' or `ip route`. > > What I'm wondering is if there's a Red Hat/CentOS way of assigning a > metric > > in the network-scripts? > > > This file has the most comprehensive documentation I've found for > /etc/sysconfig/network-scripts/* options (and those of a number of other > sysconfig files as well): > > /usr/share/doc/initscripts-*/sysconfig.txt > Thanks Dan. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > -- ---~~.~~--- Mike // SilverTip257 // ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Setting up bind - location for includes
On Fri, Feb 15, 2013 at 2:47 PM, Robert Moskowitz wrote: > > On 02/15/2013 02:27 PM, Louis Lagendijk wrote: > > On Fri, 2013-02-15 at 11:44 -0500, Robert Moskowitz wrote: > >> I am setting up bind this time around (just rebuilt my test machine via > >> Kickstart) without chroot. > >> > >> I have a fair number of includes for named.conf; I have two views and > >> other odds and ends. My thoughts are to make a directory; /etc/named.d > >> to put all these includes into instead of 'dirtying' up /etc. This way > >> the only files I replace/add to /etc are named.conf and rndc.key (I > >> would like to work the latter around to also be in named.d, but this > >> impacts rndc itself). > >> > > There is an /etc/named directory included in the bind package, I assume > > that it is meant for this purpose... > > It is for your zone files, not necessarily for your named.conf > includes. Bind can write to this, and if your includes are there, in > theory, more zones could be added to your domain. > > The opposite. named.conf resides in /etc/ I don't use /etc/named/ ... it isn't present on my CentOS 5 Bind DNS server. /etc/named/ is present since CentOS 6 came out. Zones in /var/named - old [0], newer [1], newest [2] [0] http://centos.org/docs/2/rhl-rg-en-7.2/s1-bind-configuration.html [1] http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-bind-zone.html [2] https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-bind-zone.html > > I just changed my config to use that (with the chroot package) as it get > > bind mount from the standard startup script > > The lastest part of this thread is me getting 'current' and moving from > relying on chroot and following Redhat/NSA recommendation to just use > selinux protection. > Of course using a chroot will require the modification of paths in your config file, but the directory structure is similar. /var/named/chroot/var/named/ [2] > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > -- ---~~.~~--- Mike // SilverTip257 // ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Eclipse (again)...
On 02/18/2013 06:58 AM, Toralf Lund wrote: > Hi > > Just thought I might ask my recent question about Eclipse again, only in > a slightly different way: > > Is anyone here using the Eclipse version supplied with the CentOS 6 > distro (as opposed to a build downloaded from www.eclipse.org)? Does it > work for you? Are you able to install additional components via the > built-in software setup mechanism? > > Thanks, > > - Toralf > > This e-mail, including any attachments and response string, may contain > proprietary information which is confidential and may be legally privileged. > It is for the intended recipient only. If you are not the intended recipient > or transmission error has misdirected this e-mail, please notify the author > by return e-mail and delete this message and any attachment immediately. If > you are not the intended recipient you must not use, disclose, distribute, > forward, copy, print or rely on this e-mail in any way except as permitted by > the author. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > I am using Eclipse for a C project on CentOS 6. Eclipse was installed using YUM and only from the CentOS repositories. Except that I cannot seem to enable global variables in debug mode all is working well. I haven't added any plugins or components except via YUM. Emmett ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Setting up bind - location for includes
Yes. I had things a bit wrong here. On 02/18/2013 12:46 PM, SilverTip257 wrote: > On Fri, Feb 15, 2013 at 2:47 PM, Robert Moskowitz wrote: > >> On 02/15/2013 02:27 PM, Louis Lagendijk wrote: >>> On Fri, 2013-02-15 at 11:44 -0500, Robert Moskowitz wrote: I am setting up bind this time around (just rebuilt my test machine via Kickstart) without chroot. I have a fair number of includes for named.conf; I have two views and other odds and ends. My thoughts are to make a directory; /etc/named.d to put all these includes into instead of 'dirtying' up /etc. This way the only files I replace/add to /etc are named.conf and rndc.key (I would like to work the latter around to also be in named.d, but this impacts rndc itself). >>> There is an /etc/named directory included in the bind package, I assume >>> that it is meant for this purpose... >> It is for your zone files, not necessarily for your named.conf >> includes. Bind can write to this, and if your includes are there, in >> theory, more zones could be added to your domain. >> >> > The opposite. > > named.conf resides in /etc/ > I don't use /etc/named/ ... it isn't present on my CentOS 5 Bind DNS > server. /etc/named/ is present since CentOS 6 came out. > Zones in /var/named - old [0], newer [1], newest [2] I put my zone files into /var/named with it having a subdir for slaves. I am reshaping my conf includes to go into /etc/named, rather than what I created /etc/name.d There is significant lack of consistancy as to where things are kept under /etc It seems there should be a better way so you don't have to change /etc/named.conf, but add files as needed to /etc/named but how is beyond me. This system is also my internal ntp server, and my notes from what I set up 3 years ago are too thin, plus now I have IPv6 to support. /etc/ntp.conf takes a lot of customization. This is definitely a week to pretend to be a wizard and stay up late. Or maybe that is my problem; staying up too late last week! (Us 60+ yearold guys need our sleep!) > > [0] http://centos.org/docs/2/rhl-rg-en-7.2/s1-bind-configuration.html > [1] > http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-bind-zone.html > [2] > https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-bind-zone.html > > > >>> I just changed my config to use that (with the chroot package) as it get >>> bind mount from the standard startup script >> The lastest part of this thread is me getting 'current' and moving from >> relying on chroot and following Redhat/NSA recommendation to just use >> selinux protection. >> > Of course using a chroot will require the modification of paths in your > config file, but the directory structure is similar. > /var/named/chroot/var/named/ [2] > I have dropped chroot; I am going to 'trust' selinux as better than chroot. Definitely stands the chance of being less complex. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [OT] how does ELF record file scope things?
On Mon, 18 Feb 2013, Paul Norton wrote: > On 18 February 2013 01:56, Michael Hennebry > wrote: >> Once the object files from fred.c and greg.c are linked, >> how does ELF distinguish the sfunc's and the x's? >> I've been trying to RTFM, but it hasn't helped? > The variables and functions belong to a block/file, this is their scope. > Both functions/variables you mention are actually unique within their > respective file scope. ... How is that scope recorded? According to nm, the names are the same and they are marked local, but there is no mention of the particular locality. > ... Also have a look at name mangling. > http://en.wikipedia.org/wiki/Name_mangling. Gcc help @ I'm dealing with C, not C++ or Python or Java. > http://gcc.gnu.org/ml/gcc-help/ IAll the best. Paul Mailing list archives indexed only by month are not really helpful. -- Michael henne...@web.cs.ndsu.nodak.edu "On Monday, I'm gonna have to tell my kindergarten class, whom I teach not to run with scissors, that my fiance ran me through with a broadsword." -- Lily ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] suricata-ids for centos 5 ?
On 02/17/2013 09:47 PM, Eero Volotinen wrote: > Hi List, > > Is there any rpms for centos 5 available? > > -- > Eero > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > Yes. -- _ °v° /(_)\ ^ ^ Mark LaPierre Registered Linux user No #267004 https://linuxcounter.net/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Eclipse (again)...
On 02/18/2013 09:58 AM, Toralf Lund wrote: > Hi > > Just thought I might ask my recent question about Eclipse again, only in > a slightly different way: > > Is anyone here using the Eclipse version supplied with the CentOS 6 > distro (as opposed to a build downloaded from www.eclipse.org)? Does it > work for you? Are you able to install additional components via the > built-in software setup mechanism? > > Thanks, > > - Toralf > > This e-mail, including any attachments and response string, may contain > proprietary information which is confidential and may be legally privileged. > It is for the intended recipient only. If you are not the intended recipient > or transmission error has misdirected this e-mail, please notify the author > by return e-mail and delete this message and any attachment immediately. If > you are not the intended recipient you must not use, disclose, distribute, > forward, copy, print or rely on this e-mail in any way except as permitted by > the author. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > I added additional components to edit perl scripts. It works great for me. [mlapier@mushroom ~]$ rpm -qa | grep eclipse jetty-eclipse-6.1.24-2.el6.noarch eclipse-dtp-1.8.1-1.1.el6.i686 eclipse-swt-3.6.1-6.13.el6.i686 eclipse-changelog-2.7.0-1.el6.i686 eclipse-svnkit-1.3.0-3.el6.i686 eclipse-mylyn-java-3.4.2-9.el6.i686 icu4j-eclipse-4.2.1-5.el6.i686 eclipse-rcp-3.6.1-6.13.el6.i686 eclipse-emf-2.6.0-1.el6.i686 eclipse-mylyn-3.4.2-9.el6.i686 eclipse-callgraph-0.6.1-1.el6.i686 eclipse-linuxprofilingframework-0.6.1-1.el6.i686 eclipse-oprofile-0.6.1-1.el6.i686 eclipse-platform-3.6.1-6.13.el6.i686 eclipse-jdt-3.6.1-6.13.el6.i686 eclipse-rpm-editor-0.5.0-2.el6.i686 eclipse-rse-3.2-1.el6.i686 eclipse-cdt-sdk-7.0.1-4.el6.i686 eclipse-subclipse-1.6.5-6.el6.i686 eclipse-gef-3.6.1-3.el6.i686 eclipse-valgrind-0.6.1-1.el6.i686 eclipse-cdt-7.0.1-4.el6.i686 eclipse-cdt-parsers-7.0.1-4.el6.i686 eclipse-birt-2.6.0-1.1.el6.i686 [mlapier@mushroom ~]$ -- _ °v° /(_)\ ^ ^ Mark LaPierre Registered Linux user No #267004 https://linuxcounter.net/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] suricata-ids for centos 5 ?
Url? eero On Tuesday, February 19, 2013, Mark LaPierre wrote: > On 02/17/2013 09:47 PM, Eero Volotinen wrote: > > Hi List, > > > > Is there any rpms for centos 5 available? > > > > -- > > Eero > > ___ > > CentOS mailing list > > CentOS@centos.org > > http://lists.centos.org/mailman/listinfo/centos > > > > Yes. > > -- > _ > °v° >/(_)\ > ^ ^ Mark LaPierre > Registered Linux user No #267004 > https://linuxcounter.net/ > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] suricata-ids for centos 5 ?
I thought somewhere they say there is no official RPM from them. The users can only build them up themselves. Banyan He Blog: http://www.rootong.com Email: ban...@rootong.com On 2/19/2013 10:28 AM, Eero Volotinen wrote: > Url? > > eero > > On Tuesday, February 19, 2013, Mark LaPierre wrote: > >> On 02/17/2013 09:47 PM, Eero Volotinen wrote: >>> Hi List, >>> >>> Is there any rpms for centos 5 available? >>> >>> -- >>> Eero >>> ___ >>> CentOS mailing list >>> CentOS@centos.org >>> http://lists.centos.org/mailman/listinfo/centos >>> >> Yes. >> >> -- >> _ >> °v° >> /(_)\ >> ^ ^ Mark LaPierre >> Registered Linux user No #267004 >> https://linuxcounter.net/ >> >> ___ >> CentOS mailing list >> CentOS@centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos