New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling Ocaml in RedHat 7.0 #2594
Comments
Comment author: administrator
Yep. Has to do with new glibc. Here is an unofficial patch (to config.h) dnl This file is an input file used by the GNU "autoconf" program to dnl This is the file that must exist in srcdir dnl Rather use gcc dnl Defaults for variables, overriden in site.config dnl We need locations in the first place if test -z "$OCAMLLIBDIR"; then dnl builtin rule for X dnl builtin rule for ranlib dnl As soon as we use this, we must have install-sh available. Damn. LIBS="-lm" We probably need moreAC_CHECK_LIB(dl, dlopen, LIBS="-ldl $LIBS") Check for Tcl7.5(7.6) and Tk4.1(4.2)AC_MSG_CHECKING(Tcl and Tk includes and libraries) AC_CHECK_HEADERS(tcl.h,, AC_CHECK_HEADERS(tk.h,, tcl75="tcl75$LIBEXT" dnl We use Tcl_GetFile to be sure to get version >= 7.5 tk83="tk83$LIBEXT" dnl We use Tk_SetGrid to be sure to get version >= 4.1 dnl This is the file that we produce dnl The OCaml library dnl Install dir dnl Info collected about X dnl The libraries dnl Tcl/Tk dnl Info collected about ranlib *** config.h Sat Oct 14 01:16:37 2000 *** 56,65 **** #ifdef HAS_MEMMOVE
|
Comment author: administrator Thanks. That fixed my problem. Stephanie
|
Comment author: administrator
This is a bug in O'Caml 3.00. It will be fixed in the next release. In the meantime, you can work around this bug by removing #undef bcopy Thanks for the report, -- Damien |
Original bug ID: 209
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Stephanie Weirich
Version: 3.00 (and 2.04)
OS: redhat 7.0
Submission from: dhcp98-104.cs.cornell.edu (128.84.98.104)
I tried to compile the sources to ocaml 3.00 on my newly installed
redhat 7.0 box. I used the standard configuration (from ./configure), and make
world
produces the error:
make[1]: Entering directory
/root/ocaml-3.00/otherlibs/unix' gcc -I../../byterun -O -fno-defer-pop -Wall -Wno-unused -c -o accept.o accept. c In file included from /usr/include/sys/un.h:25, from socketaddr.h:19, from accept.c:24: /usr/include/string.h:245: parse error before
('/usr/include/string.h:245: conflicting types for
memmove' /usr/include/string.h:42: previous declaration of
memmove'/usr/include/string.h:245: parse error before `__const'
make[1]: *** [accept.o] Error 1
The text was updated successfully, but these errors were encountered: