Hailu Meng | 10 May 2011 22:01
Picon

Re: IPLIKE Installation Error

Searched a little bit and found out the --hash-style=gnu passed by gcc to linker doesn't work. The linker in the RHEL 5 doesn't recognize it. I tried to modify the --hash-style=gnu as --hash-style=both in configure file but the gcc still pass the --hash-style=gnu to linker. This is really frustrating.

Lou

On Mon, May 9, 2011 at 3:22 PM, Hailu Meng <hailumeng <at> gmail.com> wrote:
Thanks Benjamin. I guess it should be the compiler issue. I have RHEL 5 not 6. The new 2.0.2 version gave me the same error. I looked at the config.log and found the reason it caused the error:

/usr/bin/ld: unrecognized option '--hash-style=gnu'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

I checked ld. It's under /usr/bin. The hash-style=gnu could be the reason why it doesn't work. But I haven't figured out why it doesn't work.


On Mon, May 9, 2011 at 3:11 PM, Benjamin Reed <ranger <at> opennms.org> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/9/11 3:24 PM, Hailu Meng wrote:
> Thanks Benjamin. I ran the rpmbuild but got error below:
>
> checking for i686-redhat-linux-gnu-gcc... no
> checking for gcc... gcc
> checking for C compiler default output file name... configure: error: C
compiler cannot create executables
> See `config.log' for more details.
>
>
> I checked my RHEL5. It has gcc and g++ under /usr/bin. Should I
uninstall these built-in compiler and reinstall them? Thanks a lot for
your help.

You can wait for us to make a binary (which will be a while, CentOS has
not yet updated to RHEL6), or continue to attempt to build yourself.  If
you have gcc on your RHEL6 system, then I'm not sure why that would be
failing.  You'll have to find the config.log file (probably somewhere in
/usr/src/redhat/BUILD/) and see what errors it says.

Also, I've just released a new version of iplike that fixes some
installation issues.  You can get it here:


http://sourceforge.net/projects/opennms/files/IPLIKE/stable-2.0/iplike-2.0.2.tar.gz

- --
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNyEqCUu+jZtP2Zf4RAuJ5AJ4y2AC9MsTziBZxQt28084mGA21EgCdFtZB
j9xUW7qaabZb4SgEO3OO57s=
=sdUS
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
Hailu Meng | 10 May 2011 22:32
Picon

Re: IPLIKE Installation Error

Hi Benjamin,

I found this:

"On systems with new tool-chain set, gcc (especially v 4.1 onwards) passes --hash-style=gnu to the linker, by default and hence the code generated has just SHT_GNU_HASH section. And when this binary is run on older system, it would fail to run, as the dynamic linker on those machine won't find SHT_HASH section, it is looking for."

Is there any way you can build a new patch for my problem? Thanks a lot for your help.

Lou

On Tue, May 10, 2011 at 3:01 PM, Hailu Meng <hailumeng <at> gmail.com> wrote:
Searched a little bit and found out the --hash-style=gnu passed by gcc to linker doesn't work. The linker in the RHEL 5 doesn't recognize it. I tried to modify the --hash-style=gnu as --hash-style=both in configure file but the gcc still pass the --hash-style=gnu to linker. This is really frustrating.

Lou


On Mon, May 9, 2011 at 3:22 PM, Hailu Meng <hailumeng <at> gmail.com> wrote:
Thanks Benjamin. I guess it should be the compiler issue. I have RHEL 5 not 6. The new 2.0.2 version gave me the same error. I looked at the config.log and found the reason it caused the error:

/usr/bin/ld: unrecognized option '--hash-style=gnu'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

I checked ld. It's under /usr/bin. The hash-style=gnu could be the reason why it doesn't work. But I haven't figured out why it doesn't work.


On Mon, May 9, 2011 at 3:11 PM, Benjamin Reed <ranger <at> opennms.org> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/9/11 3:24 PM, Hailu Meng wrote:
> Thanks Benjamin. I ran the rpmbuild but got error below:
>
> checking for i686-redhat-linux-gnu-gcc... no
> checking for gcc... gcc
> checking for C compiler default output file name... configure: error: C
compiler cannot create executables
> See `config.log' for more details.
>
>
> I checked my RHEL5. It has gcc and g++ under /usr/bin. Should I
uninstall these built-in compiler and reinstall them? Thanks a lot for
your help.

You can wait for us to make a binary (which will be a while, CentOS has
not yet updated to RHEL6), or continue to attempt to build yourself.  If
you have gcc on your RHEL6 system, then I'm not sure why that would be
failing.  You'll have to find the config.log file (probably somewhere in
/usr/src/redhat/BUILD/) and see what errors it says.

Also, I've just released a new version of iplike that fixes some
installation issues.  You can get it here:


http://sourceforge.net/projects/opennms/files/IPLIKE/stable-2.0/iplike-2.0.2.tar.gz

- --
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNyEqCUu+jZtP2Zf4RAuJ5AJ4y2AC9MsTziBZxQt28084mGA21EgCdFtZB
j9xUW7qaabZb4SgEO3OO57s=
=sdUS
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install



------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
Hailu Meng | 10 May 2011 22:34
Picon

Re: IPLIKE Installation Error

I mean by modifying the configure file to have gcc pass hash-style=both or has-style=sysv.

