issue with videosnarf port
Anastasios Mageirias
anastasios at mageirias.com
Fri Nov 18 19:53:41 UTC 2016
Hi i'm trying to port videosnarf in order to port xplico later.
During "make build" i encounter the following error.
Does this error stem from the incompatibility between architectures or
is it another one that i can see using "c++ -v" as stated below ?
I'm trying for a week to solve that issue but i can't figure out
anything. As i can guess the linker tries to link some codec files that
are compiled somewhere else right ?
Thank you for any help provided. I also attach the .shar file of my work
in progress
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG729a.a(g729aen_acelp_ca.o)' is incompatible with
i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG729a.a(g729aen_basic_op.o)' is incompatible with
i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG729a.a(g729aen_dspfunc.o)' is incompatible with
i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG729a.a(g729aen_gainpred.o)' is incompatible with
i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG729a.a(g729aen_lspgetq.o)' is incompatible with
i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG7231.a(EasyG7231.o)' is incompatible with i386:x86-64
output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG7231.a(Codec-G7231.o)' is incompatible with
i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG7231.a(basop.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG7231.a(tab_lbc.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG726.a(EasyG726.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG726.a(g726_16.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG726.a(g726_24.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG726.a(g726_32.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG726.a(g726_40.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG726.a(g72x.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file
`../codec-lib/libG726.a(g711.o)' is incompatible with i386:x86-64 output
../codec-lib/libG729a.a(EasyG729A.o): In function
`EasyG729A_init_decoder()':
EasyG729A.cpp:(.text+0xd4): undefined reference to `operator
new(unsigned int)'
../codec-lib/libG729a.a(EasyG729A.o): In function
`EasyG729A_init_encoder()':
EasyG729A.cpp:(.text+0x174): undefined reference to `operator
new(unsigned int)'
../codec-lib/libG7231.a(EasyG7231.o): In function
`EasyG7231_init_decoder(bool)':
EasyG7231.cpp:(.text+0xca): undefined reference to `operator
new(unsigned int)'
EasyG7231.cpp:(.text+0x11a): undefined reference to `operator
new(unsigned int)'
../codec-lib/libG7231.a(EasyG7231.o): In function
`EasyG7231_init_encoder(bool)':
EasyG7231.cpp:(.text+0x1ca): undefined reference to `operator
new(unsigned int)'
../codec-lib/libG7231.a(EasyG7231.o):EasyG7231.cpp:(.text+0x21a): more
undefined references to `operator new(unsigned int)' follow
c++: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [videosnarf] Error code 1
make[3]: stopped in /usr/home/mag/videosnarf/work/videosnarf-0.63/src
1 error
make[3]: stopped in /usr/home/mag/videosnarf/work/videosnarf-0.63/src
*** [all] Error code 2
make[2]: stopped in /usr/home/mag/videosnarf/work/videosnarf-0.63/src
1 error
make[2]: stopped in /usr/home/mag/videosnarf/work/videosnarf-0.63/src
*** [all-recursive] Error code 1
make[1]: stopped in /usr/home/mag/videosnarf/work/videosnarf-0.63
1 error
make[1]: stopped in /usr/home/mag/videosnarf/work/videosnarf-0.63
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/home/mag/videosnarf
-------------- next part --------------
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# videosnarf
# videosnarf/Makefile
# videosnarf/pkg-descr
# videosnarf/distinfo
# videosnarf/files
# videosnarf/files/patch-src_stream.c
# videosnarf/files/patch-src_stream.h
#
echo c - videosnarf
mkdir -p videosnarf > /dev/null 2>&1
echo x - videosnarf/Makefile
sed 's/^X//' >videosnarf/Makefile << '1f43c3853306bfdce62492320074a4b6'
X# $FreeBSD$
X
XPORTNAME= videosnarf
XPORTVERSION= 0.63
XCATEGORIES= security
XMASTER_SITES= SF/ucsniff/${PORTNAME}
X
XMAINTAINER= anastasios at mageirias.com
XCOMMENT= Security assessment tool that outputs any detected media streams
X
XLICENSE= GPLv2
XLICENSE_FILE= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/COPYING
X
XUSES= autoreconf
XGNU_CONFIGURE= yes
X
XCPPFLAGS+= -I${LOCALBASE}/include
X
X#PLIST_FILES= man/man8/nethogs.8.gz \
X# sbin/nethogs
X
X#post-install:
X# ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/nethogs
X
X.include <bsd.port.mk>
1f43c3853306bfdce62492320074a4b6
echo x - videosnarf/pkg-descr
sed 's/^X//' >videosnarf/pkg-descr << 'b5ae1a5b79ef624cb0ebb98122e97914'
XVideoSnarf is a new security assessment tool that takes an offline pcap as
Xinput, and outputs any detected media streams (RTP sessions), including common
Xaudio codecs as well as H264 Video support.
X
XWWW: https://sourceforge.net/projects/ucsniff/files/
XWWW: http://ucsniff.sourceforge.net/videosnarf.html
b5ae1a5b79ef624cb0ebb98122e97914
echo x - videosnarf/distinfo
sed 's/^X//' >videosnarf/distinfo << '20a52884497a399ce7c5e9c48076cbfd'
XTIMESTAMP = 1479084234
XSHA256 (videosnarf-0.63.tar.gz) = 78f84d790160e800df7a56f42e907541770fb0c8934a2ef005afb7a094dee274
XSIZE (videosnarf-0.63.tar.gz) = 862521
20a52884497a399ce7c5e9c48076cbfd
echo c - videosnarf/files
mkdir -p videosnarf/files > /dev/null 2>&1
echo x - videosnarf/files/patch-src_stream.c
sed 's/^X//' >videosnarf/files/patch-src_stream.c << 'b813cd8c5a6c7ce1821b1e62a6f2f749'
X--- src/stream.c.orig 2010-05-17 17:49:45 UTC
X+++ src/stream.c
X@@ -53,7 +53,7 @@ static struct MediaStream * findStream(c
X if((!strcmp(currentMS->srcIP,srcIP)) && (!strcmp(currentMS->dstIP,dstIP)) && (currentMS->srcPort == srcPort) && ((currentMS->dstPort == dstPort)) && (currentMS->rtpPTR->payloadType == (rtp->payloadType & 0x7F)) && (currentMS->codecType == codecType) && (currentMS->codec == codec))
X {
X #ifdef ARCH_X64
X- if(currentMS->rtpPTR->ssrc == bswap_32(rtp->ssrc))
X+ if(currentMS->rtpPTR->ssrc == bswap32(rtp->ssrc))
X {
X return currentMS;
X }
X@@ -118,7 +118,7 @@ static int checkRTPStream(struct sniff_r
X
X #ifdef ARCH_X64
X
X- if((bswap_16(rtp->sequence_no) <= 65535) && (bswap_32(rtp->timestamp) <= 4294967295) && (bswap_32(rtp->ssrc) <= 4294967295) && ((rtp->version & 0xC0) == 0x80))
X+ if((bswap16(rtp->sequence_no) <= 65535) && (bswap32(rtp->timestamp) <= 4294967295) && (bswap32(rtp->ssrc) <= 4294967295) && ((rtp->version & 0xC0) == 0x80))
X {
X return 1;
X }
X@@ -149,17 +149,17 @@ int copyStreamValues(struct MediaStream
X }
X currentMediaStream->rtpPTR->payloadType = (rtp->payloadType & 0x7F);
X #ifdef ARCH_X64
X- currentMediaStream->rtpPTR->sequence_no = bswap_16(rtp->sequence_no);
X+ currentMediaStream->rtpPTR->sequence_no = bswap16(rtp->sequence_no);
X #else
X currentMediaStream->rtpPTR->sequence_no = ntohs(rtp->sequence_no);
X #endif
X #ifdef ARCH_X64
X- currentMediaStream->rtpPTR->timestamp = bswap_32(rtp->timestamp);
X+ currentMediaStream->rtpPTR->timestamp = bswap32(rtp->timestamp);
X #else
X currentMediaStream->rtpPTR->timestamp = ntohl(rtp->timestamp);
X #endif
X #ifdef ARCH_X64
X- currentMediaStream->rtpPTR->ssrc = bswap_32(rtp->ssrc);
X+ currentMediaStream->rtpPTR->ssrc = bswap32(rtp->ssrc);
X #else
X currentMediaStream->rtpPTR->ssrc = ntohl(rtp->ssrc);
X #endif
b813cd8c5a6c7ce1821b1e62a6f2f749
echo x - videosnarf/files/patch-src_stream.h
sed 's/^X//' >videosnarf/files/patch-src_stream.h << 'a127b9cb993e1c1a3f01838ec2710a76'
X--- src/stream.h.orig 2010-05-17 17:49:54 UTC
X+++ src/stream.h
X@@ -4,9 +4,12 @@
X #include "videosnarf.h"
X #include "g722.h"
X
X+/*
X #ifdef ARCH_X64
X #include "byteswap.h"
X #endif
X+*/
X+#include <sys/endian.h>
X
X #define COG711ULAW 0X00
X #define COG711ALAW 0x08
a127b9cb993e1c1a3f01838ec2710a76
exit
More information about the freebsd-ports
mailing list