pkgsrc-Changes archive

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

Re: CVS commit: pkgsrc/math/liblinear



Le 20/11/15 15:47, Adam Ciarcinski a écrit :
> Module Name:  pkgsrc
> Committed By: adam
> Date:         Fri Nov 20 14:47:20 UTC 2015
> 
> Modified Files:
>       pkgsrc/math/liblinear: Makefile PLIST distinfo
> Added Files:
>       pkgsrc/math/liblinear: buildlink3.mk
>       pkgsrc/math/liblinear/patches: patch-Makefile
> 
> Log Message:
> Changes 2.1:
> Unknown
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/math/liblinear/Makefile \
>     pkgsrc/math/liblinear/PLIST
> cvs rdiff -u -r0 -r1.1 pkgsrc/math/liblinear/buildlink3.mk
> cvs rdiff -u -r1.2 -r1.3 pkgsrc/math/liblinear/distinfo
> cvs rdiff -u -r0 -r1.1 pkgsrc/math/liblinear/patches/patch-Makefile
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 
> 


There seems to be a PIC issue here noticed on SunOS:
>..
> *** Warning: Linking the shared library liblinear.la against the
> *** static library blas/blas.a is not portable!
> --- predict ---
> libtool: link: g++ -O2 -o predict .libs/tron.o .libs/linear.o predict.c  blas/blas.a 
> --- train ---
> libtool: link: g++ -O2 -o train .libs/tron.o .libs/linear.o train.c  blas/blas.a 
> --- lib ---
> libtool: link: g++ -shared  -fPIC -DPIC -nostdlib /usr/lib/crti.o /usr/lib/values-Xa.o /opt/pbulk32/gcc49/lib/gcc/i486-sun-solaris2.11/4.9.3/crtbeginS.o  .libs/linear.o .libs/tron.o   blas/blas.a 
> -L/opt/pbulk32/gcc49/lib/gcc/i486-sun-solaris2.11/4.9.3 -L/opt/pbulk32/gcc49/lib/gcc/i486-sun-solaris2.11/4.9.3/../../../../i486-sun-solaris2.11/lib 
> -L/opt/pbulk32/gcc49/lib/gcc/i486-sun-solaris2.11/4.9.3/../../.. -lstdc++ -lm -lrt -lgcc_s -lc -lgcc_s /opt/pbulk32/gcc49/lib/gcc/i486-sun-solaris2.11/4.9.3/crtendS.o /usr/lib/crtn.o    -Wl,-h 
> -Wl,liblinear.so.3 -o .libs/liblinear.so.3.0.0
> Text relocation remains                       referenced
>     against symbol                offset      in file
> .rodata.cst4 (section)              0x4c              blas/blas.a(dnrm2.o)
> sqrt                                0xb8              blas/blas.a(dnrm2.o)
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: error: ld returned 1 exit status

I can "improperly" get over this with 'CFLAGS+= -fPIC -DPIC' but that's certainly not the correct fix.

-- 
Richard PALO




Home | Main Index | Thread Index | Old Index