vedang / pdf-tools

Emacs support library for PDF files.
https://pdftools.wiki
GNU General Public License v3.0
622 stars 90 forks source link

Linker error when compiling. #42

Open KjartanOli opened 3 years ago

KjartanOli commented 3 years ago

I'm getting the following error when trying to build pdf-tools on Artix linux, with emacs version: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.4, Xaw scroll bars) of 2021-08-16 running Spacemacs.

g++ -Wall -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -I/usr/include/poppler/glib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/pixman-1 -I/usr/include/poppler  -I/usr/include/poppler  -I/usr/include/libpng16  -std=c++11 -g -O2   -o epdfinfo epdfinfo-epdfinfo.o epdfinfo-poppler-hack.o -lglib-2.0  -lpoppler-glib -lgobject-2.0 -lglib-2.0 -lcairo  -lpoppler  -lpng16 -lz  libsynctex.a -lz   
/usr/bin/ld: epdfinfo-epdfinfo.o: in function `mktempfile':
/home/kjartan/.emacs.d/elpa/28.0/develop/pdf-tools-20210531.1613/build/server/epdfinfo.c:354: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/bin/ld: /lib/../lib64/libpoppler-glib.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
collect2: error: ld returned 1 exit status
make: *** [Makefile:471: epdfinfo] Error 1

I'm not sure if this is a pdf-tools issue, the error gives me the impression that it might be a problem with poppler.

Awannaphasch2016 commented 2 years ago

I have the same error, but triggers are different from yours error, I also can't find search for poppler text, so can we assume that this error causes by pdf-tools?

/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libxcb.so.1: undefined reference to `XauGetBestAuthByAddr'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XCopyArea'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFindFormat'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderAddGlyphs'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XSetClipRectangles'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XLockDisplay'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderSetPictureFilter'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XFreeGC'
collect2: error: ld returned 1 exit status
Reaping losing child 0x55a8532ded80 PID 9340
make[2]: *** [Makefile:473: epdfinfo] Error 1
Removing child 0x55a8532ded80 PID 9340 from chain.
make[2]: Leaving directory '/home/awannaphasch2016/.emacs.d/.local/straight/repos/pdf-tools/server'
Reaping losing child 0x560ffc5badf0 PID 9336
make[1]: *** [Makefile:368: all] Error 2
Removing child 0x560ffc5badf0 PID 9336 from chain.
make[1]: Leaving directory '/home/awannaphasch2016/.emacs.d/.local/straight/repos/pdf-tools/server'
Reaping losing child 0x5577befe74b0 PID 9333
make: *** [Makefile:82: server/epdfinfo] Error 2
Removing child 0x5577befe74b0 PID 9333 from chain.
vedang commented 2 years ago

I don't think this is a pdf-tools issue, but rather a missing dependencies issue. Can you please try M-x pdf-tools-install and share the output of that?

Awannaphasch2016 commented 2 years ago

I started to debug this problem again today. here is the erro r from pdf-tools-install

-*- mode: compilation; default-directory: "~/.emacs.d/.local/straight/build-27.1/pdf-tools/build/server/" -*-
Comint started at Wed Mar  2 23:23:52

/home/awannaphasch2016/.emacs.d/.local/straight/build-27.1/pdf-tools/build/server/autobuild -i /home/awannaphasch2016/.emacs.d/.local/straight/build-27.1/pdf-tools/
---------------------------
    Installing packages    
---------------------------
Skipping package installation (already installed)

---------------------------
 Configuring and compiling 
---------------------------
./configure -q --bindir=/home/awannaphasch2016/.emacs.d/.local/straight/build-27.1/pdf-tools/ && make clean && make -s

Is case-sensitive searching enabled ?     yes
Is modifying text annotations enabled ?   yes
Is modifying markup annotations enabled ? yes

test -z "epdfinfo" || rm -f epdfinfo
test -z "libsynctex.a" || rm -f libsynctex.a
rm -f *.o
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: epdfinfo-epdfinfo.o: in function `mktempfile':
epdfinfo.c:(.text.mktempfile+0x37): warning: the use of `tempnam' is dangerous, better use `mkstemp'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: warning: libXrender.so.1, needed by /home/awannaphasch2016/anaconda3/lib/libcairo.so, not found (try using -rpath or -rpath-link)
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: warning: libX11.so.6, needed by /home/awannaphasch2016/anaconda3/lib/libcairo.so, not found (try using -rpath or -rpath-link)
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: warning: libXext.so.6, needed by /home/awannaphasch2016/anaconda3/lib/libcairo.so, not found (try using -rpath or -rpath-link)
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: warning: libXau.so.6, needed by /home/awannaphasch2016/anaconda3/lib/libxcb-shm.so.0, not found (try using -rpath or -rpath-link)
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCreateGlyphSet'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XNextRequest'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XShmAttach'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCompositeTriStrip'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XCreateWindow'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XShmQueryVersion'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XEventsQueued'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XExtendedMaxRequestSize'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFreePicture'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFillRectangles'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `_XReadEvents'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCompositeTrapezoids'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XCreatePixmap'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XFreePixmap'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCompositeText16'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderQuerySubpixelOrder'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XAddExtension'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XUnlockDisplay'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XSync'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFindStandardFormat'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderChangePicture'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XAllocColor'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderComposite'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XShmQueryExtension'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XCreateGC'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XShmDetach'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XDestroyWindow'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCompositeText8'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFindVisualFormat'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XSetErrorHandler'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XShmPutImage'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XESetCloseDisplay'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCreatePicture'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XInitImage'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libxcb.so.1: undefined reference to `XauDisposeAuth'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderSetPictureClipRectangles'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCompositeText32'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XShmGetImage'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XFillRectangle'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFreeGlyphSet'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XQueryColors'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderQueryVersion'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFillRectangle'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XMaxRequestSize'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderSetPictureTransform'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCreateRadialGradient'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XShmCreatePixmap'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XSendEvent'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XGetDefault'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XScreenNumberOfScreen'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XInitExtension'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XChangeGC'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFreeGlyphs'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XPutImage'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XGetImage'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XSetClipMask'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCreateSolidFill'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderCreateLinearGradient'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libxcb.so.1: undefined reference to `XauGetBestAuthByAddr'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XCopyArea'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderFindFormat'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderAddGlyphs'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XSetClipRectangles'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XLockDisplay'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XRenderSetPictureFilter'
/home/awannaphasch2016/anaconda3/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/awannaphasch2016/anaconda3/lib/libcairo.so: undefined reference to `XFreeGC'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:473: epdfinfo] Error 1
make: *** [Makefile:368: all] Error 2
===========================
     Build failed.  ;o(    
===========================
Note: maybe try the '-d' option.

Comint exited abnormally with code 1 at Wed Mar  2 23:23:57
Awannaphasch2016 commented 2 years ago

I use Doom emacs, I fixed it by removing (package! pdf-tools-info) and only keep tools: pdf in init.el file.