[Helix-server-dev] Helix Server_11_1 Compile Errors on Ubuntu
Ali Tekeoglu aliteke at gmail.comOk, I've uploaded "build.out" to the following address; http://melis.cs.utsa.edu/helix/build.out Thank you... --ali On Fri, Oct 31, 2008 at 4:42 PM, Jamie Gordon <jgordon at real.com> wrote: > The actual compiler output is in the build.out, that will show what > the errors are rather than just which modules failed. > With common/system failing to build, that will keep pretty much > all the .so and exes from building, since they link it, so that should > be why you have so many modules failing. > > Jamie > > Ali Tekeoglu wrote: > >> Hi, >> I've changed my linux2.pcf file to the following; >> -------------------------------------------------- >> //project.AddSources("platform/unix/pthreadthreads.cpp", >> // "platform/unix/UnixThreads.cpp") >> >> project.AddSources("platform/unix/UnixThreads.cpp") >> >> if not project.BuildOption('nodll'): >> project.AddSources("platform/unix/linux_dll.cpp") >> >> project.AddIncludes("pub/platform/unix") >> -------------------------------------------------- >> >> Do I need to delete the last line? >> (project.AddIncludes("pub/platform/unix")) >> Still same 21 of 72 modules failed error.... >> >> Thank you... >> >> --ali >> >> On Fri, Oct 31, 2008 at 1:32 PM, Dean Collins <dcollins at real.com <mailto: >> dcollins at real.com>> wrote: >> >> The server does not use this code, it can be removed from the build. >> Threading and mutex protection is handled in a different manner >> in the server. >> >> Since this is a server-specific branch, you can just do >> something like this, then rebuild: >> >> Index: common/system/linux2.pcf >> =================================================================== >> RCS file: /cvsroot/common/system/linux2.pcf,v >> retrieving revision 1.6 >> diff -u -r1.6 linux2.pcf >> --- common/system/linux2.pcf 6 Jul 2007 20:41:55 -0000 1.6 >> +++ common/system/linux2.pcf 31 Oct 2008 18:21:52 -0000 >> @@ -49,8 +49,7 @@ >> # ***** END LICENSE BLOCK ***** >> # >> >> -project.AddSources("platform/unix/pthreadthreads.cpp", >> - "platform/unix/UnixThreads.cpp") >> +project.AddSources("platform/unix/UnixThreads.cpp") >> >> if not project.BuildOption('nodll'): >> project.AddSources("platform/unix/linux_dll.cpp") >> >> >> Dean >> >> On Fri, Oct 31, 2008 at 11:02:22AM -0700, Greg Wright wrote: >> > I don't work on the server and so I don't know how old that >> > branch is. But, for the client we have had to make changes >> > recently in that module to support modern versions of gcc. >> > something like: >> > >> > >> > -struct HXsem_t : public sem_t >> > -{ >> > - char padding[64]; >> > -}; >> > +typedef sem_t HXsem_t; >> > >> > That was a pretty old change though. >> > >> > Can you take a look at >> common/system/pub/platform/unix/pthreadthread.h? >> > --greg. >> > >> > >> > Ali Tekeoglu wrote: >> >> Hi, >> >> Besides gcc-3.4, tried compiling with gcc-3.3, gcc-4.1 and >> gcc-4.2, and >> >> corresponding g++ versions, however, they all gave the same errors. >> >> >> >> compiled with --verbose option to see more details of errors; >> >> >> >> In file included from platform/unix/pthreadthreads.cpp:60: >> >> pub/platform/unix/pthreadthreads.h:106: error: base type `sem_t' >> fails to >> >> be a struct or class type >> >> platform/unix/pthreadthreads.cpp: In member function `virtual >> HX_RESULT >> >> HXPthreadMutex::_Lock()': >> >> platform/unix/pthreadthreads.cpp:162: warning: unused variable >> 'nResult' >> >> platform/unix/pthreadthreads.cpp: In member function `virtual >> HX_RESULT >> >> HXPthreadMutex::_Unlock()': >> >> platform/unix/pthreadthreads.cpp:215: warning: unused variable >> 'nResult' >> >> platform/unix/pthreadthreads.cpp: In constructor >> >> `HXPthreadSemaphore::HXPthreadSemaphore(UINT32)': >> >> platform/unix/pthreadthreads.cpp:395: error: cannot convert >> `HXsem_t*' to >> >> `sem_t*' for argument `1' to `int sem_init(sem_t*, int, unsigned >> int)' >> >> platform/unix/pthreadthreads.cpp: In destructor `virtual >> >> HXPthreadSemaphore::~HXPthreadSemaphore()': >> >> platform/unix/pthreadthreads.cpp:405: error: cannot convert >> `HXsem_t*' to >> >> `sem_t*' for argument `1' to `int sem_destroy(sem_t*)' >> >> platform/unix/pthreadthreads.cpp: In member function `virtual >> HX_RESULT >> >> HXPthreadSemaphore::_Post()': >> >> platform/unix/pthreadthreads.cpp:413: error: cannot convert >> `HXsem_t*' to >> >> `sem_t*' for argument `1' to `int sem_post(sem_t*)' >> >> platform/unix/pthreadthreads.cpp: In member function `virtual >> HX_RESULT >> >> HXPthreadSemaphore::_Wait()': >> >> platform/unix/pthreadthreads.cpp:426: error: cannot convert >> `HXsem_t*' to >> >> `sem_t*' for argument `1' to `int sem_wait(sem_t*)' >> >> platform/unix/pthreadthreads.cpp: In member function `virtual >> HX_RESULT >> >> HXPthreadSemaphore::_TryWait()': >> >> platform/unix/pthreadthreads.cpp:435: error: cannot convert >> `HXsem_t*' to >> >> `sem_t*' for argument `1' to `int sem_trywait(sem_t*)' >> >> platform/unix/pthreadthreads.cpp: In member function `virtual >> HX_RESULT >> >> HXPthreadSemaphore::_GetValue(int*)': >> >> platform/unix/pthreadthreads.cpp:492: error: cannot convert >> `HXsem_t*' to >> >> `sem_t*' for argument `1' to `int sem_getvalue(sem_t*, int*)' >> >> make: *** [rel/obj/platform/unix/pthreadthreads.o] Error 1 >> >> Time used: 0.54 seconds >> >> ERROR: UNIXCompile(common/system) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make[1]: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/hxxml.so'. Stop. >> >> make[1]: Leaving directory >> `/home/tekeoglu/source/helix/common/lang/xml' >> >> make: *** [copy] Error 2 >> >> Time used: 12.80 seconds >> >> ERROR: UNIXCompile(common/lang/xml) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../../common/system/rel/syslib.a', >> >> needed by `rel/ppvallow.so'. Stop. >> >> Time used: 3.68 seconds >> >> ERROR: UNIXCompile(server/access/auth/ppvallow) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/authmgr.so'. Stop. >> >> Time used: 2.81 seconds >> >> ERROR: UNIXCompile(common/auth/authmgr) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make[1]: *** No rule to make target >> `../../common/system/rel/syslib.a', >> >> needed by `rel/hxsdp.so'. Stop. >> >> make[1]: Leaving directory >> `/home/tekeoglu/source/helix/protocol/sdp' >> >> make: *** [copy] Error 2 >> >> Time used: 5.14 seconds >> >> ERROR: UNIXCompile(protocol/sdp) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../common/system/rel/syslib.a', >> >> needed by `rel/smplfsys.so'. Stop. >> >> Time used: 1.75 seconds >> >> ERROR: UNIXCompile(filesystem/local) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/tmplgpln.so'. Stop. >> >> Time used: 11.32 seconds >> >> ERROR: UNIXCompile(server/log/tmplgpln) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/adminfs.so'. Stop. >> >> Time used: 9.01 seconds >> >> ERROR: UNIXCompile(server/fs/adminfs) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/shelfsys.so'. Stop. >> >> Time used: 0.68 seconds >> >> ERROR: UNIXCompile(server/fs/shell) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/smlfformat.so'. Stop. >> >> Time used: 1.15 seconds >> >> ERROR: UNIXCompile(datatype/smil/fileformat) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> >> `../../../../../common/system/rel/syslib.a', needed by >> `rel/qtbcplin.so'. >> >> Stop. >> >> Time used: 4.81 seconds >> >> ERROR: UNIXCompile(server/broadcast/transport/rtp/recv) ERROR: >> Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/mp3fformat.so'. Stop. >> >> Time used: 1.46 seconds >> >> ERROR: UNIXCompile(datatype/mp3/fileformat) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/slicensepln.so'. Stop. >> >> Time used: 1.12 seconds >> >> ERROR: UNIXCompile(server/license/slicensepln) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/rmfformat.so'. Stop. >> >> Time used: 0.73 seconds >> >> ERROR: UNIXCompile(datatype/rm/fileformat) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../common/system/rel/syslib.a', >> >> needed by `rel/ramplin.so'. Stop. >> >> Time used: 1.05 seconds >> >> ERROR: UNIXCompile(server/appext/ramgen) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../common/system/rel/syslib.a', >> >> needed by `rel/httpfsys.so'. Stop. >> >> Time used: 6.55 seconds >> >> ERROR: UNIXCompile(filesystem/http) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> `../../../../common/system/rel/syslib.a', >> >> needed by `rel/pplyplin.so'. Stop. >> >> Time used: 10.60 seconds >> >> ERROR: UNIXCompile(server/broadcast/app/scalable-mcast) ERROR: >> Make failed. >> >> . >> >> . >> >> . >> >> _main.cpp:80: error: `gettid' has not been declared >> >> _main.cpp:91: error: expected constructor, destructor, or type >> conversion >> >> before "typedef" >> >> _main.cpp:91: error: expected constructor, destructor, or type >> conversion >> >> before ';' token >> >> _main.cpp:99: error: `CrashStateType' does not name a type >> >> _main.cpp:1235: error: `gettid' was not declared in this scope >> >> _main.cpp:2369: error: `gettid' was not declared in this scope >> >> _main.cpp:2369: warning: unused variable 'gettid' >> >> _main.cpp:2408: error: `gettid' was not declared in this scope >> >> _main.cpp:2408: warning: unused variable 'gettid' >> >> _main.cpp:2404: warning: unused variable 'ptr' >> >> _main.cpp: In function `void server_fault(int, siginfo_t*, >> ucontext_t*)': >> >> _main.cpp:2586: error: `g_eTLSCrashState' was not declared in >> this scope >> >> _main.cpp:2586: error: `NO_FAULT' was not declared in this scope >> >> _main.cpp:2588: error: `IN_FAULT_HANDLER' was not declared in >> this scope >> >> _main.cpp:2588: warning: unused variable 'IN_FAULT_HANDLER' >> >> _main.cpp:2619: error: `IN_FAULT_HANDLER' was not declared in >> this scope >> >> _main.cpp:2621: error: `IN_FAULT_DOUBLE_FAULT_HANDLER' was not >> declared in >> >> this scope >> >> _main.cpp:2621: warning: unused variable >> 'IN_FAULT_DOUBLE_FAULT_HANDLER' >> >> _main.cpp:2642: error: `IN_FAULT_DOUBLE_FAULT_HANDLER' was not >> declared in >> >> this scope >> >> _main.cpp:2619: warning: unused variable 'IN_FAULT_HANDLER' >> >> _main.cpp: In member function `virtual HX_RESULT >> >> RSSCoreStatsReport::Report(IHXLogOutput*, BOOL, HXTimeval)': >> >> _main.cpp:5794: error: `gettid' was not declared in this scope >> >> make: *** [rel/obj/_main.o] Error 1 >> >> Time used: 3.69 seconds >> >> ERROR: UNIXCompile(server/engine/core) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make: *** No rule to make target >> >> `../../../../server/engine/core/rel/servenglib.a', needed by >> >> `rel/hlxserverplus'. Stop. >> >> Time used: 0.17 seconds >> >> ERROR: UNIXCompile(server/engine/bin/plus) ERROR: Make failed. >> >> . >> >> . >> >> . >> >> make[1]: *** No rule to make target >> >> `../../../../common/system/rel/syslib.a', needed by >> `rel/postinst'. Stop. >> >> make[1]: Leaving directory >> >> `/home/tekeoglu/source/helix/server/installer/hlxserver/plus' >> >> make: *** [all] Error 2 >> >> Time used: 1.55 seconds >> >> ERROR: UNIXCompile(server/installer/hlxserver/plus) ERROR: Make >> failed. >> >> . >> >> . >> >> . >> >> >> >> >> >> I am not sure what can i do in this situation, >> >> Any suggestions? >> >> Thank you... >> >> >> >> --ali >> >> >> >> >> >> >> >> ------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> >> Helix-server-dev mailing list >> >> Helix-server-dev at helixcommunity.org >> <mailto:Helix-server-dev at helixcommunity.org> >> >> http://lists.helixcommunity.org/mailman/listinfo/helix-server-dev >> > >> > >> > _______________________________________________ >> > Helix-server-dev mailing list >> > Helix-server-dev at helixcommunity.org >> <mailto:Helix-server-dev at helixcommunity.org> >> > http://lists.helixcommunity.org/mailman/listinfo/helix-server-dev >> >> -- >> Dean Collins >> Server Technical Lead, RealNetworks, Inc. -- >> http://www.realnetworks.com >> Helix Server Project Owner -- http://helix-server.helixcommunity.org >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Helix-server-dev mailing list >> Helix-server-dev at helixcommunity.org >> http://lists.helixcommunity.org/mailman/listinfo/helix-server-dev >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.helixcommunity.org/pipermail/helix-server-dev/attachments/20081031/bfb87832/attachment-0001.html