pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/44289: mp3blaster does not compile on GNU/Linux (pkgsrc2010Q3)
>Number: 44289
>Category: pkg
>Synopsis: mp3blaster does not compile on GNU/Linux (pkgsrc2010Q3)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 28 23:20:00 +0000 2010
>Originator: Ruben Gonzalez Arnau
>Release: GNU/Linux pkgsrc
>Organization:
none
>Environment:
linux
>Description:
It contains two compile errors:
1)
make[2]: Entering directory
`/tmp/workdir/pkgsrc/audio/mp3blaster/work/mp3blaster-3.2.0/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../mpegsound -I/usr/include/ncurses
-I../nmixer -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -Wno-error
-I/usr/include -I/usr/pkg/include
-DMP3BLASTER_DOCDIR=\"/usr/pkg/share/mp3blaster\" -c fileman.cc
fileman.cc: In member function ?int fileManager::readDir()?:
fileman.cc:215:68: error: ?struct dirent? has no member named ?d_namlen?
make[2]: *** [fileman.o] Error 1
make[2]: Leaving directory
`/tmp/workdir/pkgsrc/audio/mp3blaster/work/mp3blaster-3.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/tmp/workdir/pkgsrc/audio/mp3blaster/work/mp3blaster-3.2.0'
make: *** [all-recursive-am] Error 2
*** Error code 2
2) after fixing the first one
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../mpegsound -I/usr/include/ncurses
-I../nmixer -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -Wno-error
-I/usr/include -I/usr/pkg/include
-DMP3BLASTER_DOCDIR=\"/usr/pkg/share/mp3blaster\" -c history.cc
history.cc: In destructor ?History::~History()?:
history.cc:18:21: error: ?free? was not declared in this scope
make[2]: *** [history.o] Error 1
make[2]: Leaving directory
`/tmp/workdir/pkgsrc/audio/mp3blaster/work/mp3blaster-3.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/tmp/workdir/pkgsrc/audio/mp3blaster/work/mp3blaster-3.2.0'
make: *** [all-recursive-am] Error 2
*** Error code 2
>How-To-Repeat:
cd /usr/pkgsrc/audio/mp3blaster && bmake install
>Fix:
1)
vim work/mp3blaster-3.2.0/src/fileman.cc
Use d_reclen instead of d_namlen
entries[diritems - 1] = (char *)malloc( (sizeof(*entry) + entry->d_namlen + 1)
* sizeof(char));
entries[diritems - 1] = (char *)malloc( (sizeof(*entry) + entry->d_reclen + 1)
* sizeof(char));
2)
vim work/mp3blaster-3.2.0/src/history.cc
#include <string.h>
+#include <stdlib.h>
After those changes compiles and works fine.
See you!
Home |
Main Index |
Thread Index |
Old Index