caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Caml build problems
@ 2005-07-26  7:31 Don Jackson
  2005-07-26 12:24 ` [Caml-list] " Gerd Stolpmann
  2005-07-26 13:25 ` Damien Doligez
  0 siblings, 2 replies; 5+ messages in thread
From: Don Jackson @ 2005-07-26  7:31 UTC (permalink / raw)
  To: caml-list

Hello,

I am trying to build Caml on Solaris 9 for i386.

Here is my configure command line, which finishes fine:

./configure -prefix /home/dcj -x11include /usr/local/X11R6/include 
-x11lib /usr/local/X11R6/lib

I then "gmake world", which dies when trying to build graph.
It seems like it is not picking up the new location of the X11 
libraries, although they are specified

gmake[1]: Leaving directory `/home/dcj/src/ocaml-3.08.3/otherlibs/threads'
gmake[1]: Entering directory `/home/dcj/src/ocaml-3.08.3/otherlibs/graph'
gmake[1]: *** No rule to make target `/usr/X11R6/include/X11/Xlib.h', needed
by `open.o'.  Stop.
gmake[1]: Leaving directory `/home/dcj/src/ocaml-3.08.3/otherlibs/graph'
gmake: *** [otherlibraries] Error 2

Any ideas about how to fix this?

Actually, I don't really want to do anything with X11 anyway...I just 
want to compile "unison" with command line only support.

Thanks!

Don

Here is the entire outout of ./configure

> ./configure -prefix /home/dcj -x11include /usr/local/X11R6/include -x11lib
/usr/local/X11R
6/lib
Configuring for a i386-pc-solaris2.9 ...
gcc found
The C compiler is ANSI-compliant.
Checking the sizes of integers and pointers...
OK, this is a regular 32 bit architecture.
64-bit "long long" integer type found (printf with "%ll").
This is a little-endian architecture.
Doubles can be word-aligned.
64-bit integers can be word-aligned.
Native division and modulus have round-towards-zero semantics, will use
them.
objcopy and nm found in /usr/local/bin
ranlib found
#! appears to work in shell scripts
POSIX signal handling found.
times() found.
termcap functions found (with libraries '-lcurses')
You have BSD sockets (with libraries '-lnsl -lsocket')
socklen_t is defined in <sys/socket.h>
IPv6 is supported.
unistd.h found.
off_t is defined in <sys/types.h>
dirent.h found.
rewinddir() found.
lockf() found.
mkfifo() found.
getcwd() found.
getwd() found.
getpriority() found.
utime() found.
utimes() found.
dup2() found.
fchmod() found.
truncate() found.
sys/select.h found.
select() found.
symlink() found.
waitpid() found.
wait4() found.
getgroups() found.
POSIX termios found.
setitimer() found.
gethostname() found.
uname() found.
gettimeofday() found.
mktime() found.
setsid() found.
putenv() found.
setlocale() and <locale.h> found.
dlopen() found in -ldl.
Dynamic loading of shared libraries is supported.
mmap() found.
gethostbyname_r() found (with 5 arguments).
gethostbyaddr_r() found (with 7 arguments).
Replay debugger supported.
Cannot detect system stack overflow.
POSIX threads library supported.
Options for linking with POSIX threads: -lpthread -lposix4
sigwait() found
Bytecode threads library supported.
Location of X11 include files: /usr/local/X11R6/include/X11
Options for linking with X11: -L/usr/local/X11R6/lib -lX11
NDBM found (in /usr/include)
Configuring LablTk...
tcl.h and/or tk.h not found.
Configuration failed, LablTk will not be built.
Camlp4 correctly configured.

** Configuration summary **

Directories where Objective Caml will be installed:
         binaries.................. /home/dcj/bin
         standard library.......... /home/dcj/lib/ocaml
         manual pages.............. /home/dcj/man (with extension .1)
Configuration for the bytecode compiler:
         C compiler used........... gcc
         options for compiling..... -fno-defer-pop -Wall
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
         options for linking.......   -lnsl -lsocket -lm  -ldl -lcurses
-lpthread -lposix4
         shared libraries are supported
         options for compiling..... -fPIC -fno-defer-pop -Wall
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
         command for building...... gcc -shared -o lib.so -R/a/path objs
Configuration for the native-code compiler:
         hardware architecture..... i386
         OS variant................ solaris
         C compiler used........... gcc
         options for compiling..... -Wall -D_FILE_OFFSET_BITS=64 
-D_REENTRANT
         options for linking.......   -lnsl -lsocket -lm
         assembler ................ $(AS)
         preprocessed assembler ... /usr/ccs/bin/as -P -DSYS_$(SYSTEM)
         profiling with gprof ..... not supported
         ocamlopt -pack ........... supported
Source-level replay debugger: supported
Additional libraries supported:
         unix str num dynlink bigarray systhreads threads graph dbm
Configuration for the "num" library:
         target architecture ...... ia32 (asm level 2)
Configuration for the "graph" library:
         options for compiling .... -I/usr/local/X11R6/include
         options for linking ...... -L/usr/local/X11R6/lib -lX11
The "labltk" library: not supported

** Objective Caml configuration completed successfully **


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Caml build problems
  2005-07-26  7:31 Caml build problems Don Jackson
@ 2005-07-26 12:24 ` Gerd Stolpmann
  2005-07-26 13:21   ` John Carr
  2005-07-26 13:25   ` Jacques Garrigue
  2005-07-26 13:25 ` Damien Doligez
  1 sibling, 2 replies; 5+ messages in thread
From: Gerd Stolpmann @ 2005-07-26 12:24 UTC (permalink / raw)
  To: caml-list; +Cc: caml-list

Am Dienstag, den 26.07.2005, 00:31 -0700 schrieb Don Jackson:
> Hello,
> 
> I am trying to build Caml on Solaris 9 for i386.
> 
> Here is my configure command line, which finishes fine:
> 
> ./configure -prefix /home/dcj -x11include /usr/local/X11R6/include 
> -x11lib /usr/local/X11R6/lib
> 
> I then "gmake world", which dies when trying to build graph.
> It seems like it is not picking up the new location of the X11 
> libraries, although they are specified
> 
> gmake[1]: Leaving directory `/home/dcj/src/ocaml-3.08.3/otherlibs/threads'
> gmake[1]: Entering directory `/home/dcj/src/ocaml-3.08.3/otherlibs/graph'
> gmake[1]: *** No rule to make target `/usr/X11R6/include/X11/Xlib.h', needed
> by `open.o'.  Stop.
> gmake[1]: Leaving directory `/home/dcj/src/ocaml-3.08.3/otherlibs/graph'
> gmake: *** [otherlibraries] Error 2
> 
> Any ideas about how to fix this?

