zeromq4-x icon indicating copy to clipboard operation
zeromq4-x copied to clipboard

configure fails if it is executed in a different directory than the source tree

Open genieplus opened this issue 10 years ago • 3 comments

Executing configure --with-pgm from a different directory other than the source directory will fail with the following error message:

$ ls 
build  zeromq4-x
$ cd build
$ ../zeromq4-x/configure --with-pgm
 ../zeromq4-x configure: Unpacking libpgm-5.2.122~dfsg.tar.gz
 ../zeromq4-x/configure: line 19137: cd: foreign/openpgm: No such file or directory
 gzip: libpgm-5.2.122~dfsg.tar.gz: No such file or directory
 tar: This does not look like a tar archive
 tar: Exiting with failure status due to previous errors
 configure: error: cannot unpack the foreign/openpgm/libpgm-5.2.122~dfsg.tar.gz file

If configured without the option --with-pgm, the configure script will terminate without any issue.

genieplus avatar Dec 23 '14 15:12 genieplus

Please retest on libzmq master, and if it's fixed there we can try to backport the fix.

hintjens avatar Dec 23 '14 15:12 hintjens

The management of pgm have been changed in both version: In the master branch: it requires pkg-config (or settings flags: pgm_LIBS and pgm_CFLAGS

  --with-pgm              build libzmq with PGM extension. Requires pkg-config
                          [default=no]

In version 4-x, the libpgm is shipped with zeromq : foreign/openpgm/libpgm-5.2.122~dfsg.tar.gz. The configure script will extract it and compile it.

   --with-pgm              build libzmq with PGM extension [default=no]
   --with-system-pgm       build libzmq with PGM extension. Requires pkg-config
                           [default=no]

genieplus avatar Dec 23 '14 20:12 genieplus

With root authority on it

ao-zxz avatar Jul 09 '23 07:07 ao-zxz