LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2008, 10:23 PM   #1
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Rep: Reputation: 130Reputation: 130
FYI: dvd+rw-tools-7.1 slackware 12.1 compile error 'INT_MAX' was not declared


Just in case anyone else runs into this.
I was trying to install dvd+rw-tools-7.1.tar.gz when I got this:

bash-3.1$ make
gcc -O2 -D_REENTRANT -c -o growisofs.o growisofs.c
g++ -O2 -fno-exceptions -D_REENTRANT -c -o growisofs_mmc.o growisofs_mmc.cpp
In file included from growisofs_mmc.cpp:17:
transport.hxx: In member function 'int Scsi_Command::is_reload_needed(int)':
transport.hxx:366: error: 'INT_MAX' was not declared in this scope
make[1]: *** [growisofs_mmc.o] Error 1
make[1]: Leaving directory `/d/home/rick/install/dvd+rw-tools-7.1'
make: *** [all] Error 2


INT_MAX is defined inside a standard c library. Apparently in slackware 11.1 the compiler included it by some default, now in 12.1 it doesn't.

So I put:
#include <limits.h>
at the end of the includes at the top of "transport.hxx" and if compiled ok after that.

--rick
 
Old 09-15-2008, 12:58 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
FYI - Slackware-12.1 comes with dvd+rw-tools-7.1-i486-1 -- no need to compile it yourself.
 
Old 09-15-2008, 02:54 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Submit a bug report with the devs of dvd+rw-tools, but check if they haven't fixed this in newer versions.
 
Old 09-15-2008, 03:42 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
That IS the newest version of dvd+rw-tools.

If you look in the source directory at Slackware, you'll find this patch:
Code:
--- ./transport.hxx.orig        2008-03-01 04:34:43.000000000 -0600
+++ ./transport.hxx     2008-04-06 23:05:58.000000000 -0500
@@ -9,6 +9,7 @@
 #if defined(__unix) || defined(__unix__)
 #include <stdio.h>
 #include <stdlib.h>
+#include <limits.h>
 #include <unistd.h>
 #include <string.h>
 #include <sys/types.h>
Actually, we've been patching that in Slackware since dvd+rw-tools-7.0
in Slackware-12.0.

To the OP -- I missed Slackware-11.1 --
 
Old 09-15-2008, 02:45 PM   #5
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 130Reputation: 130
Quote:
Originally Posted by Bruce Hill View Post
FYI - Slackware-12.1 comes with dvd+rw-tools-7.1-i486-1 -- no need to compile it yourself.

Dooogh !!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Qt compile problem - scx-tools - AboutSCXDialog.cpp:26: error: ‘AboutSCXDialog’ has n secretlydead Linux - Software 1 07-11-2008 06:24 AM
Error Prompt - 'Execute_command was not declared in this scope. Please help! thhuang Linux - Newbie 1 11-05-2007 12:38 AM
Slackware 11.0 DHCP no detection anomaly FYI coldbeer Slackware 3 11-16-2006 06:30 AM
FYI: Vulnerable login on Suse/Slackware (20/12/01) unSpawn Linux - Security 0 12-22-2001 05:21 PM
FYI (1/2): Weekly Security Tools Digest unSpawn Linux - Security 0 07-20-2001 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration