Skip to content

Compilation failure with Ubuntu 26.04 #22300

@TomasDado

Description

@TomasDado

Check duplicate issues.

  • Checked for duplicates

Description

Hello,

I just updated my machine to Ubuntu 26.04 and I encountered a compilation error.

I had to install manually:

sudo apt install libzmq3-dev libpcre2-dev

Note this is different than the versions of these two packages before.

With these two packages installed and using:

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -Duse_gsl_cblas=ON -Dbuiltin_gsl=ON -Dbuiltin_vdt=ON -Dbuiltin_tbb=OFF -Dxrootd=OFF -Droofit_multiprocess=ON -Ddavix=OFF -Dmathmore=ON -Dbuiltin_lz4=ON -Dbuiltin_gl2ps=ON -Dbuiltin_xxhash=ON -Dbuiltin_tiff=ON -DCMAKE_INSTALL_PREFIX=../root_install/ ../root_src/

The compilation stops with

[ 15%] Linking CXX shared library ../../lib/libRooFitZMQ.so
/usr/bin/x86_64-linux-gnu-ld.bfd: CMakeFiles/RooFitZMQ.dir/src/ppoll.cpp.o: in function `ZMQ::ppoll(zmq_pollitem_t*, unsigned long, long, __sigset_t const*)':
/home/tomas/ROOT/root_src/roofit/roofitZMQ/src/ppoll.cpp:21:(.text+0x9): undefined reference to `zmq_ppoll'
collect2: error: ld returned 1 exit status
gmake[2]: *** [roofit/roofitZMQ/CMakeFiles/RooFitZMQ.dir/build.make:151: lib/libRooFitZMQ.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:61879: roofit/roofitZMQ/CMakeFiles/RooFitZMQ.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions