Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compilation Problem - collect2: ld returned 1 exit status
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
biggyL
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 120
Location: Israel

PostPosted: Tue May 16, 2006 7:40 am    Post subject: Compilation Problem - collect2: ld returned 1 exit status Reply with quote

Hello All,

I"m trying to install Darwin Streaming Server on my newly installed Sparc machine.
I'm using ebuild from http://bugs.gentoo.org/show_bug.cgi?id=84011.

This ebuild compiles fine under x86.

But trying to install in on my "Gentoo on Sparc" machine fails.
It seems some architecture problem (may be some gcc flags) I can't resolve by myself.

This is what I did:
I'm doing the installation step by step:

a) # ebuild /usr/local/portage/www-servers/darwin-streaming-server/darwin-streaming-server-5.5.1.1.ebuild unpack
b) # cd /var/tmp/portage/darwin-streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source
1) Add these lines to Buildit file:
Linux.sparc64)
CPLUS=gcc
CCOMP=gcc
LINKER='gcc'
MAKE=make

COMPILER_FLAGS=-D__sparc__
INCLUDE_FLAG="-include"

CORE_LINK_LIBS="-lpthread -ldl -lm -lcrypt"

SHARED=-shared
MODULE_LIBS=

if [ -f /usr/include/socketbits.h ]; then
NEED_SOCKETBITS=1
export NEED_SOCKETBITS
fi
;;

2) Add these lines to APIStubLib/BuildAPIStubLib file:
Linux.sparc64)
echo "Configuring for a Linux PPC platform"
CPLUS='gcc'
CCOMP=gcc
LINKER='gcc'
MACHDEFINES=-D__sparc__
LIB="ar -r "
if [ -f /usr/include/socketbits.h ]; then
NEED_SOCKETBITS=1
export NEED_SOCKETBITS
fi
;;

3) Add these lines to PlaylistBroadcaster.tproj/BuildPlaylist file:
Linux.sparc64)
CPLUS=gcc
CCOMP=gcc
LINKER='gcc'
MAKE=make

COMPILER_FLAGS=-D__sparc__
INCLUDE_FLAG="-include"

CORE_LINK_LIBS="-lpthread -ldl -lm -lcrypt"

SHARED=-shared
MODULE_LIBS=

if [ -f /usr/include/socketbits.h ]; then
NEED_SOCKETBITS=1
export NEED_SOCKETBITS
fi
;;

4) Add these lines to StreamingProxy.tproj/BuildProxy file:
Linux.sparc64)
echo "Configuring for a Linux PPC platform"
CPLUS='gcc'
CCOMP=gcc
LINKER='gcc'
MACHDEFINES=-D__sparc__
LIB="ar -r "
if [ -f /usr/include/socketbits.h ]; then
NEED_SOCKETBITS=1
export NEED_SOCKETBITS
fi
;;

5) Add these lines to Platformheader.h:

#elif __sparc__

#define USE_ATOMICLIB 0
#define MACOSXEVENTQUEUE 0
#define __PTHREADS__ 1
#define __PTHREADS_MUTEXES__ 1
#define ALLOW_NON_WORD_ALIGN_ACCESS 1
#define USE_THREAD 0 //Flag used in QTProxy
#define THREADING_IS_COOPERATIVE 0
#define USE_THR_YIELD 0
#define kPlatformNameString "LinuxSparc"
#define EXPORT
#define _REENTRANT 1


6) Add "defined(__sparc__)" to the following files (to 224, 2089, 224 lines accordingly):
Server.tproj/main.cpp
PlaylistBroadcaster.tproj/PlaylistBroadcaster.cpp
MP3Broadcaster/BroadcasterMain.cpp

c) # ebuild /usr/local/portage/www-servers/darwin-streaming-server/darwin-streaming-server-5.5.1.1.ebuild compile

I'm starting to compile, compilation seems to run for a while, throwing some strange "collect2: ld returned 1 exit status" and exit (here is a snap of some last lines):