Obviously, the X11 path is wrong.

> Actually, I don't really want to do anything with X11 anyway...I just 
> want to compile "unison" with command line only support.

Use GODI, http://godi.ocaml-programming.de. This is an O'Caml
distribution that compiles from sources, and it is also supported for
Solaris. It should work out of the box, provided you have gcc. unison is
even a GODI package.

Gerd

> Here is the entire outout of ./configure
> 
> > ./configure -prefix /home/dcj -x11include /usr/local/X11R6/include -x11lib
> /usr/local/X11R
> 6/lib
> Configuring for a i386-pc-solaris2.9 ...
> gcc found
> The C compiler is ANSI-compliant.
> Checking the sizes of integers and pointers...
> OK, this is a regular 32 bit architecture.
> 64-bit "long long" integer type found (printf with "%ll").
> This is a little-endian architecture.
> Doubles can be word-aligned.
> 64-bit integers can be word-aligned.
> Native division and modulus have round-towards-zero semantics, will use
> them.
> objcopy and nm found in /usr/local/bin
> ranlib found
> #! appears to work in shell scripts
> POSIX signal handling found.
> times() found.
> termcap functions found (with libraries '-lcurses')
> You have BSD sockets (with libraries '-lnsl -lsocket')
> socklen_t is defined in <sys/socket.h>
> IPv6 is supported.
> unistd.h found.
> off_t is defined in <sys/types.h>
> dirent.h found.
> rewinddir() found.
> lockf() found.
> mkfifo() found.
> getcwd() found.
> getwd() found.
> getpriority() found.
> utime() found.
> utimes() found.
> dup2() found.
> fchmod() found.
> truncate() found.
> sys/select.h found.
> select() found.
> symlink() found.
> waitpid() found.
> wait4() found.
> getgroups() found.
> POSIX termios found.
> setitimer() found.
> gethostname() found.
> uname() found.
> gettimeofday() found.
> mktime() found.
> setsid() found.
> putenv() found.
> setlocale() and <locale.h> found.
> dlopen() found in -ldl.
> Dynamic loading of shared libraries is supported.
> mmap() found.
> gethostbyname_r() found (with 5 arguments).
> gethostbyaddr_r() found (with 7 arguments).
> Replay debugger supported.
> Cannot detect system stack overflow.
> POSIX threads library supported.
> Options for linking with POSIX threads: -lpthread -lposix4
> sigwait() found
> Bytecode threads library supported.
> Location of X11 include files: /usr/local/X11R6/include/X11
> Options for linking with X11: -L/usr/local/X11R6/lib -lX11
> NDBM found (in /usr/include)
> Configuring LablTk...
> tcl.h and/or tk.h not found.
> Configuration failed, LablTk will not be built.
> Camlp4 correctly configured.
> 
> ** Configuration summary **
> 
> Directories where Objective Caml will be installed:
>          binaries.................. /home/dcj/bin
>          standard library.......... /home/dcj/lib/ocaml
>          manual pages.............. /home/dcj/man (with extension .1)
> Configuration for the bytecode compiler:
>          C compiler used........... gcc
>          options for compiling..... -fno-defer-pop -Wall
> -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>          options for linking.......   -lnsl -lsocket -lm  -ldl -lcurses
> -lpthread -lposix4
>          shared libraries are supported
>          options for compiling..... -fPIC -fno-defer-pop -Wall
> -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>          command for building...... gcc -shared -o lib.so -R/a/path objs
> Configuration for the native-code compiler:
>          hardware architecture..... i386
>          OS variant................ solaris
>          C compiler used........... gcc
>          options for compiling..... -Wall -D_FILE_OFFSET_BITS=64 
> -D_REENTRANT
>          options for linking.......   -lnsl -lsocket -lm
>          assembler ................ $(AS)
>          preprocessed assembler ... /usr/ccs/bin/as -P -DSYS_$(SYSTEM)
>          profiling with gprof ..... not supported
>          ocamlopt -pack ........... supported
> Source-level replay debugger: supported
> Additional libraries supported:
>          unix str num dynlink bigarray systhreads threads graph dbm
> Configuration for the "num" library:
>          target architecture ...... ia32 (asm level 2)
> Configuration for the "graph" library:
>          options for compiling .... -I/usr/local/X11R6/include
>          options for linking ...... -L/usr/local/X11R6/lib -lX11
> The "labltk" library: not supported
> 
> ** Objective Caml configuration completed successfully **
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
> 
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
Telefon: 06151/153855                  Telefax: 06151/997714
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Caml build problems
  2005-07-26 12:24 ` [Caml-list] " Gerd Stolpmann
@ 2005-07-26 13:21   ` John Carr
  2005-07-26 13:25   ` Jacques Garrigue
  1 sibling, 0 replies; 5+ messages in thread
From: John Carr @ 2005-07-26 13:21 UTC (permalink / raw)
  To: caml-list


> Obviously, the X11 path is wrong.

otherlibs/graph/.depend comes with Linux-specific dependencies.
Edit it to remove the X11R6 references.

sed -e "s@/usr/X11R6/include/X11/[A-Za-z0-9]*.h@@g" "otherlibs/graph/.depend" > "otherlibs/graph/.depend.new" && mv "otherlibs/graph/.depend.new" "otherlibs/graph/.depend"


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Caml build problems
  2005-07-26 12:24 ` [Caml-list] " Gerd Stolpmann
  2005-07-26 13:21   ` John Carr
@ 2005-07-26 13:25   ` Jacques Garrigue
  1 sibling, 0 replies; 5+ messages in thread
