NetBSD Problem Report #37728

From  Wed Jan  9 13:04:52 2008
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 859B563BD87
	for <>; Wed,  9 Jan 2008 13:04:52 +0000 (UTC)
Message-Id: <>
Date: Wed,  9 Jan 2008 10:36:06 +0000 (UTC)
Subject: dvd+rw-tools compile problem on Linux
X-Send-Pr-Version: www-1.0

>Number:         37728
>Category:       pkg
>Synopsis:       dvd+rw-tools compile problem on Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linux-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 09 13:05:04 +0000 2008
>Closed-Date:    Sat Jul 19 12:42:52 +0000 2014
>Last-Modified:  Sat Jul 19 12:42:52 +0000 2014
>Originator:     Ondrej Tuma
>Release:        current
Linux ip1 #3 Thu Mar 8 18:42:01 CET 2007 i686 athlon-4 i386 GNU/Linux
There are 3 problems first: 

g++ -O2 -march=i686 -I/usr/include  -O2 -fno-exceptions -D_REENTRANT -O2 -march=i686 -I/usr/include -c growisofs_mmc.cpp
transport.hxx: In member function 'int Scsi_Command::is_reload_needed(int)':
transport.hxx:361: error: 'INT_MAX' was not declared in this scope
*** Error code 1

after then second:
gcc -O2 -march=i686 -I/usr/include  -O2 -D_REENTRANT -O2 -march=i686 -I/usr/include -c growisofs.c
growisofs.c: In function 'setup_fds':
growisofs.c:724: error: 'INT_MAX' undeclared (first use in this function)
growisofs.c:724: error: (Each undeclared identifier is reported only once
growisofs.c:724: error: for each function it appears in.)
*** Error code 1

and at the end third:
gcc -O2 -march=i686 -I/usr/include  -O2 -D_REENTRANT -O2 -march=i686 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -o growisofs growisofs.c -lpthread
/tmp/ccdhUUeB.o: In function `builtin_dd':
growisofs.c:(.text+0x196): undefined reference to `get_capacity'
growisofs.c:(.text+0x607): undefined reference to `x::x(void)'
growisofs.c:(.text+0x634): undefined reference to `x::x(void)'
growisofs.c:(.text+0x85c): undefined reference to `poor_mans_setup'
growisofs.c:(.text+0x9e6): undefined reference to `get_buffer_stats'
growisofs.c:(.text+0xaf1): undefined reference to `get_buffer_stats'
/tmp/ccdhUUeB.o: In function `progress_print':
growisofs.c:(.text+0x1637): undefined reference to `x::x(void)'
/tmp/ccdhUUeB.o: In function `setup_fds':
growisofs.c:(.text+0x1dbe): undefined reference to `get_mmc_profile'
/tmp/ccdhUUeB.o: In function `main':
growisofs.c:(.text+0x280a): undefined reference to `plusminus_r_C_parm'
growisofs.c:(.text+0x295d): undefined reference to `media_reload'
growisofs.c:(.text+0x29c2): undefined reference to `fumount'
growisofs.c:(.text+0x3ba9): undefined reference to `plusminus_locale'
growisofs.c:(.text+0x3bb5): undefined reference to `plusminus_locale'
growisofs.c:(.text+0x3cf0): undefined reference to `poor_man_rewritable'
collect2: ld returned 1 exit status
*** Error code 1
fix files transport.hxx and growisofs.c by adding this line to them:
#include <limits.h>

3: use gmake instead of bmake (USE_TOOLS+= gmake) in Makefile



Responsible-Changed-From-To: pkg-manager->dan
Responsible-Changed-When: Wed, 09 Jan 2008 13:08:37 +0000
Over to maintainer.

Responsible-Changed-From-To: dan->linux-pkg-people
Responsible-Changed-When: Sun, 15 Apr 2012 21:38:05 +0000
Back to role account, dan left

State-Changed-From-To: open->closed
State-Changed-When: Sat, 19 Jul 2014 12:42:52 +0000
This problem disappeared.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.