[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] 0.5 recommended version source archive



On Thu, May 25, 2006 at 03:12:59PM +0100, Alex Bligh wrote:
> >Btw does this "undefined reference to GenerateFloorShadow" happen on
> >linux too? If yes, are you sure you want 0.5r1175 to be the recommended
> >version?
> 
> No, but I can't imagine why it would be FreeBSD specific.
You mean that this error does not appear under linux?

> 
> All that happened is one of the parameters changed from unsigned
> to signed. Is it errorring at compile time or link time?

Link time.

> 
> If at compile time, I'm stumped. The header (Kernel/bshadow2.h)
> should say:
> 
> bool GenerateFloorShadow(
>         void* pCode,
>         CONST BITMAPINFOHEADER* pSourceInfo,
>         CONST BYTE*             pSourceBitmap,
>         CONST BITMAPINFOHEADER* pDestinationInfo,
>                   BYTE*             pDestinationBitmap,
>         CONST UINT32   nRowOffsets,
>         CONST INT32*  pLeftOffsets, <--------------- THIS CHANGED
>         CONST INT32* pRightOffsets, <--------------- THIS CHANGED
>         CONST UINT32  nTranslationShift,
>         CONST BYTE*  pTranslationTable
> ) ;
> 
> This seems to match how bshadow.cpp calls it (aLeft[]
> and aRight[] are INT32s).
> 
> If link time, we need to ensure your libCDraw.a is up to date and is
> being linked it. Looking at date stamps in the "lib" directory it
> looks like the ppc one isn't up to date (you aren't using that
> are you?) but the others are.
> 

Currently I tested on amd64.

This is the contents of the libs directory, (just as found in
XaraLX-0.5r1175.tar.gz):

% ls -l libs/x86*/*
-rw-r--r--  1 root  wheel  6732612 May 23 17:50 libs/x86/libCDraw.a
-rw-r--r--  1 root  wheel  1041758 May 23 17:50 libs/x86_64/libCDraw.a

This is the command that fails:

c++ -Wl,--start-group Kernel/libKernel.a wxOil/libwxOil.a tools/libTools.a wxXtra/libwxXtra.a -Wl,--end-group --debug -L./libs/x86_64 -L/usr/X11R6/lib  -pthread -L/usr/local/lib -liconv  -L/usr/X11R6/lib   -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6  -L/usr/local/lib -ldlmalloc -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm -lCDraw -o XaraLX
Kernel/libKernel.a(bshadow.o)(.text+0x1152): In function `CBitmapShadow::MakeCastShadow(unsigned int*, wxSize, double, double, double, double)':
/tmp/xaralx/work/XaraLX-0.5r1175/Kernel/bshadow.cpp:749: undefined reference to `GenerateFloorShadow(void*, BITMAPINFOHEADER const*, unsigned char const*, BITMAPINFOHEADER const*, unsigned char*, unsigned int, int const*, int const*, unsigned int, unsigned char const*)'
gmake[1]: *** [XaraLX] Error 1

-- 
Vasil Dimov
gro.DSBeerF@dv

Testing can show the presence of bugs, but not their absence.
                -- Edsger W. Dijkstra