Operating System - HP-UX
1833861 Members
2001 Online
110063 Solutions
New Discussion

Re: GNUPlot for HP-UX 10.01

 
SOLVED
Go to solution
Kevin Lamb
Frequent Advisor

GNUPlot for HP-UX 10.01

Hi,

I have GNUPlot running on a couple of 10.20 machines and was wondering if any one has seen a copy for 10.01, I have tried to compile the 10.20 version on 10.01 but this complains of library problems.

I know this is a long shot but if anyone knows of a site I can get this from it would help.

I have already tried gnu.com and hpux.connect.org.uk but can only find versions for 10.20.

Thanx

Kev
13 REPLIES 13
Stefan Farrelly
Honored Contributor

Re: GNUPlot for HP-UX 10.01


See if you can successfully compile it on 10.20, then I can give you the options to create a static version on 10.20 (with the libraries built into it) which is portable across 10.X and will then run fine on 10.01.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Kevin Lamb
Frequent Advisor

Re: GNUPlot for HP-UX 10.01

Stephan,

I have got GNUPlot compiled and running sucessfuly on several 10.20 boxes.

If you could let me know the options to create the static version which can be ported to 10.01 it would be appreciated.

Thx
Kev
Kevin Lamb
Frequent Advisor

Re: GNUPlot for HP-UX 10.01

Stefan

Appologies for the mis-spelling of your name.

Thx

Kev
Stefan Farrelly
Honored Contributor

Re: GNUPlot for HP-UX 10.01

Hi Kevin,

alrighty. Now, you need to modify the make file for Gnuplot to add the following compiler options;

-noshared -Wl,-a,archive

eg. add to the CCOPTIONS section
Then do a make clean (ensure all object files removed) and then make the binary. Now the binary should be much larger (as libraries built into it) and portable back to 10.01.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Stefan Farrelly
Honored Contributor

Re: GNUPlot for HP-UX 10.01


oops, forgot an extra option you may need. +DAportable
Try without first, if it doesnt work include it also.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Kevin Lamb
Frequent Advisor

Re: GNUPlot for HP-UX 10.01

Stefan,

Unfortunatley it is still failing with Unrecognised symbols.

Tried the -noshared but I believe that this is for GCC, I forgot to mention that we are running HP-ANSI C so tried the -N option but this still failed.

the full line on our options is cc -Ae -N -Wl,a,archive,+DAportable it produces all the symbols but then fails on the link stage.

Is there any option that we should be using bearing i mind that this is ANSI C

Thx

Kev
Stefan Farrelly
Honored Contributor

Re: GNUPlot for HP-UX 10.01

Hi Kevin,

-noshared works fine on HP ANSI C also. Im using a full HP ANSI C compiler.

Trying to create static binaries can be a real pain. Where did you download Gnu plot from ? I will install and create a static binary for you. Please include your email.

Cheers,

Stefan
Im from Palmerston North, New Zealand, but somehow ended up in London...
Kevin Lamb
Frequent Advisor

Re: GNUPlot for HP-UX 10.01

Stefan,
gnuplot was taken from gnuplot.vt.edu, it was already installed on the 10.20 machines when I started a couple of months back.

my mail address is klamb4@csc.com

If you could provide the binaries it would be a great help

Thx

Kev
Kevin Lamb
Frequent Advisor

Re: GNUPlot for HP-UX 10.01

Stefan,

The full link to the version of gnuplot that is currently running is :NORTH AMERICA:

Anonymous ftp to ftp.gnuplot.vt.edu:
ftp://ftp.gnuplot.vt.edu/pub/gnuplot/gnuplot-3.7.1.tar.gz

Alternatively, you can use your web browser to get gnuplot
from the gnuplot web pages at

http://members.theglobe.com/gnuplot/gp371tar.gz
http://www.geocities.com/SiliconValley/Foothills/6647/gp371tar.gz

Anonymous ftp to ftp.dartmouth.edu. Please try the
other sites first!
ftp://ftp.dartmouth.edu/pub/gnuplot/gnuplot-3.7.1.tar.gz

Stefan Farrelly
Honored Contributor

Re: GNUPlot for HP-UX 10.01

Hi Kevin,

just emailed the static gnuplot binaries to you. Theyre in a tar gzip file.

Cheers,

Stefan
Im from Palmerston North, New Zealand, but somehow ended up in London...
Kevin Lamb
Frequent Advisor

Re: GNUPlot for HP-UX 10.01

Hi Stefan,

Not sure if it is our mail server or not but I have not received the mail yet ;-}

Thx

Kev
Kevin Lamb
Frequent Advisor

Re: GNUPlot for HP-UX 10.01

Stefan,

I have used the gnuplot binaries that you have kindly sent and these work perfectly.


Thanks for your help with this one.

Kev

p.s. did you use any different cc options other than the ones that you suggested???
Stefan Farrelly
Honored Contributor
Solution

Re: GNUPlot for HP-UX 10.01

Hi Kevin,

had to make a couple of other changes to the Makefile. I added in a library (causing the unresolved symbol errors you encountered);

LIBS = -lm -L/opt/zlib/lib -l:libdld.sl

And had to modify a line which prevented object files being created when using the static lib options on cc;

COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -o $@

I think that was all.

Im from Palmerston North, New Zealand, but somehow ended up in London...