NetBSD Problem Report #37728

From martin@duskware.de  Wed Jan  9 13:04:52 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 859B563BD87
	for <gnats-bugs@gnats.netbsd.org>; Wed,  9 Jan 2008 13:04:52 +0000 (UTC)
Message-Id: <20080109103606.DA45A63BD87@narn.NetBSD.org>
Date: Wed,  9 Jan 2008 10:36:06 +0000 (UTC)
From: pkgsrc@blackmouse.biz
Reply-To: pkgsrc@blackmouse.biz
To: netbsd-bugs-owner@NetBSD.org
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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 09 13:05:04 +0000 2008
>Last-Modified:  Sun Apr 15 21:38:05 +0000 2012
>Originator:     Ondrej Tuma
>Release:        current
>Organization:
Blackmouse
>Environment:
Linux ip1 2.6.20.1 #3 Thu Mar 8 18:42:01 CET 2007 i686 athlon-4 i386 GNU/Linux
>Description:
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
>How-To-Repeat:
bmake
>Fix:
1,2:
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

>Release-Note:

>Audit-Trail:

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


Responsible-Changed-From-To: dan->linux-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 15 Apr 2012 21:38:05 +0000
Responsible-Changed-Why:
Back to role account, dan left


>Unformatted:

NetBSD Home
NetBSD PR Database Search

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