Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* ocamlnet and getting a stack trace
@ 2007-05-07 11:20 Joel Reymont
  0 siblings, 0 replies; only message in thread
From: Joel Reymont @ 2007-05-07 11:20 UTC (permalink / raw)
  To: OCaml List

This is driving me nuts so I appreciate any help you can give me!

Despite my valiant efforts to insert -g into every invocation of  
"ocamlfind ocamlc", I cannot get a stack trace out of the sample  
ocamlnet app that I'm debugging. I keep getting

Fatal error: exception Unix.Unix_error(49, "", "")
(Program not linked with -g, cannot print stack backtrace)

Has anyone had success with getting a stacktrace from ocamlnet before?

A minimal app that I wrote up produces a stack trace just fine so  
this must be something in my ocaml pipeline. I can't figure out what,  
though.

I'm trying to build the netplex example in ocamlnet/code/src/examples/ 
nethttpd:

ocamlfind ocamlc -g -o netplex -package  
"netstring,netcgi2,unix,nethttpd-for-netcgi2,netplex" -thread  
netplex.ml -linkpkg -g

I also have this in my ocamlnet Makefile.conf:

# Additional options only for ocamlc:
OCAMLC_OPTIONS = -g

# Additional options only for ocamlopt:
OCAMLOPT_OPTIONS = -g

	Thanks, Joel

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-07 11:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-07 11:20 ocamlnet and getting a stack trace Joel Reymont

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox