undefined reference error while build
Prashant Pandey
prashant3.yishu at gmail.com
Wed Feb 27 12:40:35 PST 2013
Hi,
Thanks for pointing out an error. After correction as pointed out, I did
'make unotools.clean' followed by 'make'. Now,the error is similar to the
one as attached in the pastebin of initial mail. It is:
[build LNK] Library/libflatlo.so
/home/elixir/lo/workdir/
unxlngx6.pro/CxxObject/connectivity/source/drivers/flat/ETable.o: In
function
`connectivity::flat::OFlatTable::impl_fillColumnInfo_nothrow(connectivity::QuotedTokenizedString&,
unsigned short&, unsigned short&, int&, int&, int&, String&, unsigned
short, unsigned short, CharClass const&)':
ETable.cxx:(.text+0xdbd): undefined reference to `String::GetToken(unsigned
short, unsigned short, int&) const'
collect2: ld returned 1 exit status
make[1]: *** [/home/elixir/lo/workdir/
unxlngx6.pro/LinkTarget/Library/libflatlo.so] Error 1
make[1]: *** Waiting for unfinished jobs....
/home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o: In
function `ImplDevFontList::ImplFindByAliasName(rtl::OUString const&,
rtl::OUString const&) const':
outdev3.cxx:(.text+0x1f8b): undefined reference to
`GetNextFontToken(rtl::OUString const&, int&)'
/home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o: In
function `ImplDevFontList::ImplFindByTokenNames(rtl::OUString const&)
const':
outdev3.cxx:(.text+0x21e6): undefined reference to
`GetNextFontToken(rtl::OUString const&, int&)'
/home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o: In
function `ImplDevFontList::ImplFindByFont(FontSelectPattern&, bool,
ImplDirectFontSubstitution*) const':
outdev3.cxx:(.text+0x3d5c): undefined reference to
`GetNextFontToken(rtl::OUString const&, int&)'
outdev3.cxx:(.text+0x44f8): undefined reference to
`GetNextFontToken(rtl::OUString const&, int&)'
outdev3.cxx:(.text+0x46bc): undefined reference to
`GetNextFontToken(rtl::OUString const&, int&)'
/home/elixir/lo/workdir/
unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o:outdev3.cxx:(.text+0x47fa):
more undefined references to `GetNextFontToken(rtl::OUString const&, int&)'
follow
/home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o: In
function `OutputDevice::GetDefaultFont(unsigned short, unsigned short,
unsigned long, OutputDevice const*)':
outdev3.cxx:(.text+0x17316): undefined reference to
`AddTokenFontName(rtl::OUString&, String const&)'
outdev3.cxx:(.text+0x1767c): undefined reference to
`String::GetToken(unsigned short, unsigned short, int&) const'
/home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/window/window.o:
In function `Window::ImplUpdateGlobalSettings(AllSettings&, unsigned char)':
window.cxx:(.text+0x748a): undefined reference to
`String::GetToken(unsigned short, unsigned short, int&) const'
/home/elixir/lo/workdir/
unxlngx6.pro/CxxObject/vcl/unx/generic/printer/ppdparser.o: In function
`psp::PPDParser::getResolutionFromString(String const&, int&, int&) const':
ppdparser.cxx:(.text+0x1156): undefined reference to
`String::GetToken(unsigned short, unsigned short, int&) const'
/home/elixir/lo/workdir/
unxlngx6.pro/CxxObject/vcl/unx/generic/printer/ppdparser.o: In function
`psp::PPDParser::getPPDPrinterName(String const&)':
ppdparser.cxx:(.text+0x4adf): undefined reference to
`String::GetToken(unsigned short, unsigned short, int&) const'
ppdparser.cxx:(.text+0x4b30): undefined reference to
`String::GetToken(unsigned short, unsigned short, int&) const'
/home/elixir/lo/workdir/
unxlngx6.pro/CxxObject/vcl/source/control/combobox.o:combobox.cxx:(.text+0x35bf):
more undefined references to `String::GetToken(unsigned short, unsigned
short, int&) const' follow
collect2: ld returned 1 exit status
make[1]: *** [/home/elixir/lo/workdir/
unxlngx6.pro/LinkTarget/Library/libvcllo.so] Error 1
-----------------------------------------------------------------------
Oh dear - something failed during the build - sorry !
For more help with debugging build errors, please see the section in:
http://wiki.documentfoundation.org/Development
internal build errors:
ERROR: error 512 occurred while making /home/elixir/lo/tail_build/prj
it seems that the error is inside 'tail_build', please re-run build
inside this module to isolate the error and/or test your fix.
-----------------------------------------------------------------------
To rebuild a specific module:
make tail_build.clean # not recommended, this will re-build almost
everything
make tail_build
Thanks
Prashant
On Thu, Feb 28, 2013 at 1:53 AM, Christina Roßmanith
<ChrRossmanith at gmx.de>wrote:
> Hi,
>
> e.g. in your pastebin showing the modifications you still have
> GetNextFontToken declare using String
>
> UNOTOOLS_DLLPUBLIC String GetNextFontToken( const String& rTokenStr,
> xub_StrLen& rIndex );
>
> (line 250). This is in conflict with
>
> -String GetNextFontToken( const String& rTokenStr, xub_StrLen& rIndex )
> +OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex )
>
> (line 466/467)
>
> Maybe "make unotools.clean" prior to "make" helps.
>
> Christina
>
>
> Am 27.02.2013 21:18, schrieb Prashant Pandey:
>
> Hi,
>
> I did 'make' again, and got undefined reference error as something
> different as I got previously. This time it is:
>
> elixir at ubuntu:~/lo$ make
> cd /home/elixir/lo/postprocess && unset MAKEFLAGS && \
> /home/elixir/lo/solenv/bin/build.pl -P4 --all -- -P4
>
>
> =============
> (1/1) Building module tail_build
> =============
> Entering /home/elixir/lo/tail_build/prj
>
> gbuild module /home/elixir/lo/tail_build: make -f Makefile -j4 -rs all
> slowcheck
> [build LNK] Library/libvcllo.so
> [build MOD] animations
> /home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o:
> In function `ImplDevFontList::ImplFindByAliasName(rtl::OUString const&,
> rtl::OUString const&) const':
> outdev3.cxx:(.text+0x1f8b): undefined reference to
> `GetNextFontToken(rtl::OUString const&, int&)'
> /home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o:
> In function `ImplDevFontList::ImplFindByTokenNames(rtl::OUString const&)
> const':
> outdev3.cxx:(.text+0x21e6): undefined reference to
> `GetNextFontToken(rtl::OUString const&, int&)'
> /home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o:
> In function `ImplDevFontList::ImplFindByFont(FontSelectPattern&, bool,
> ImplDirectFontSubstitution*) const':
> outdev3.cxx:(.text+0x3d5c): undefined reference to
> `GetNextFontToken(rtl::OUString const&, int&)'
> outdev3.cxx:(.text+0x44f8): undefined reference to
> `GetNextFontToken(rtl::OUString const&, int&)'
> outdev3.cxx:(.text+0x46bc): undefined reference to
> `GetNextFontToken(rtl::OUString const&, int&)'
> /home/elixir/lo/workdir/
> unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o:outdev3.cxx:(.text+0x47fa)<http://unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o:outdev3.cxx:%28.text+0x47fa%29>:
> more undefined references to `GetNextFontToken(rtl::OUString const&, int&)'
> follow
> /home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/gdi/outdev3.o:
> In function `OutputDevice::GetDefaultFont(unsigned short, unsigned short,
> unsigned long, OutputDevice const*)':
> outdev3.cxx:(.text+0x17316): undefined reference to
> `AddTokenFontName(rtl::OUString&, String const&)'
> outdev3.cxx:(.text+0x1767c): undefined reference to
> `String::GetToken(unsigned short, unsigned short, int&) const'
> /home/elixir/lo/workdir/unxlngx6.pro/CxxObject/vcl/source/window/window.o:
> In function `Window::ImplUpdateGlobalSettings(AllSettings&, unsigned char)':
> window.cxx:(.text+0x748a): undefined reference to
> `String::GetToken(unsigned short, unsigned short, int&) const'
> /home/elixir/lo/workdir/
> unxlngx6.pro/CxxObject/vcl/unx/generic/printer/ppdparser.o: In function
> `psp::PPDParser::getResolutionFromString(String const&, int&, int&) const':
> ppdparser.cxx:(.text+0x1156): undefined reference to
> `String::GetToken(unsigned short, unsigned short, int&) const'
> /home/elixir/lo/workdir/
> unxlngx6.pro/CxxObject/vcl/unx/generic/printer/ppdparser.o: In function
> `psp::PPDParser::getPPDPrinterName(String const&)':
> ppdparser.cxx:(.text+0x4adf): undefined reference to
> `String::GetToken(unsigned short, unsigned short, int&) const'
> ppdparser.cxx:(.text+0x4b30): undefined reference to
> `String::GetToken(unsigned short, unsigned short, int&) const'
> /home/elixir/lo/workdir/
> unxlngx6.pro/CxxObject/vcl/source/control/combobox.o:combobox.cxx:(.text+0x35bf)<http://unxlngx6.pro/CxxObject/vcl/source/control/combobox.o:combobox.cxx:%28.text+0x35bf%29>:
> more undefined references to `String::GetToken(unsigned short, unsigned
> short, int&) const' follow
> collect2: ld returned 1 exit status
> make[1]: *** [/home/elixir/lo/workdir/
> unxlngx6.pro/LinkTarget/Library/libvcllo.so] Error 1
> make[1]: *** Waiting for unfinished jobs....
>
> -----------------------------------------------------------------------
> Oh dear - something failed during the build - sorry !
> For more help with debugging build errors, please see the section in:
> http://wiki.documentfoundation.org/Development
>
> internal build errors:
>
> ERROR: error 512 occurred while making /home/elixir/lo/tail_build/prj
>
> I'm scratching my head hard to debug it, but don't have much clue about
> it!
>
> Hope to get a solution to this from here at the earliest possibility.
>
> Once again thanks
>
> Regards
> Prashant
>
> Hello everyone,
>
> I am having a hard time debugging the undefined reference to
> <some_function> error. I made following changes:
> http://pastebin.com/DqqTsP7A. Errors are: http://pastebin.com/PW0yzzgA.
> I am porting String and its corresponding functions to OUString
> respectively.
>
> Any help shall be highly appreciable!
> Thanks
>
> Regards
> Prashant Pandey
>
>
>
> _______________________________________________
> LibreOffice mailing listLibreOffice at lists.freedesktop.orghttp://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130228/36ab5718/attachment-0001.html>
More information about the LibreOffice
mailing list