../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSFileSource.o): In function `FileMap::DeleteMap()':
/var/tmp/portage/darwin-streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp:330: undefined reference to `operator delete(void*)'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSFileSource.o): In function `~FileBlockBuffer':
/var/tmp/portage/darwin-streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp:112: undefined reference to `operator delete(void*)'
/var/tmp/portage/darwin-streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp:112: undefined reference to `operator delete(void*)'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a( OSFileSource.o): In function `FileBlockBuffer::AllocateBuffer(unsigned long)':
/var/tmp/portage/darwin-streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp:123: undefined reference to `operator new[](unsigned int)'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSFileSource.o): In function `FileBlockPool::GetBufferElement(unsigned long)':
/var/tmp/portage/darwin-streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp:163: undefined reference to `operator new(unsigned int)'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSFileSource.o): In function `FileBlockPool::DeleteBlockPool()':
/var/tmp/portage/darwin-streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp:194: undefined reference to `operator delete(void*)'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSFileSource.o): In function `FileMap::AllocateBufferMap(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long long, unsigned long)':
/var/tmp/portage/darwin- streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp:246: undefined reference to `operator new[](unsigned int)'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSFileSource.o ): In function `FileMap::DeleteOldBuffs()':
/var/tmp/portage/darwin-streaming-server-5.5.1.1/work/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp:261: undefined reference to `operator delete(void*)'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSFileSource.o):(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSQueue.o):(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSCond.o):(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [QTTrackInfo] Error 1

My emerge info:
Code:

# emerge info
Portage 2.0.54-r2 (default-linux/sparc/sparc64/2006.0/2.4, gcc-3.4.6, glibc-2.3.6-r3, 2.6.17-rc3-mm1 sparc64)
=================================================================
System uname: 2.6.17-rc3-mm1 sparc64 sun4u
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de http://mirror.hamakor.org.il/pub/mirrors/gentoo/ http://ftp.physics.auth.gr/pub/mirrors/gentoo-portage/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="sparc apache2 arts avi berkdb bidi bitmap-fonts bzip2 cli crypt cups dba dlloader dri dvd eds encode esd expat fbcon foomaticdb fortran gcc64 gd gdbm gif gstreamer gtk2 imlib jpeg libwww mad mikmod motif mpeg ncurses nls ogg opengl oss pam pcre pdflib perl png python readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xmms xorg xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS



Could someone make any suggestion/help to compile DSS on Gentoo Sparc machine?
Back to top
View user's profile Send private message
bkunlimited
l33t
l33t


Joined: 18 Jun 2004
Posts: 672

PostPosted: Tue May 16, 2006 8:36 am    Post subject: Reply with quote

use g++ instead of gcc in your makefile
Back to top
View user's profile Send private message
biggyL
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 120
Location: Israel

PostPosted: Tue May 16, 2006 8:42 am    Post subject: Reply with quote

I tried to use g++,

Code:

CPLUS=g++
CCOMP=g++
LINKER='g++'


But still no luck compiling.

Compilation running for a while, throwing:
Code:

StrPtrLen.cpp: In member function `Bool16 StrPtrLen::NumEqualIgnoreCase(const char*, UInt32) const':
StrPtrLen.cpp:143: warning: array subscript has type `char'
StrPtrLen.cpp:143: warning: array subscript has type `char'
StrPtrLen.cpp: In member function `Bool16 StrPtrLen::EqualIgnoreCase(const char*, UInt32) const':
StrPtrLen.cpp:156: warning: array subscript has type `char'
StrPtrLen.cpp:156: warning: array subscript has type `char'
StrPtrLen.cpp: In member function `void StrPtrLen::PrintStr()':
StrPtrLen.cpp:306: warning: array subscript has type `char'
StrPtrLen.cpp: In member function `void StrPtrLen::PrintStrEOL(char*, char*)':
StrPtrLen.cpp:336: warning: array subscript has type `char'
UDPSocketPool.cpp: In member function `UDPSocketPair* UDPSocketPool::CreateUDPSocketPair(UInt32, UInt16)':
UDPSocketPool.cpp:112: warning: comparison is always true due to limited range of data type
In file included from SDPUtils.cpp:26:
SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
SDPUtils.h:92: warning: array subscript has type `char'
SDPUtils.cpp: In member function `void SDPContainer::Parse()':
SDPUtils.cpp:137: warning: array subscript has type `char'
ar: creating libCommonUtilitiesLib.a
ar: creating libQTFileLib.a
ar: creating libQTFileExternalLib.a
Server.tproj/QTSSDataConverter.cpp: In static member function `static QTSS_Error QTSSDataConverter::ConvertCHexStringToBytes(char*, void*, UInt32*)':
Server.tproj/QTSSDataConverter.cpp:270: warning: array subscript has type `char'
Server.tproj/QTSSDataConverter.cpp:272: warning: array subscript has type `char'
In file included from APICommonCode/SDPSourceInfo.cpp:40:
CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
In file included from APIModules/QTSSFileModule/QTSSFileModule.cpp:48:
CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
In file included from APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp:59:
CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp: In function `void DoAnnounceAddRequiredSDPLines(QTSS_StandardRTSP_Params*, ResizeableStringFormatter*, char*)':
APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp:847: warning: array subscript has type `char'
In file included from APIModules/QTSSReflectorModule/RTSPSourceInfo.cpp:42:
CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.6/../../../../sparc-unknown-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.6/../../../../sparc-unknown-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.6/../../../../sparc-unknown-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.6/../../../../sparc-unknown-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.6/../../../../sparc-unknown-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
proxy.c: In function `void service_session(rtsp_session*)':
proxy.c:1081: error: invalid conversion from `void*' to `char*'
proxy.c:1146: error: invalid conversion from `void*' to `char*'
proxy.c:1447: error: invalid conversion from `void*' to `char*'
proxy.c: In function `void read_config()':
proxy.c:1781: warning: converting of negative value `-0x000000001' to `in_addr_t'
proxy.c:1789: error: invalid conversion from `void*' to `in_addr*'
proxy.c:1789: error:   initializing argument 2 of `int inet_aton(const char*, in_addr*)'
make: *** [proxy.o] Error 1
QTSSPasswd.cpp:422: warning: 'char* SetTempPath(char*, int, char*, int, char)' defined but not used
In file included from playlist_SDPGen.cpp:31:
../CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
../CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
In file included from BroadcasterSession.cpp:38:
../CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
../CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'


Here are the last 50 lines of compilation messages before it stops:
Code:

g++ -c -o ../CommonUtilitiesLib/getopt.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib ../CommonUtilitiesLib/getopt.c
g++ -c -o BCasterTracker.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib BCasterTracker.cpp
g++ -c -o BroadcastLog.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib BroadcastLog.cpp
g++ -c -o NoRepeat.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib NoRepeat.cpp
g++ -c -o PickerFromFile.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib PickerFromFile.cpp
g++ -c -o PlaylistBroadcaster.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib PlaylistBroadcaster.cpp
g++ -c -o PlaylistPicker.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib PlaylistPicker.cpp
g++ -c -o playlist_broadcaster.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib playlist_broadcaster.cpp
g++ -c -o playlist_elements.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib playlist_elements.cpp
g++ -c -o playlist_lists.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib playlist_lists.cpp
g++ -c -o playlist_parsers.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib playlist_parsers.cpp
g++ -c -o playlist_SDPGen.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib playlist_SDPGen.cpp
g++ -c -o playlist_SimpleParse.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib playlist_SimpleParse.cpp
g++ -c -o playlist_utils.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib playlist_utils.cpp
g++ -c -o PLBroadcastDef.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib PLBroadcastDef.cpp
g++ -c -o BroadcasterSession.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3 -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../RTSPClientLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../RTPMetaInfoLib BroadcasterSession.cpp
g++ -o PlaylistBroadcaster ../CommonUtilitiesLib/daemon.o ../CommonUtilitiesLib/getopt.o BCasterTracker.o BroadcastLog.o NoRepeat.o PickerFromFile.o PlaylistBroadcaster.o PlaylistPicker.o playlist_broadcaster.o playlist_elements.o playlist_lists.o playlist_parsers.o playlist_SDPGen.o playlist_SimpleParse.o playlist_utils.o PLBroadcastDef.o ../APICommonCode/QTSSRollingLog.o ../RTSPClientLib/ClientSocket.o ../RTSPClientLib/RTSPClient.o BroadcasterSession.o ../APICommonCode/SDPSourceInfo.o ../APICommonCode/SourceInfo.o ../OSMemoryLib/OSMemory.o ../SafeStdLib/InternalStdLib.o ../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../CommonUtilitiesLib -L../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib -lQTFileExternalLib ../CommonUtilitiesLib/libCommonUtilitiesLib.a ../QTFileLib/libQTFileExternalLib.a
Building MP3Broadcaster for Linux.sparc64 with g++
g++ -c -o BroadcasterMain.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3  -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../PlaylistBroadcaster.tproj BroadcasterMain.cpp
g++ -c -o MP3Broadcaster.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3  -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../PlaylistBroadcaster.tproj MP3Broadcaster.cpp
g++ -c -o MP3BroadcasterLog.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3  -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../PlaylistBroadcaster.tproj MP3BroadcasterLog.cpp
g++ -c -o MP3FileBroadcaster.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3  -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../PlaylistBroadcaster.tproj MP3FileBroadcaster.cpp
g++ -c -o MP3MetaInfoUpdater.o  -D__sparc__ -include ../PlatformHeader.h -include ../revision.h -g -Wall -D__USE_MAX_PRINTF__ -O3  -I. -I.. -I../QTFileLib -I../OSMemoryLib -I../APIStubLib -I../APICommonCode -I../CommonUtilitiesLib -I../PlaylistBroadcaster.tproj MP3MetaInfoUpdater.cpp
g++ -o MP3Broadcaster ../CommonUtilitiesLib/daemon.o ../CommonUtilitiesLib/getopt.o BroadcasterMain.o MP3Broadcaster.o MP3BroadcasterLog.o MP3FileBroadcaster.o MP3MetaInfoUpdater.o ../PlaylistBroadcaster.tproj/NoRepeat.o ../PlaylistBroadcaster.tproj/PickerFromFile.o ../PlaylistBroadcaster.tproj/PlaylistPicker.o ../APICommonCode/QTSSRollingLog.o ../SafeStdLib/InternalStdLib.o ../OSMemoryLib/OSMemory.o -D__sparc__ -L../CommonUtilitiesLib -L../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib ../CommonUtilitiesLib/libCommonUtilitiesLib.a
Building QTFileTools for Linux.sparc64 with g++
Building QTBroadcaster for Linux.sparc64 with g++
g++ -c -o QTBroadcaster.o  -D__sparc__ -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTBroadcaster.cpp
g++ -o QTBroadcaster  QTBroadcaster.o ../../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../../CommonUtilitiesLib -L../../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib  -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a
Building QTFileInfo for Linux.sparc64 with g++
g++ -c -o QTFileInfo.o  -D__sparc__ -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTFileInfo.cpp
g++ -o QTFileInfo  QTFileInfo.o ../../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../../CommonUtilitiesLib -L../../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib  -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a
Building QTFileTest for Linux.sparc64 with g++
g++ -c -o QTFileTest.o  -D__sparc__ -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTFileTest.cpp
g++ -o QTFileTest  QTFileTest.o ../../SafeStdLib/InternalStdLib.o ../../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../../CommonUtilitiesLib -L../../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib  -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a ../../QTFileLib/libQTFileExternalLib.a
Building QTRTPFileTest for Linux.sparc64 with g++
g++ -c -o QTRTPFileTest.o  -D__sparc__ -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTRTPFileTest.cpp
g++ -o QTRTPFileTest  QTRTPFileTest.o ../../SafeStdLib/InternalStdLib.o ../../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../../CommonUtilitiesLib -L../../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib  -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a ../../QTFileLib/libQTFileExternalLib.a
Building QTRTPGen for Linux.sparc64 with g++
g++ -c -o QTRTPGen.o  -D__sparc__ -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTRTPGen.cpp
g++ -o QTRTPGen  QTRTPGen.o ../../SafeStdLib/InternalStdLib.o ../../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../../CommonUtilitiesLib -L../../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib  -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a ../../QTFileLib/libQTFileExternalLib.a
Building QTSDPGen for Linux.sparc64 with g++
g++ -c -o QTSDPGen.o  -D__sparc__ -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTSDPGen.cpp
g++ -o QTSDPGen  QTSDPGen.o ../../SafeStdLib/InternalStdLib.o ../../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../../CommonUtilitiesLib -L../../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib  -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a ../../QTFileLib/libQTFileExternalLib.a
Building QTSampleLister for Linux.sparc64 with g++
g++ -c -o QTSampleLister.o  -D__sparc__ -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTSampleLister.cpp
g++ -o QTSampleLister  QTSampleLister.o ../../SafeStdLib/InternalStdLib.o ../../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../../CommonUtilitiesLib -L../../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib  -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a ../../QTFileLib/libQTFileExternalLib.a
Building QTTrackInfo for Linux.sparc64 with g++
g++ -c -o QTTrackInfo.o  -D__sparc__ -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTTrackInfo.cpp
g++ -o QTTrackInfo  QTTrackInfo.o ../../SafeStdLib/InternalStdLib.o ../../RTPMetaInfoLib/RTPMetaInfoPacket.o -D__sparc__ -L../../CommonUtilitiesLib -L../../QTFileLib -lpthread -ldl -lm -lcrypt -lCommonUtilitiesLib  -lQTFileExternalLib ../../CommonUtilitiesLib/libCommonUtilitiesLib.a ../../QTFileLib/libQTFileExternalLib.a
>>> md5 src_uri ;-) DarwinStreamingSrvr5.5-Source.tar


Any help please?
Back to top
View user's profile Send private message
bkunlimited
l33t
l33t


Joined: 18 Jun 2004
Posts: 672

PostPosted: Wed May 17, 2006 10:14 am    Post subject: Reply with quote

uups... sorry... looks it uses C++ and C Sources... then you have to set CCOMP=gcc
try if this works
Back to top
View user's profile Send private message
biggyL
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 120
Location: Israel

PostPosted: Wed May 17, 2006 10:30 am    Post subject: Reply with quote

Yeh,

Thanks, I'm already behind that stage:
echo "Configuring for the "$OSNAME" "$HARDWARENAME" platform"
CPLUS=g++
CCOMP=gcc
LINKER='g++'
MAKE=make

COMPILER_FLAGS="-D__sparc__ -fPIC"
INCLUDE_FLAG="-include"

CORE_LINK_LIBS="-lpthread -ldl -lstdc++ -lm -lcrypt"

SHARED=-shared
MODULE_LIBS=

if [ -f /usr/include/socketbits.h ]; then
NEED_SOCKETBITS=1
export NEED_SOCKETBITS
fi
;;

Comiling gives me the following errors and stops:
Code:

StrPtrLen.cpp: In member function `Bool16 StrPtrLen::NumEqualIgnoreCase(const char*, UInt32) const':
StrPtrLen.cpp:143: warning: array subscript has type `char'
StrPtrLen.cpp:143: warning: array subscript has type `char'
StrPtrLen.cpp: In member function `Bool16 StrPtrLen::EqualIgnoreCase(const char*, UInt32) const':
StrPtrLen.cpp:156: warning: array subscript has type `char'
StrPtrLen.cpp:156: warning: array subscript has type `char'
StrPtrLen.cpp: In member function `void StrPtrLen::PrintStr()':
StrPtrLen.cpp:306: warning: array subscript has type `char'
StrPtrLen.cpp: In member function `void StrPtrLen::PrintStrEOL(char*, char*)':
StrPtrLen.cpp:336: warning: array subscript has type `char'
UDPSocketPool.cpp: In member function `UDPSocketPair* UDPSocketPool::CreateUDPSocketPair(UInt32, UInt16)':
UDPSocketPool.cpp:112: warning: comparison is always true due to limited range of data type
In file included from SDPUtils.cpp:26:
SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
SDPUtils.h:92: warning: array subscript has type `char'
SDPUtils.cpp: In member function `void SDPContainer::Parse()':
SDPUtils.cpp:137: warning: array subscript has type `char'
ar: creating libCommonUtilitiesLib.a
ar: creating libQTFileLib.a
ar: creating libQTFileExternalLib.a
Server.tproj/QTSSDataConverter.cpp: In static member function `static QTSS_Error QTSSDataConverter::ConvertCHexStringToBytes(char*, void*, UInt32*)':
Server.tproj/QTSSDataConverter.cpp:270: warning: array subscript has type `char'
Server.tproj/QTSSDataConverter.cpp:272: warning: array subscript has type `char'
In file included from APICommonCode/SDPSourceInfo.cpp:40:
CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
In file included from APIModules/QTSSFileModule/QTSSFileModule.cpp:48:
CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
In file included from APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp:59:
CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp: In function `void DoAnnounceAddRequiredSDPLines(QTSS_StandardRTSP_Params*, ResizeableStringFormatter*, char*)':
APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp:847: warning: array subscript has type `char'
In file included from APIModules/QTSSReflectorModule/RTSPSourceInfo.cpp:42:
CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
QTSSPasswd.cpp:422: warning: 'char* SetTempPath(char*, int, char*, int, char)' defined but not used
In file included from playlist_SDPGen.cpp:31:
../CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
../CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'
In file included from BroadcasterSession.cpp:38:
../CommonUtilitiesLib/SDPUtils.h: In member function `Bool16 SDPContainer::HasLineType(char)':
../CommonUtilitiesLib/SDPUtils.h:92: warning: array subscript has type `char'


I'm lost here :(
Back to top
View user's profile Send private message
bkunlimited
l33t
l33t


Joined: 18 Jun 2004
Posts: 672

PostPosted: Wed May 17, 2006 10:37 am    Post subject: Reply with quote

i can only see warnings in your last post... this can not be the reason why it stops
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum