[sldev] building 1.15.
Erik Anderson
odysseus654 at gmail.com
Sun May 13 19:07:43 PDT 2007
I've never compiled the SL client so I'm not going to give you a definitive
answer, but on the surface this does sound like an include or #define issue.
And yes the compiler can say that something is a struct and yet describe it
as undefined. It is perfectly legal to say something like the following:
enum someEnum;
struct someStruct;
class someClass;
These statements don't actually describe what they are pointing to, they
just declare their existance and general type. The compiler would allow you
to pass any variable described as one of these types into a function (by a
pointer reference), but the moment you actually need to do something with
them it will give an error unless it has the complete description of the
struct available to it at that time. This is to prevent requiring every .h
file (and every module that includes those .h files) to need to know every
struct that any of its functions allow as a parameter and simplifies the
dependancy map a bit.
On 5/13/07, Alan Grimes <agrimes at speakeasy.net> wrote:
>
> Attempting to do a regression check on the graphics glitches I saw with
> the SVN sources, I get this error from 1.15.
>
> Anyone know what causes this? the error message doesn't make any
> sense... How can it say the object is undefined and then say it's a
> struct.... There are only 2 or 3 structs in the entire project...
> so it is definitely pulling this struct thing out of its ass...
>
> All headers look like they're in order. =\
>
> ############################################
>
> atg at leenooks ~/source/SL/linden/indra $ ./build
> scons: Reading SConscript files ...
> Building client 1.15.0.2 on i686-linux (release)
> No CCACHE_DIR set.
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `lib_release_client/i686-linux/libllcommon.a' is up to date.
> scons: `lib_release_client/i686-linux/libllmath.a' is up to date.
> scons: `lib_release_client/i686-linux/libllmessage.a' is up to date.
> scons: `lib_release_client/i686-linux/libllvfs.a' is up to date.
> scons: `lib_release_client/i686-linux/libllimage.a' is up to date.
> scons: `lib_release_client/i686-linux/libllinventory.a' is up to date.
> scons: `lib_release_client/i686-linux/libllcharacter.a' is up to date.
> scons: `lib_release_client/i686-linux/libllprimitive.a' is up to date.
> scons: `lib_release_client/i686-linux/libllrender.a' is up to date.
> scons: `lib_release_client/i686-linux/libllwindow.a' is up to date.
> scons: `lib_release_client/i686-linux/libllxml.a' is up to date.
> bison -v -d -o
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/lscript/lscript_compile/indra.y.c
> lscript/lscript_compile/indra.y
> lscript/lscript_compile/indra.y:93.33-45: warning: symbol STATE_DEFAULT
> redeclared
> lscript/lscript_compile/indra.y: conflicts: 44 reduce/reduce
> scons: `lib_release_client/i686-linux/liblscript.a' is up to date.
> scons: `linux_crash_logger/linux-crash-logger-i686-bin-globalsyms' is up
> to date.
> scons: `lib_release_client/i686-linux/libllaudio.a' is up to date.
> scons: `lib_release_client/i686-linux/libllmedia.a' is up to date.
> scons: `lib_release_client/i686-linux/libllui.a' is up to date.
> scons: `lib_release_client/i686-linux/libllimagej2coj.a' is up to date.
> g++ -o
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterchat.o
> -c -pipe -Wall -Wno-trigraphs -ggdb -DLL_USE_KDU=0 -falign-loops=16
> -fno-math-errno -fexceptions -fsigned-char -f
> no-strict-aliasing -ffast-math -DLL_MESA_HEADLESS=0 -DLL_MESA=0
> -DLL_LINUX=1 -DAPPID=secondlife -DLL_SDL=1 -DLL_X11=1 -DLL_GTK=1
> -DLL_LIBXUL_ENABLED=0 -O2 -DNDEBUG -DLL_RELEASE=1 -Illcommon -Illmath
> -Illwindow -
> Illaudio -Illcharacter -Illdatabase -Illhavok -Illimage -Illinventory
> -Illmedia -Illmessage -Illprimitive -Illrender -Illscene -Illui -Illvfs
> -Illwindow -Illxml -Ilscript -I/home/atg/source/SL/linden/libraries/i
> nclude -I/home/atg/source/SL/linden/libraries/include/havok
> -I/home/atg/source/SL/linden/libraries/i686-linux/include
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0
> /include -I/usr/include/pango-1.0 -I/usr/include/cairo
> -I/usr/include/atk-1.0
> -I/home/atg/source/SL/linden/libraries/i686-linux/include/ELFIO
> -I/usr/include/freetype2 /tmp/atg/home/atg/source/SL/linden/indra/i68
> 6-linux-client-release/newview/llfloaterchat.cpp
> g++ -o
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.o
> -c -pipe -Wall -Wno-trigraphs -ggdb -DLL_USE_KDU=0 -falign-loops=16
> -fno-math-errno -fexceptions -fsigned-char -f
> no-strict-aliasing -ffast-math -DLL_MESA_HEADLESS=0 -DLL_MESA=0
> -DLL_LINUX=1 -DAPPID=secondlife -DLL_SDL=1 -DLL_X11=1 -DLL_GTK=1
> -DLL_LIBXUL_ENABLED=0 -O2 -DNDEBUG -DLL_RELEASE=1 -Illcommon -Illmath
> -Illwindow -
> Illaudio -Illcharacter -Illdatabase -Illhavok -Illimage -Illinventory
> -Illmedia -Illmessage -Illprimitive -Illrender -Illscene -Illui -Illvfs
> -Illwindow -Illxml -Ilscript -I/home/atg/source/SL/linden/libraries/i
> nclude -I/home/atg/source/SL/linden/libraries/include/havok
> -I/home/atg/source/SL/linden/libraries/i686-linux/include
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0
> /include -I/usr/include/pango-1.0 -I/usr/include/cairo
> -I/usr/include/atk-1.0
> -I/home/atg/source/SL/linden/libraries/i686-linux/include/ELFIO
> -I/usr/include/freetype2 /tmp/atg/home/atg/source/SL/linden/indra/i68
> 6-linux-client-release/newview/llfloaterhtml.cpp
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:
> In constructor 'LLFloaterHtml::LLFloaterHtml()':
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:67:
> error: invalid use of undefined type 'struct LLWebBrowserCtrl'
> llui/lluictrlfactory.h:64: error: forward declaration of 'struct
> LLWebBrowserCtrl'
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:70:
> error: invalid use of undefined type 'struct LLWebBrowserCtrl'
> llui/lluictrlfactory.h:64: error: forward declaration of 'struct
> LLWebBrowserCtrl'
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:74:
> error: invalid use of undefined type 'struct LLWebBrowserCtrl'
> llui/lluictrlfactory.h:64: error: forward declaration of 'struct
> LLWebBrowserCtrl'
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:
> In destructor 'virtual LLFloaterHtml::~LLFloaterHtml()':
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:87:
> error: invalid use of undefined type 'struct LLWebBrowserCtrl'
> llui/lluictrlfactory.h:64: error: forward declaration of 'struct
> LLWebBrowserCtrl'
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:
> In member function 'void LLFloaterHtml::show(LLString)':
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:108:
> error: invalid use of undefined type 'struct LLWebBrowserCtrl'
> llui/lluictrlfactory.h:64: error: forward declaration of 'struct
> LLWebBrowserCtrl'
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:
> In member function 'virtual void
> LLFloaterHtml::onClickLinkSecondLife(const LLWebBrowserCtrlEvent&)':
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:146:
> error: 'gViewerHtmlHelp' was not declared in this scope
>
> /tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.cpp:152:
> error: invalid use of undefined type 'struct LLWebBrowserCtrl'
> llui/lluictrlfactory.h:64: error: forward declaration of 'struct
> LLWebBrowserCtrl'
> scons: ***
>
> [/tmp/atg/home/atg/source/SL/linden/indra/i686-linux-client-release/newview/llfloaterhtml.o]
> Error 1
> scons: building terminated because of errors.
> atg at leenooks ~/source/SL/linden/indra $
>
> #######################################
>
> --
> Opera: Sing it loud! :o( )>-<
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> /index.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20070513/f84f2db8/attachment.htm
More information about the SLDev
mailing list