[MacPorts] #60243: cpabe @0.11 configure failure

MacPorts noreply at macports.org
Thu Mar 26 17:27:09 UTC 2020


#60243: cpabe @0.11 configure failure
------------------------+--------------------
  Reporter:  aviralx10  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  cpabe      |
------------------------+--------------------

Comment (by ryandesign):

 Here are my logs.

 main.log says:

 {{{
 checking for libbswabe... not found
 configure: error:

 The library libbswabe was not found on your system! Please obtain it
 from

   http://acsc.csl.sri.com/cpabe/

 and install it before trying again. If libbswabe is already
 installed in a non-standard location, try again with

   ./configure --with-bswabe-include=<path> --with-bswabe-lib=<path>

 If you already specified those arguments, double check that bswabe.h
 can be found in the first path and libbswabe.a can be found in the
 second.

 See ./configure --help for more information.
 }}}

 config.log says:

 {{{
 configure:4524: checking for libbswabe
 configure:4574: ccache /usr/bin/clang -o conftest -O3 -Wall
 -I/opt/local/include/pbc  -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -O3 -Wall
 conftest.c -lcrypto -lcrypto  -lbswabe -Wl,-rpath /usr/local/lib -lpbc
 -Wl,-rpath /usr/local/lib -lgmp -L/opt/local/lib -lglib-2.0 -lintl
 -Wl,-framework -Wl,CoreFoundation >&5
 conftest.c:40:20: warning: variable 'p' is uninitialized when used here
 [-Wuninitialized]
    bswabe_pub_free(p);
                    ^
 conftest.c:39:16: note: initialize the variable 'p' to silence this
 warning
 bswabe_pub_t* p;
                ^
                 = NULL
 1 warning generated.
 Undefined symbols for architecture x86_64:
   "_bswabe_pub_free", referenced from:
       _main in conftest-944aac.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 configure:4574: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "cpabe"
 | #define PACKAGE_TARNAME "cpabe"
 | #define PACKAGE_VERSION "0.11"
 | #define PACKAGE_STRING "cpabe 0.11"
 | #define PACKAGE_BUGREPORT "bethenco at cs.berkeley.edu"
 | #define PACKAGE_URL ""
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define STDC_HEADERS 1
 | #define HAVE_FCNTL_H 1
 | #define HAVE_STDDEF_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_MALLOC 1
 | #define HAVE_VPRINTF 1
 | #define HAVE_LIBCRYPTO 1
 | #define HAVE_LIBCRYPTO 1
 | #define HAVE_STRCHR 1
 | #define HAVE_STRDUP 1
 | #define HAVE_MEMSET 1
 | #define HAVE_GMP 1
 | #define HAVE_PBC 1
 | /* end confdefs.h.  */
 | #include <glib.h>
 |    #include <pbc.h>
 |    #include <bswabe.h>
 | int
 | main ()
 | {
 | bswabe_pub_t* p;
 |    bswabe_pub_free(p);
 |   ;
 |   return 0;
 | }
 configure:4586: result: not found
 }}}

 Adding the `--with-bswabe-include=<path>` and  `--with-bswabe-lib=<path>`
 flags does not help because the problem is not an inability to locate the
 library or headers; the problem is that the library that was found appears
 to be missing something essential.

 I appear to have caused this in [ad587304cb98daa6850bace3d2809f0cfe8fa380
 /macports-ports] when I resolved #28925 by adding a dynamic libbswabe
 library. If I revert that, cpabe configures successfully and finds the
 static libbswabe library. So either the dynamic library needs something
 added to it or else the test for the library in cpabe needs to be
 adjusted.

-- 
Ticket URL: <https://trac.macports.org/ticket/60243#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list