Problems on compiling cdrecord

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
I.M. Weasel
Iron Muskateer Weasel
Posts: 2780
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Fri Jan 04, 2002 4:45 am
Location: The city of the future, Los Braingeles
Has thanked: 1 time
Been thanked: 3 times
Contact:

Problems on compiling cdrecord

Post by I.M. Weasel »

I'm making cdrecord on my mac and I am having problems during the process. im guessing its a PATH problem. Or maybe a problem with the ability of ld on this system, im not sure. I can post the makefile if needed, (I put in the *.*'s for clarity , the make didnt do that ).

OS X
$PATH: (/bin /sbin /usr/bin /usr/sbin)
Compiling Directory: /cdrtools-2.01/cdrecord
shell: /bin/tcsh
group: staff

Beginning of make

Code: Select all

../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/misc.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/getnum.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/crc16.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/xio.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/*.*  :No such file or directory
All dependencies dont get created,although mconfig.h is present @ path.

Code: Select all

        ==> MAKING DIRECTORY "OBJ/powerpc-darwin-cc"
        ==> MAKING DEPENDENCIES "OBJ/powerpc-darwin-cc/xio.d"
In file included from xio.c:27:
../include/mconfig.h:49:73: xconfig.h: No such file or directory

==> MAKING DEPENDENCIES "OBJ/powerpc-darwin-cc/*.*"
In file included from *.*:27:
../include/mconfig.h:49:73: xconfig.h: No such file or directory
Compiling goes ok, but it errors and stops at linking. The ld warning directory does again,exist @ the path. I checked ld's man page and only found the -l,-r arguments, if that matters.

Code: Select all

        ==> COMPILING "OBJ/powerpc-darwin-cc/crc16.o"
        ==> COMPILING "OBJ/powerpc-darwin-cc/*.*"
        ==> LINKING "OBJ/powerpc-darwin-cc/cdrecord"
ld: warning -L: directory name (../libs/powerpc-darwin-cc) does not exist
ld: can't locate file for: -lrscg
make: *** [OBJ/powerpc-darwin-cc/cdrecord] Error 1
:arrow: http://tofuheavyindustries.com
Mac Dream Tool / Mac Dream Tool Services (released Sept. 2019)
Creator of Various awesome Video Games

"You don't have to be forgiven. Clint Eastwood taught us that."
User avatar
greay
DCEmu Ultra Poster
DCEmu Ultra Poster
Posts: 1938
Joined: Wed Jan 21, 2004 10:59 am
Location: 24 hours from Tulsa
Has thanked: 0
Been thanked: 0
Contact:

Re: Problems on compiling cdrecord

Post by greay »

I've built cdrecord on OS a couple times... I know the guy who wrote it is really against GNU make & wants you to use smake instead (if you use darwinports, it's a quick install with "sudo port install smake"). but I'm pretty sure I've gotten it built just using the make that comes w/OS X.

Which version of cdrecord are you using? The one I built, today actually, is 2.01.01. I'd suggest trying out smake. Since it's the authors preferred build method, I assume it's a little better supported.

Oh, and I'm not sure about the cause of the actual errors, but I'm pretty sure the warnings it throws at you in the beginning there are just an artifact of using make instead of smake. They shouldn't be anything to worry about.
I'm a lone wolf looking for trouble.
User avatar
I.M. Weasel
Iron Muskateer Weasel
Posts: 2780
Joined: Fri Jan 04, 2002 4:45 am
Location: The city of the future, Los Braingeles
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: Problems on compiling cdrecord

Post by I.M. Weasel »

greay wrote:I've built cdrecord on OS a couple times... I know the guy who wrote it is really against GNU make & wants you to use smake instead (if you use darwinports, it's a quick install with "sudo port install smake"). but I'm pretty sure I've gotten it built just using the make that comes w/OS X.

Which version of cdrecord are you using? The one I built, today actually, is 2.01.01. I'd suggest trying out smake. Since it's the authors preferred build method, I assume it's a little better supported.
Im trying to build it on my machine, ive tried uing a few pre-built versions, such as the one availble for rhapsody that comes in the cdrtools 2.1~ download,the results were unworking and are found in this topic.

viewtopic.php?f=48&t=95386&p=984210&hil ... rd#p984210

But ill try smake that comes included this time.
g wrote:Oh, and I'm not sure about the cause of the actual errors, but I'm pretty sure the warnings it throws at you in the beginning there are just an artifact of using make instead of smake. They shouldn't be anything to worry about.
I posted those because the makefile warned about them, heres the actual text straight from the beginning..

Code: Select all

[Mac-Macs-Computer:/cdrtools-2.01/cdrecord] macmac% make
                W A R N I N G   Messages like:

gmake[2]: Entering directory `/tmp/cdrtools-2.01/libschily'
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/cvmod.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/dat.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/fcons.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/fdown.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/fdup.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/ffileread.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/ffilewrite.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/fgetline.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/fgetstr.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/file_raise.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/<arch-dir>/fileclose.d: No such file or directory
....

are caused by a GNU make bug and not by the Schily makefile system.

The related bug has been reported to the GNU make maintainers in 1988 but
as the bug has not yet been fixed, it seems that GNU make is unmaintained :-(
A working highly portable make program is at ftp://ftp.berlios.de/pub/smake
../RULES/rules1.top:234: ../incs/Dcc.powerpc-darwin: No such file or directory
../RULES/rules.cnf:56: ../incs/powerpc-darwin-cc/Inull: No such file or directory
../RULES/rules.cnf:57: ../incs/powerpc-darwin-cc/rules.cnf: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/cdrecord.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/cd_misc.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/fifo.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/isosize.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/audiosize.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/auinfo.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/cue.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/diskid.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/wm_session.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/wm_track.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/wm_packet.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/sector.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/clone.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/movesect.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/subchan.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/cdtext.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/defaults.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/cdr_drv.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/drv_philips.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/drv_sony.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/drv_jvc.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/drv_7501.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/drv_mmc.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/drv_simul.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/scsi_scan.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/scsi_cdr.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/scsi_mmc.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/modes.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/misc.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/getnum.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/crc16.d: No such file or directory
../RULES/r-gmake.dep:76: OBJ/powerpc-darwin-cc/xio.d: No such file or directory
The first section states that I might run into those errors thus the 'arch-dir' variable. As you can see, i the 2nd section shows that errors similar to what it was describing came up. but again,sounds like smake will fix them, hopefully.
:arrow: http://tofuheavyindustries.com
Mac Dream Tool / Mac Dream Tool Services (released Sept. 2019)
Creator of Various awesome Video Games

"You don't have to be forgiven. Clint Eastwood taught us that."
User avatar
I.M. Weasel
Iron Muskateer Weasel
Posts: 2780
Joined: Fri Jan 04, 2002 4:45 am
Location: The city of the future, Los Braingeles
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: Problems on compiling cdrecord

Post by I.M. Weasel »

Oh, and welcome back greay! nice to see you again. I tried to post in the null topic, but the embedded youtube link kept crashing my browser.
:arrow: http://tofuheavyindustries.com
Mac Dream Tool / Mac Dream Tool Services (released Sept. 2019)
Creator of Various awesome Video Games

"You don't have to be forgiven. Clint Eastwood taught us that."
User avatar
greay
DCEmu Ultra Poster
DCEmu Ultra Poster
Posts: 1938
Joined: Wed Jan 21, 2004 10:59 am
Location: 24 hours from Tulsa
Has thanked: 0
Been thanked: 0
Contact:

Re: Problems on compiling cdrecord

Post by greay »

It's nice to be back. (and missed! *blush*)
../RULES/rules1.top:234: ../incs/Dcc.powerpc-darwin: No such file or directory
[...]
What's in your "incs" directory? mine, after build, only has two files:
Dcc.i386-darwin
and i386-darwin-cc (a directory).

That may help narrow down what's going on. I'll try & look into where these get populated when I get home from work.
I'm a lone wolf looking for trouble.
User avatar
I.M. Weasel
Iron Muskateer Weasel
Posts: 2780
Joined: Fri Jan 04, 2002 4:45 am
Location: The city of the future, Los Braingeles
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: Problems on compiling cdrecord

Post by I.M. Weasel »

i tried running smake, ./smake, and sudo port install smake, and sudo install smake. it didnt understand 'port' at all, and w/o it (sudo install smake) it just spits out install usage text,with no error.

heres 'incs'

Code: Select all

/cdrtools-2.01/incs] macmac% ls -l
total 0
-rw-r--r--  1 macmac  staff    0 Mar 30 03:37 Dcc.powerpc-darwin
drwxrwxr-x  9 macmac  staff  306 Mar 30 16:51 powerpc-darwin-cc
[Mac-Macs-Computer:/cdrtools-2.01/incs] macmac% ls power*
Inull           config.log      rules.cnf
config.cache    config.status   xconfig.h

oh and heres from above (smake stuff)

Code: Select all

Mac-Macs-Computer:/cdrtools-2.01/cdrecord] macmac% smake
smake: Command not found.
[Mac-Macs-Computer:/cdrtools-2.01/cdrecord] macmac% ./smake
./smake: Command not found.
[Mac-Macs-Computer:/cdrtools-2.01/cdrecord] macmac% ../smake
../smake: Command not found.

:arrow: http://tofuheavyindustries.com
Mac Dream Tool / Mac Dream Tool Services (released Sept. 2019)
Creator of Various awesome Video Games

"You don't have to be forgiven. Clint Eastwood taught us that."
User avatar
greay
DCEmu Ultra Poster
DCEmu Ultra Poster
Posts: 1938
Joined: Wed Jan 21, 2004 10:59 am
Location: 24 hours from Tulsa
Has thanked: 0
Been thanked: 0
Contact:

Re: Problems on compiling cdrecord

Post by greay »

That's really strange. The files it's complaining it can't find *are* there.

You need darwinports to use the port command. It's really handy.

Anyways, I'm gonna PM you w/my IM info. I want to see you get these problems with cdrecord straightened out, and maybe if I can talk to you in realtime we'll be able to solve it.
I'm a lone wolf looking for trouble.
Post Reply