Operating System - HP-UX
1832476 Members
2769 Online
110043 Solutions
New Discussion

visualize box and cdrecord

 
ben_14
New Member

visualize box and cdrecord

just upgraded a visualize C240 box from 10.02 -> 11.0 and connected a Plextor cdr. I've downloaded the source for cdrecord and am having problems getting it to compile. more specifically i'm having problems with make:
# make
Bad character | (octal 174), line 38Make: . Stop.
#
neat huh? Anyone seen this / have a clue? or better yet, can i bypass this and find a binary package of cdrecord?

Thx alot folks
9 REPLIES 9
Charles Slivkoff
Respected Contributor

Re: visualize box and cdrecord

Ben,



I just downloaded and took a look at this myself. I'll have to agree that the package is not inutitive to build.



Take a look at README.compile. Basically, either get the "smake" that is recommended, or GNU make.



(You can get GNU make from http://devresource.hp.com)



I had gmake, but had it named make.gnu. I created a symlink to it as "gmake", other wise the RULES/mk-gmake.id would not load.



I then ran:



gmake CCOM=cc



and cdrecord and it's utilities seemed to build OK.



Also, don't forget to run the "MKNOD.hpux" script to create the device files.



ben_14
New Member

Re: visualize box and cdrecord

Chuck, I did find devresources copy of gmake sometime after I posted. I still am not as lucky as you yet however.

I'm pretty new to HP-UX so I followed the install steps that was on the download page of gmake, said that by default it installed gmake to /usr/local. I have a /usr/loca/bin/make which I believe is gmake(?)

I did try your symlink suggestion but am getting the same errors that I have been:
==> MAKING DEPENDENCIES "OBJ/9000-782-hp-ux-cc/avoffset.d"
/bin/sh: makedepend: not found.

The only version of makedepend I can find anywhere on this system is /opt/imake/bin (if i include this in the PATH then it does work... but thats a pretty ugly way of doing it)
And:
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.

If I use the 'COPTS= ' argument that the README.hpux tells me to, the -A error goes away but I still get the -O line.

One of the more frustrating things is that there are 3-4 versions of make on this box and i've no idea whats going on.
/usr/local/bin/make (i *think* this is my gmake depot install)
/opt/make/bin/make
/opt/imake/bin/imake
/bin/make
and only imake seems to have makedepend, i'm so lost :)
Santosh Nair_1
Honored Contributor

Re: visualize box and cdrecord

Ben,

I take it that you don't have the ansi C compiler (not free). I've had problems trying to build cdrecord with the bundled compiler. Do you have GCC installed, and if so, did you try building cdrecord with gcc?

As a last resort, I can compile it for you.

-Santosh
Life is what's happening while you're busy making other plans
ben_14
New Member

Re: visualize box and cdrecord

Santosh,
I've tried gcc a handful of times, typically I get the usual makedepend not found (not gcc's problem) and also a "unable to exec 'cpp': No such file or directory" error. lots of them. that would be gcc's problem.

I do have gcc and gcc's binutils in the path but cpp just isnt there. Why would that be? (Same goes for makedepend)
Santosh Nair_1
Honored Contributor

Re: visualize box and cdrecord

Ben,

Hmm, that's interesting...cpp should have ben part of the gcc package. Makedepend is in /opt/imake/bin (that comes with the X11 Motif Development kit which comes with the ansi compiler I believe). Just add it to your path.

To be honest, I've never used the packaged gcc, I've always build my own. But that's a
very difficult task which usually takes me about a day or so.

-Santosh
Life is what's happening while you're busy making other plans
ben_14
New Member

Re: visualize box and cdrecord

hmm, As I've stated I'm new to HP UX and their package system. I am however familar with RPM or DEB and some PKG stuff.

In those systems there are ways of querying a package to view the files it contains, Would you happen to know what this is? closest thing i've found was swlist -l product, which just spits out the installed packages and not its contents.

Strange stuff
Santosh Nair_1
Honored Contributor

Re: visualize box and cdrecord

Ben,

swlist would be the command you'd use for this. The syntax would be:

swlist -l file

You can get a list of the products using the same command with the -l product option (as you mentioned earlier)

If I get some time, I'll try to compile cdrecord with the bundled compiler and if it works, will let you know what I had to do.

-Santosh

P.S. Btw, don't forget to award points :-)
Life is what's happening while you're busy making other plans
ben_14
New Member

Re: visualize box and cdrecord

ahhh
I dont understand what was wrong with the version of gcc that was in /opt but I grabbed a copy of it from devsource.hp.com, setup the correct PATH and it actually compiled. And it runs too, nice bonus.

Thx for your help, and whats this point thing you mentioned? :)
Santosh Nair_1
Honored Contributor

Re: visualize box and cdrecord

As for the point, you can assign points to users for their responses to your question. I believe there should be a "assign points" button somewhere on the screen. The points range from 1 (little help) to 10 (solved my problem). Just an FYI.

-Santosh
Life is what's happening while you're busy making other plans