Problem: With only package managers on Ubuntu, it does not seem to be possible to compile zero-MQ into an application completely statically.
However, I'm able to checkout the source code from github, and compile the library with --static-enabled and --dynamic disabled to get the statically built library file, which in turn, I'm able to compile into my application program statically. That solution is working fine for me. However, I don't like the complexity involved in source checkout, compiling from source and such. Here is an illustration of the problem.The test program is from the zeromq documentation/guide. *subin@linux:~/zmq-test$ g++ zmq-test.cpp `pkg-config --static --libs --cflags libzmq`subin@linux:~/zmq-test$ file a.out a.out: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=eee33d81fbf590427a3f3b99fbe7dc5c1b00f233, for GNU/Linux 3.2.0, not strippedsubin@linux:~/zmq-test$ g++ -static zmq-test.cpp `pkg-config --static --libs --cflags libzmq`/usr/bin/ld: cannot find -lgssapi_krb5/usr/bin/ld: cannot find -lkrb5/usr/bin/ld: cannot find -lk5crypto/usr/bin/ld: cannot find -lkrb5supportcollect2: error: ld returned 1 exit status* *subin@linux:~/zmq-test$* Looks like these dependencies are not available on the package archives. Is that the correct assumption? -- Sent from My iPhone
_______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev