7+ days of dogfood

Steve Kargl sgk at troutmask.apl.washington.edu
Sun Feb 10 00:31:44 UTC 2013


On Sat, Feb 09, 2013 at 04:07:23PM -0800, Steve Kargl wrote:
>
> Libreoffice currently does not build, but that's not totally
> unexpected as compiling libreoffice seems to be a hit-or-miss
> proposition. 
> 

laptop:root[201] cd /usr/ports/editors/libreoffice/work/libreoffice-core-3.6.5.2/l10ntools/
laptop:root[202] gmake
[ build LNK ] Executable/HelpIndexer
S=/usr/ports/editors/libreoffice/work/libreoffice-core-3.6.5.2 && O=/tmp/lobuild/solver/unxfbsdi.pro && W=/tmp/lobuild/workdir/unxfbsdi.pro &&  mkdir -p $W/LinkTarget/Executable/ && g++46     '-Wl,-z,origin,-rpath,$ORIGIN/../lib:$ORIGIN' -Wl,-rpath-link,$O/lib -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc  -L$S/solenv/unxfbsdi/lib -L$O/lib -L$S/solenv/unxfbsdi/lib -L/usr/local/lib  -Wl,--hash-style=gnu  -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-Bsymbolic-functions    $W/CxxObject/l10ntools/source/help/HelpIndexer_main.o     -Wl,--start-group  -Wl,--end-group -Wl,--no-as-needed  -lexpat -lxslt  -lz -liconv -lm -L/usr/local/lib -lxml2   -L/usr/local/lib -lxml2   -L/usr/local/lib/db42 -ldb-4.2  -L/usr/local/lib/ -lclucene-core   -lclucene-contribs-lib  -luno_sal -lhelplinkerlo -o $W/LinkTarget/Executable/HelpIndexer
/usr/local/lib/libclucene-core.so: undefined reference to `logl at GLIBCXX_3.4'
collect2: ld returned 1 exit status

Huh?  logl at GLIBCXX_3.4

laptop:kargl[189] cat > a.c
#include <stdio.h>
#include <math.h>

int  
main(void)
{
        long double x;
        x = (long double) M_PI;
        printf("%Le %Le\n", x, logl(x));
        return (0);
}
laptop:kargl[190] cc -o z a.c -lm && ./z
3.141593e+00 1.144730e+00
laptop:kargl[191] nm --dynamic z
         w _Jv_RegisterClasses
08049804 D __progname
08049818 A _end
         U _init_tls
         U atexit
08049814 B environ
         U exit
         U logl
         U printf

laptop:kargl[193] nm --dynamic /usr/lib/libm.so | grep logl
000058f0 T logl

-- 
Steve


More information about the freebsd-current mailing list