jirib writes

I’m trying to make a port of recoll for openbsd…

  • OpenBSD 5.7-current (GENERIC.MP) #903: Thu Apr 2 13:47:34 MDT 2015

  • recoll-1.20.4

...
make -C index depend recollindex
c++ -M -O2 -pipe -O0 -g -I.  -I../aspell  -I../bincimapmime  -I../common  -I../index  -I../internfile  -I../rcldb  -I../unac  -I../utils  -Wall -Wno-unused  -I/usr/local/lib/../include -I/usr/local/include   -DRECOLL_DATADIR=\"/usr/local/share/recoll\"  -fPIC -DPIC  -DHAVE_CONFIG_H  -pthread  -I/usr/include recollindex.cpp rclmonrcv.cpp rclmonprc.cpp  > alldeps
touch alldeps.stamp
c++ -O2 -pipe -O0 -g -I.  -I../aspell  -I../bincimapmime  -I../common  -I../index  -I../internfile  -I../rcldb  -I../unac  -I../utils  -Wall -Wno-unused  -I/usr/local/lib/../include -I/usr/local/include   -DRECOLL_DATADIR=\"/usr/local/share/recoll\"  -fPIC -DPIC  -DHAVE_CONFIG_H  -pthread  -I/usr/include -c -o recollindex.o recollindex.cpp
c++ -O2 -pipe -O0 -g -I.  -I../aspell  -I../bincimapmime  -I../common  -I../index  -I../internfile  -I../rcldb  -I../unac  -I../utils  -Wall -Wno-unused  -I/usr/local/lib/../include -I/usr/local/include   -DRECOLL_DATADIR=\"/usr/local/share/recoll\"  -fPIC -DPIC  -DHAVE_CONFIG_H  -pthread  -I/usr/include -c -o rclmonrcv.o rclmonrcv.cpp
c++ -O2 -pipe -O0 -g -I.  -I../aspell  -I../bincimapmime  -I../common  -I../index  -I../internfile  -I../rcldb  -I../unac  -I../utils  -Wall -Wno-unused  -I/usr/local/lib/../include -I/usr/local/include   -DRECOLL_DATADIR=\"/usr/local/share/recoll\"  -fPIC -DPIC  -DHAVE_CONFIG_H  -pthread  -I/usr/include -c -o rclmonprc.o rclmonprc.cpp
c++ -O2 -pipe -O0 -g -I.  -I../aspell  -I../bincimapmime  -I../common  -I../index  -I../internfile  -I../rcldb  -I../unac  -I../utils  -Wall -Wno-unused  -I/usr/local/lib/../include -I/usr/local/include   -DRECOLL_DATADIR=\"/usr/local/share/recoll\"  -fPIC -DPIC  -DHAVE_CONFIG_H  -pthread  -I/usr/include  -o recollindex  recollindex.o rclmonrcv.o rclmonprc.o    -L../lib -lrecoll -Wl,-rpath=/usr/local/lib/recoll -L/usr/local/lib -lxapian -lz   -L/usr/local/lib -liconv
../lib/librecoll.so: warning: sprintf() is often misused, please use snprintf()
../lib/librecoll.so: undefined reference to `pxattr::get(std::basic_string<char, std::char_traits<char >, std::allocator<char >  > const&, std::basic_string<char, std::char_traits<char >, std::allocator<char >  > const&, std::basic_string<char, std::char_traits<char >, std::allocator<char >  >*, pxattr::flags, pxattr::nspace)'
../lib/librecoll.so: undefined reference to `pxattr::list(std::basic_string<char, std::char_traits<char >, std::allocator<char >  > const&, std::vector<std::basic_string<char, std::char_traits<char >, std::allocator<char >  >, std::allocator<std::basic_string<char, std::char_traits<char >, std::allocator<char >  >  >  >*, pxattr::flags, pxattr::nspace)'
collect2: ld returned 1 exit status
*** Error 1 in index (Makefile:17 'recollindex')
*** Error 1 in /home/jirib/openbsd/pobj/recoll-1.20.4/recoll-1.20.4 (Makefile:20 'all')
*** Error 1 in . (/home/jirib/cvs/openbsd-ports/infrastructure/mk/bsd.port.mk:2751 '/home/jirib/openbsd/pobj/recoll-1.20.4/.build_done')
*** Error 1 in /home/jirib/git/openbsd-mystuff/x11/recoll (/home/jirib/cvs/openbsd-ports/infrastructure/mk/bsd.port.mk:2476 'all')

medoc writes

Yes, that’s because the pxattr module is full of ifdefs, and never ported to OpenBSD. I’ll install openBSD in a VM and give it a look, except if you beat me to it, it should be as simple as duplicating the FreeBSD tests with whatever OpenBSD uses.

medoc writes

Ok so openbsd does not appear to support extended attributes at all. I need to either use a --without-extattr config option or define always-failing functions for openbsd. I think I’ll do the latter. Patch tomorrow, hopefully.

medoc writes

Our comments crossed :)

medoc writes

medoc writes

No answer but supposedly solved