pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37728: dvd+rw-tools compile problem on Linux

>Number:         37728
>Category:       pkg
>Synopsis:       dvd+rw-tools compile problem on Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 09 13:05:04 +0000 2008
>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

Home | Main Index | Thread Index | Old Index