Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

compile error

147 views
Skip to first unread message

lauedoi

unread,
Mar 25, 2005, 2:14:13 PM3/25/05
to
hi ng,
i try to install streamripper (version 1.61.4) on solaris 10(sparc) but
at the make check/make command get the following error.
or what is an equivalent mp3 streamripper for solaris?
i tested the code on a suse 9.0 version and work without any errors.
why do not work it on solaris plattform? they say that the code is
plattform independent. on x86 or solaris 9 the same error message.

configure command:
root@ariel> ./configure --prefix=/usr/local/streamripper/
....

root@ariel> make check
....
In file included from lib/inet.c:25:
lib/socklib.h:32: error: syntax error before "u_int32_t"
*** Error code 1
make: Fatal error: Command failed for target `inet.o'
Current working directory /data/software/streamripper-1.61.4
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo check-recursive | sed s/-recursive//`; \
list='libmad-0.15.1b '; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `check-recursive'

thanks.

lauedoi

unread,
Mar 25, 2005, 2:15:21 PM3/25/05
to

Marc

unread,
Mar 25, 2005, 3:37:44 PM3/25/05
to
lauedoi wrote:

> i try to install streamripper (version 1.61.4) on solaris 10(sparc) but
> at the make check/make command get the following error.
> or what is an equivalent mp3 streamripper for solaris?
> i tested the code on a suse 9.0 version and work without any errors.
> why do not work it on solaris plattform? they say that the code is
> plattform independent. on x86 or solaris 9 the same error message.
>

> lib/socklib.h:32: error: syntax error before "u_int32_t"

In this file, add these 3 lines after the first #include:
#include "net/ppp_defs.h"
#include "sys/sockio.h"
#define INADDR_NONE 0xffffffffU

You will also need to set LDFLAGS='-lsocket -lnsl -lrt' before running
configure.

Notice that this is just what a grep and a RNG say I should do to force
it to compile. It does not mean it is the right thing to do, that would
require thinking.

lauedoi

unread,
Mar 25, 2005, 6:27:00 PM3/25/05
to
the added lines generates the following error:
ld: fatal: Symbol referencing errors. No output written to streamripper
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `streamripper'

Current working directory /data/software/streamripper-1.61.4
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo check-recursive | sed s/-recursive//`; \
list='libmad-0.15.1b '; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `check-recursive'


Marc schrieb:

Marc

unread,
Mar 29, 2005, 5:54:54 AM3/29/05
to
lauedoi wrote:

> ld: fatal: Symbol referencing errors. No output written to streamripper
> collect2: ld returned 1 exit status

Well, you did not show the error message that ld gave (it lists the
symbols, when there is a referencing error). Your problem seems to be
with libmad (I had one already installed when I tested). Maybe you could
try to install it independantly.

(sorry, I won't be able to answer anymore, but someone else might)

lauedoi

unread,
Apr 2, 2005, 5:14:59 PM4/2/05
to
hi marc,
thanks for your straight tip.
i did not see the symbol referencing problem.
now it works very well.

Marc schrieb:

0 new messages