Re: Failure compiling libgraphviz238-shlibs-2.46.0-4

"Lucier, Bradley J" <[email protected]>
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
> On Sep 17, 2021, at 4:16 AM, Hanspeter Niederstrasser <[email protected]> wrote:
> 
> On 9/15/21 2:27 PM, Lucier, Bradley J wrote:
>> On Sep 15, 2021, at 3:24 PM, Lucier, Bradley J <[email protected]<mailto:[email protected]>> wrote:
>> error: expected unqualified-id
>> Might be related to
>> https://github.com/onivim/oni2/issues/3489
> 
> Looks like this is a C++20 problem in Xcode 11.5 where the new header <version> (who ever thought that was a good name??) clashes with the file "version" installed by ocaml-4.08. This is fixed in ocaml-4.12, which I'm currently updating, but it requires checking all ocaml based packages because they're very sensitive to syntax changes.
> 
> Hanspeter

Thanks!  Now I’m getting failures:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lib/gvc -I../../lib/common -I../../lib/cgraph -I../../lib/cdt -I../../lib/pathplan -DDEMAND_LOADING=1 -I/opt/sw/lib/ocaml -Dint64=int64_t -fpermissive -I/opt/sw/include -g -O2 -fPIC -MT libgv_ocaml_la-gv_ocaml.lo -MD -MP -MF .deps/libgv_ocaml_la-gv_ocaml.Tpo -c gv_ocaml.cpp  -fno-common -DPIC -o .libs/libgv_ocaml_la-gv_ocaml.o
gv_ocaml.cpp:1281:2: error: no matching function for call to 'memcpy'
        memcpy(String_val(SWIG_Field(vv,0)),p,len);
        ^~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:72:7: note: candidate function not viable: no known conversion from 'const char *' to 'void *' for 1st argument
void    *memcpy(void *__dst, const void *__src, size_t __n);
         ^
gv_ocaml.cpp:1319:18: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
            CAML_VALUE *enum_to_int = caml_named_value(SWIG_MODULE "_enum_to_int");
                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:1779:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:1808:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:1836:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:1864:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:1892:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:1927:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:1963:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:2059:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:2170:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agnode_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:2210:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agedge_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:2251:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agedge_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:2292:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agedge_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:2338:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agedge_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:3583:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agraph_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:3616:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agnode_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:3649:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agedge_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gv_ocaml.cpp:3689:17: error: cannot initialize a variable of type 'caml_value_t *' (aka 'long *') with an rvalue of type 'const caml_value_t *' (aka 'const long *')
    CAML_VALUE *fromval = caml_named_value("create_Agsym_t_from_ptr");
                ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[4]: *** [libgv_ocaml_la-gv_ocaml.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
### execution of /tmp/fink.Ww5ir failed, exit code 2
### execution of /tmp/fink.CZCCB failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/opt/sw/bin/dpkg-lockwait -r fink-buildlock-libgraphviz238-shlibs-2.46.0-4
(Reading database ... 52754 files and directories currently installed.)
Removing fink-buildlock-libgraphviz238-shlibs-2.46.0-4 (2021.09.18-17.38.09) ...
Failed: phase compiling: libgraphviz238-shlibs-2.46.0-4 failed

Before reporting any errors, please run "fink selfupdate" and try again.

If you continue to have issues, please check to see if the FAQ on Fink's 
website solves the problem.  If not, ask on one (not both, please) of
these mailing lists:

        The Fink Users List <[email protected]>
        The Fink Beginners List <[email protected]>,

with a carbon copy to the maintainer:

        David Fang <[email protected]>

Note that this is preferable to emailing just the maintainer directly,
since most fink package maintainers do not have access to all possible
hardware and software configurations.

Please try to include the complete error message in your report.  This
generally consists of a compiler line starting with e.g. "gcc" or "g++"
followed by the actual error output from the compiler.

Also include the following system information:
Package manager version: 0.45.99.git
Distribution version: selfupdate-rsync Sat Sep 18 17:35:08 2021, 11.3, x86_64
Trees: local/main stable/main
No recognized Xcode.app installed
Xcode command-line tools: 12.5.1.0.1.1623191612
Max. Fink build jobs:  1


_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.