From: Jacques Garrigue @ 2005-07-26 13:25 UTC (permalink / raw)
  To: caml-list

From: Gerd Stolpmann <info@gerd-stolpmann.de>
> Am Dienstag, den 26.07.2005, 00:31 -0700 schrieb Don Jackson:
> > Hello,
> > 
> > I am trying to build Caml on Solaris 9 for i386.
> > 
> > Here is my configure command line, which finishes fine:
> > 
> > ./configure -prefix /home/dcj -x11include /usr/local/X11R6/include 
> > -x11lib /usr/local/X11R6/lib
> > 
> > I then "gmake world", which dies when trying to build graph.
> > It seems like it is not picking up the new location of the X11 
> > libraries, although they are specified
> > 
> > gmake[1]: Leaving directory `/home/dcj/src/ocaml-3.08.3/otherlibs/threads'
> > gmake[1]: Entering directory `/home/dcj/src/ocaml-3.08.3/otherlibs/graph'
> > gmake[1]: *** No rule to make target `/usr/X11R6/include/X11/Xlib.h', needed
> > by `open.o'.  Stop.
> > gmake[1]: Leaving directory `/home/dcj/src/ocaml-3.08.3/otherlibs/graph'
> > gmake: *** [otherlibraries] Error 2
> > 
> > Any ideas about how to fix this?
> 
> Obviously, the X11 path is wrong.

Actually no. This is a bug in the 3.08.3 tarball, due to a bug in
recent versions of gcc (?) which cause the .depend of
the graph subdirectory to wrongly depend on the X11 installation.
The fix is to adapt dependencies to your installation:
  $ cd otherlibs/graph
  $ make depend

> > Actually, I don't really want to do anything with X11 anyway...I just 
> > want to compile "unison" with command line only support.

You can also configure with the -no-x11 option.
This will disable both the graph and labl/camltk libraries.
Not too good if you are a developper, but if this is not your case no
problem.

Jacques Garrigue


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Caml build problems
  2005-07-26  7:31 Caml build problems Don Jackson
  2005-07-26 12:24 ` [Caml-list] " Gerd Stolpmann
@ 2005-07-26 13:25 ` Damien Doligez
  1 sibling, 0 replies; 5+ messages in thread
From: Damien Doligez @ 2005-07-26 13:25 UTC (permalink / raw)
  To: caml-list


On Jul 26, 2005, at 09:31, Don Jackson wrote:

> I am trying to build Caml on Solaris 9 for i386.
>
> Here is my configure command line, which finishes fine:
>
> ./configure -prefix /home/dcj -x11include /usr/local/X11R6/include - 
> x11lib /usr/local/X11R6/lib
>
> I then "gmake world", which dies when trying to build graph.
> It seems like it is not picking up the new location of the X11  
> libraries, although they are specified

This is a known bug that we have inherited from gcc.  The solution is
"cd otherlibs/graph; make .depend".


-- Damien


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-26 13:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-26  7:31 Caml build problems Don Jackson
2005-07-26 12:24 ` [Caml-list] " Gerd Stolpmann
2005-07-26 13:21   ` John Carr
2005-07-26 13:25   ` Jacques Garrigue
2005-07-26 13:25 ` Damien Doligez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).