- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ANSI C / Perl /gcc Problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 06:55 PM
тАО04-24-2005 06:55 PM
I have a general Problem with HP-UX. I want to install webminstats for monitoring the System.It uses RRDtool. But, I cannot compile RRDtool with the standard Perl that comes with HP-UX, because it requires ANSI C Compiler, and I don't have it. So, I installed another Perl distribution, that used gcc for compiling and that worked, BUT, webmin uses my standard Perl. So, I made the conclusion, that I have to compile RRDtool with the standard Perl. Is there any way for making it work with gcc and not ANSI C? Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 07:08 PM
тАО04-24-2005 07:08 PM
SolutionIf so, just move the standard perl out of the way, and symlink to the new one
Assuming HP's perl is in /usr/bin, and the new gcc one in /opt/perl, change accordingly
# cd /usr/bin
# mv perl perl.hp
# ln -s /opt/perl/bin/perl perl
Done
I don't know RDD or webmintools, but if you can change the $PATH for those tools, for example by making a shell wrapper round the startup script(s), you could set the $PATH to have the perl you need be found before the perl you want to avoid
so assuming rdd starts from /usr/local/bin/rdd
# cd /usr/local/bin
# mv rdd rdd.org
# cat >rdd <
export PATH=/opt/perl/bin:$PATH
exec /usr/local/bin/rdd.org $@
EOF
# chmod 755 rdd
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 07:20 PM
тАО04-24-2005 07:20 PM
Re: ANSI C / Perl /gcc Problem
I think there is a bug in this standard Perl, because trying to compile rrdtools with it brings me:
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
rm -f blib/arch/auto/RRDs/RRDs.so
LD_RUN_PATH="" /usr/bin/ld -b +vnocompatwarnings -L/usr/lib/hpux64 RRDs.o -L../src/.libs/ -lrrd_private -lm -o blib/arch/auto/RRDs/RRDs.so
ld: Can't find library or mismatched ABI for -lrrd_private
Fatal error.
*** Error exit code 1
Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 07:27 PM
тАО04-24-2005 07:27 PM
Re: ANSI C / Perl /gcc Problem
In case the webadmin tool *requires* the other version, you have to leave it there, and go for my second solution.
Yes, it *is* possible to mix HP C-ANSI-C perl and GNU gcc objects or vice versa, but it isn't /easy/.
Just out of curiousity, what are the two builds coming from? What is the output of:
lt09:/home/merijn 138 > perl -v ; perl -V:cc -V:config_args -V:cf_email -V:osname -V:osvers
This is perl, v5.8.6 built for i686-linux-64int
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
cc='cc';
config_args='-Uusedevel -Uversiononly -Duse64bitint -des';
cf_email='h.m.brand@hccnet.nl';
osname='linux';
osvers='2.6.11.4-20a-default';
lt09:/home/merijn 139 >
for both versions of perl
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 07:34 PM
тАО04-24-2005 07:34 PM
Re: ANSI C / Perl /gcc Problem
This is perl, v5.8.3 built for IA64.ARCHREV_0-thread-multi-LP64
(with 8 registered patches, see perl -V for more detail)
Copyright 1987-2003, Larry Wall
Binary build 809 provided by ActiveState Corp. http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Jan 19 2005 10:07:33
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
cc='cc';
config_args='-ders -Dcc=cc -Accflags=-DNO_HASH_SEED -Dusethreads -Duseithreads -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Duse64bitall -Dd_attribut=undef -Dd_u32align=define -Doptimize=-fast +DSitanium2 +Ofltacc=strict -Duselargefiles -Dinc_version_list=5.8.2/$archname 5.8.2 5.8.1/$archname 5.8.1 5.8.0/$archname 5.8.0 -Duseshrplib -Dprefix=/opt/perl_64 -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com';
cf_email='support@ActiveState.com';
___________________________________________________________
And here for the other one:
This is perl, v5.8.6 built for IA64.ARCHREV_0
Copyright 1987-2004, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
cc='gcc';
config_args='-d -e -Dcc=gcc -Ui_dbm -Ui_db -Dprefix=/usr/local useposix=true';
cf_email='root@valhalla.cis';
osname='hpux';
osvers='11.23';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 08:09 PM
тАО04-24-2005 08:09 PM
Re: ANSI C / Perl /gcc Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 09:11 PM
тАО04-24-2005 09:11 PM
Re: ANSI C / Perl /gcc Problem
The first perl you posted is not a `standard' HP perl. It's the ActiveState build of Perl. It's a 64bit threads enabled perl optimized for Itanium2, probably built with HP's cc (looking at the ccflags).
The second perl you posted is a 32bit non-threaded quasi-standard build Perl, built with GNU gcc.
From this I see that you are on Itanium, and I don't know if 32bit and 64bit are ruling eachother out as rigid as on pa-risc, but I'd sure try not to mix.
Deducing from the complete conversation, you were trying to build rdd with the ActivePerl, which doesn't work.
So, why not start from scratch with the rdd stuff, and set your $PATH to find the second perl first
# cd /your/path/to/rdd-1.2.3
# export PATH=/usr/local/bin:$PATH
# perl Makefile.PL
or
# configure --prefix=/usr/local --disable-nls
# make
# make test
or
# make check
# make install
Can you tell us more about the way rdd configures?
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 09:37 PM
тАО04-24-2005 09:37 PM
Re: ANSI C / Perl /gcc Problem
/mnt/tmp/rrdtools-1.0.49
I try:
/mnt/tmp/rrdtools-1.0.49/perl Makefile.PL
and then
/mnt/tmp/rrdtools-1.0.49/make test
as described in README
Then comes the error msg from above.
- - -
Exactly the same when trying to compile rrdtools with the ActiveState Perl, because it tries to compile the RRDs module.
- - -
I think to remove everything and then to compile one perl with gcc compiler, and not installing perl from depot, then install webmin, and then compile rrdtools with the same perl. Otherwise - great mess.
Thank you for helping me, should I tell you whether I made this work?
________________
For RRDtool see:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/compiling.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 09:44 PM
тАО04-24-2005 09:44 PM
Re: ANSI C / Perl /gcc Problem
You cannot build modules in the perl(2) environment and use them in the other perl(1) environment.
The procedure for you is
# perl Makefile.PL
# vi Makefile
* change all CFLAGS that only apply to HP's C to be in gcc style
# make
# make test
# make install
What you could do if you don't know about CFLAGS, is post the generated Makefile here, and have us here at the forum change it for you (don't forget about your points)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 10:06 PM
тАО04-24-2005 10:06 PM