On Tue, May 10, 2011 at 3:32 PM, Hailu Meng <hailumeng <at> gmail.com> wrote:
Hi Benjamin,

I found this:

"On systems with new tool-chain set, gcc (especially v 4.1 onwards) passes --hash-style=gnu to the linker, by default and hence the code generated has just SHT_GNU_HASH section. And when this binary is run on older system, it would fail to run, as the dynamic linker on those machine won't find SHT_HASH section, it is looking for."

Is there any way you can build a new patch for my problem? Thanks a lot for your help.

Lou


On Tue, May 10, 2011 at 3:01 PM, Hailu Meng <hailumeng <at> gmail.com> wrote:
Searched a little bit and found out the --hash-style=gnu passed by gcc to linker doesn't work. The linker in the RHEL 5 doesn't recognize it. I tried to modify the --hash-style=gnu as --hash-style=both in configure file but the gcc still pass the --hash-style=gnu to linker. This is really frustrating.

Lou


On Mon, May 9, 2011 at 3:22 PM, Hailu Meng <hailumeng <at> gmail.com> wrote:
Thanks Benjamin. I guess it should be the compiler issue. I have RHEL 5 not 6. The new 2.0.2 version gave me the same error. I looked at the config.log and found the reason it caused the error:

/usr/bin/ld: unrecognized option '--hash-style=gnu'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

I checked ld. It's under /usr/bin. The hash-style=gnu could be the reason why it doesn't work. But I haven't figured out why it doesn't work.


On Mon, May 9, 2011 at 3:11 PM, Benjamin Reed <ranger <at> opennms.org> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/9/11 3:24 PM, Hailu Meng wrote:
> Thanks Benjamin. I ran the rpmbuild but got error below:
>
> checking for i686-redhat-linux-gnu-gcc... no
> checking for gcc... gcc
> checking for C compiler default output file name... configure: error: C
compiler cannot create executables
> See `config.log' for more details.
>
>
> I checked my RHEL5. It has gcc and g++ under /usr/bin. Should I
uninstall these built-in compiler and reinstall them? Thanks a lot for
your help.

You can wait for us to make a binary (which will be a while, CentOS has
not yet updated to RHEL6), or continue to attempt to build yourself.  If
you have gcc on your RHEL6 system, then I'm not sure why that would be
failing.  You'll have to find the config.log file (probably somewhere in
/usr/src/redhat/BUILD/) and see what errors it says.

Also, I've just released a new version of iplike that fixes some
installation issues.  You can get it here:


http://sourceforge.net/projects/opennms/files/IPLIKE/stable-2.0/iplike-2.0.2.tar.gz

- --
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNyEqCUu+jZtP2Zf4RAuJ5AJ4y2AC9MsTziBZxQt28084mGA21EgCdFtZB
j9xUW7qaabZb4SgEO3OO57s=
=sdUS
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install




------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
Benjamin Reed | 11 May 2011 00:24
Favicon
Gravatar

Re: IPLIKE Installation Error


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/10/11 4:01 PM, Hailu Meng wrote:
> Searched a little bit and found out the --hash-style=gnu passed by gcc
to linker doesn't work. The linker in the RHEL 5 doesn't recognize it. I
tried to modify the --hash-style=gnu as --hash-style=both in configure
file but the gcc still pass the --hash-style=gnu to linker. This is
really frustrating.

OK, sorry, I was confused.  If you're on RHEL5, then you should be able
to use the pre-build RPMs in yum already.  Does the yum repository not
work?  Your original post made it sound like you were hand-downloading
RPMs, which, I guess should work if you get the right arch...

- -- 
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNybsbUu+jZtP2Zf4RApMZAJ9DU3aqUA+mjdTtUFeu+48sRemscwCeJpU1
AXCM9KjQZUBZluXWhbFJ+z4=
=iU+I
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install

Hailu Meng | 11 May 2011 00:39
Picon

Re: IPLIKE Installation Error

Thanks Benjamin to reply my post quickly. I was using the 1.0.7 by yum install the iplike. It gave me the incompatible error about ELF. Then I download 1.0.9 but still get errors. Then I compile from source and gave me the hash-style error. Anyway, I download an older version (3.4) of gcc and compile the iplike 2.0.2 you gave to me. Everything is good now. What a hassle for this simple installation. Didn't have this issue with old RHEL 4. hehe.

Thanks for the help!!! My new OpenNMS is running well. Will configure everything tomorrow. Cheers!

Lou

On Tue, May 10, 2011 at 5:24 PM, Benjamin Reed <ranger <at> opennms.org> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/10/11 4:01 PM, Hailu Meng wrote:
> Searched a little bit and found out the --hash-style=gnu passed by gcc
to linker doesn't work. The linker in the RHEL 5 doesn't recognize it. I
tried to modify the --hash-style=gnu as --hash-style=both in configure
file but the gcc still pass the --hash-style=gnu to linker. This is
really frustrating.

OK, sorry, I was confused.  If you're on RHEL5, then you should be able
to use the pre-build RPMs in yum already.  Does the yum repository not
work?  Your original post made it sound like you were hand-downloading
RPMs, which, I guess should work if you get the right arch...


- --
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNybsbUu+jZtP2Zf4RApMZAJ9DU3aqUA+mjdTtUFeu+48sRemscwCeJpU1
AXCM9KjQZUBZluXWhbFJ+z4=
=iU+I
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install

Gmane