[sldev] Impossible to build client under MacOS X X.5 (Leopard)
(892 errors after patch)
Lawson English
lenglish5 at cox.net
Tue Nov 13 15:55:44 PST 2007
Lawson English wrote:
> Matthew Wiggins wrote:
>> This occurs because the XCode 3 yacc build step produces an .hpp file
>> rather than the .h that is included by indra.l (indra.l.cpp is
>> generated from this file at build time, and is likely cleaned after
>> compilation, which is why you can't find it on your machine). You can
>> either rename the #include "indra.y.h" to .hpp, or you can add the
>> following to Target 'llcommon' info->Rules->Yacc source files script:
>> if [ -f
>> "${DERIVED_FILES_DIR}/${CURRENT_ARCH}/${INPUT_FILE_BASE}.y.hpp" ];
>> then
>> mv
>> "${DERIVED_FILES_DIR}/${CURRENT_ARCH}/${INPUT_FILE_BASE}.y.hpp"
>> "${DERIVED_FILES_DIR}/${CURRENT_ARCH}/${INPUT_FILE_BASE}.y.h" ;
>> fi
>>
>> Hope this helps,
>>
>> Matthew (Wiggo Linden).
>>
> It has so far. llCommon compiled just fine. However, I got 186
> warnings out of it, though newview project is also compiling without
> complaints.
>
> If it stalls at the end I'll recompile llCommon and let you know what
> the warnings were. Glanced at them but forgot to copy them. Looked
> like it was noting a change in teh output file, which is to be expected.
>
> Lawson
>
Well, darn, it DID have errors but it doesn't seem to be related to the
renamed file issue ( I used the target script solution). Trying it the
other way by renaming the include to indra.y.hpp:
Building target “newview” of project “macview” with configuration
“Development” — (5 errors)
cd /Developer/SL_folder/linden/indra/newview
/Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs
-fpascal-strings -faltivec -fasm-blocks -O0 -mdynamic-no-pic -Werror
-Wreturn-type -Wnon-virtual-dtor -Wformat -Wmissing-braces -Wparentheses
-Wswitch -Wunused-function -Wunused-label -Wunused-parameter
-Wunused-variable -Wunused-value -fmessage-length=0 -mtune=G4
-fvisibility=hidden -fvisibility-inlines-hidden
-Wno-deprecated-declarations -mmacosx-version-min=10.3 -gdwarf-2
"-I/Developer/SL_folder/linden/indra/newview/build/macview.build/Development/newview.build/Second
Life.hmap" -Wmost -Wno-sign-compare -Wno-switch -Winvalid-pch
-F/Developer/SL_folder/linden/indra/newview/build/Development
-I/Developer/SL_folder/linden/indra/newview/build/Development/include
-I../../libraries/ppc-darwin/include -I../../libraries/include
-I../llcommon
-I/Developer/SL_folder/linden/indra/newview/build/macview.build/Development/newview.build/DerivedSources
-DLL_DARWIN=1 -DLL_DEBUG=1 -D_DEBUG -fconstant-cfstrings -ffor-scope
-Wno-reorder -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include
/Developer/SL_folder/linden/indra/newview/build/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/llviewerprecompiledheaders-fosgvaxoczwxafbotxysshuyvzaj/llviewerprecompiledheaders.h
-c /Developer/SL_folder/linden/indra/newview/viewer.cpp -o
/Developer/SL_folder/linden/indra/newview/build/macview.build/Development/newview.build/Objects-normal/ppc/viewer.o
In file included from
/Developer/SL_folder/linden/indra/newview/viewer.cpp:121:
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:44:24:
error: ares/ares.h: No such file or directory
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:290:
error: expected ',' or '...' before '*' token
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:290:
error: ISO C++ forbids declaration of 'hostent' with no type
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:441:
error: 'ares_channel' does not name a type
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h: In
member function 'bool LLQueryResponder::valid() const':
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:496:
error: 'ARES_SUCCESS' was not declared in this scope
In file included from
/Developer/SL_folder/linden/indra/newview/viewer.cpp:121:
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:44:24:
error: ares/ares.h: No such file or directory
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:290:
error: expected ',' or '...' before '*' token
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:290:
error: ISO C++ forbids declaration of 'hostent' with no type
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:441:
error: 'ares_channel' does not name a type
/Developer/SL_folder/linden/indra/newview/../llcommon/llares.h:496:
error: 'ARES_SUCCESS' was not declared in this scope
Build failed (5 errors)
More information about the SLDev
mailing list