English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocamlnet and getting a stack trace
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-07 (11:20)
From: Joel Reymont <joelr1@g...>
Subject: ocamlnet and getting a stack trace
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,  

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

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:

# Additional options only for ocamlopt:

	Thanks, Joel