gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
iago has quit [Quit: Leaving]
ulfdoz has quit [Read error: Operation timed out]
SecretFire has quit [Ping timeout: 244 seconds]
ulfdoz has joined #ocaml
emmanuelux has quit [Ping timeout: 246 seconds]
<tbrady> Anyone ever heard of a single call to Buffer.output_buffer stdout mysteriously printing the buffer contents twice?
avsm has quit [Quit: Leaving.]
<tbrady> Whatever it was a call to Buffer.reset has fixed it.
Arsenik has quit [Remote host closed the connection]
Cat4D has joined #ocaml
<Cat4D> why doesnt ocaml compile itself in itself or for the rest of the common host environments?
<Cat4D> a compiler that cant compile because it lacks an entry point is ... useless
Submarine has quit [Ping timeout: 244 seconds]
<Cat4D> <Cat4D> (and then there's the mess of foreign dependencies)[16:41:44] <Cat4D> -- had ocaml's stupid js or obrowser actually EXISTED THERE, i would have tried putting haxe into that and shown how simple it is[16:41:54] <Cat4D> but of course, the fundamental dependency is always fked
Cat4D has quit [Remote host closed the connection]
Cat4D has joined #ocaml
Cat4D has quit [Ping timeout: 248 seconds]
Progster has joined #ocaml
Technodrome has joined #ocaml
<Technodrome> ocaml on the web, is it relatively possible without me half killing myself these days?
tbrady has quit [Quit: tbrady]
lamawithonel has joined #ocaml
emmanuelux has joined #ocaml
ankit9 has joined #ocaml
ankit9 has quit [Read error: Connection reset by peer]
ankit9 has joined #ocaml
cdidd has joined #ocaml
ankit9 has quit [Read error: Connection reset by peer]
emmanuelux has quit [Remote host closed the connection]
ulfdoz has quit [Ping timeout: 250 seconds]
milosn_ has joined #ocaml
milosn has quit [Ping timeout: 246 seconds]
Progster has quit [Ping timeout: 260 seconds]
ankit9 has joined #ocaml
ankit9 has quit [Read error: Connection reset by peer]
ankit9 has joined #ocaml
ankit9 has quit [Read error: Connection reset by peer]
ankit9 has joined #ocaml
ankit9 has quit [Read error: Connection reset by peer]
ski has quit [Ping timeout: 246 seconds]
ski has joined #ocaml
ankit9 has joined #ocaml
ankit9 has quit [Client Quit]
tumdum has joined #ocaml
tumdum has quit [Client Quit]
pango is now known as pangoafk
ankit9 has joined #ocaml
xcombelle has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
djcoin has joined #ocaml
wagle has quit [Ping timeout: 264 seconds]
wagle has joined #ocaml
wagle has quit [Ping timeout: 246 seconds]
wagle has joined #ocaml
sepp2k has quit [Remote host closed the connection]
edwin has joined #ocaml
Technodrome has left #ocaml []
mika1 has joined #ocaml
cago has joined #ocaml
ftrvxmtrx has joined #ocaml
Cyanure has joined #ocaml
edwin has quit [Remote host closed the connection]
eni has joined #ocaml
Cyanure has quit [Remote host closed the connection]
Cyanure has joined #ocaml
mort___ has joined #ocaml
eni has quit [Ping timeout: 248 seconds]
eni has joined #ocaml
silver_ has joined #ocaml
Cyanure has quit [Remote host closed the connection]
pangoafk has quit [Ping timeout: 265 seconds]
jaar has joined #ocaml
ankit9 has quit [Remote host closed the connection]
pangoafk has joined #ocaml
ankit9 has joined #ocaml
eni has quit [Quit: Leaving]
avsm has joined #ocaml
adrien_o1w has joined #ocaml
adrien_oww has quit [Ping timeout: 248 seconds]
beckerb has joined #ocaml
Cyanure has joined #ocaml
<flux> hmph, debian is 'almost' there with ocaml 4.0, experimental just doesn't have the libraries compiled with it..
eni has joined #ocaml
edwin has joined #ocaml
vext01 has quit [Quit: newsnap]
adrien_oww has joined #ocaml
adrien_o1w has quit [Ping timeout: 248 seconds]
ankit9 has quit [Ping timeout: 240 seconds]
ski has quit [Ping timeout: 240 seconds]
ankit9 has joined #ocaml
Cyanure has quit [Remote host closed the connection]
ski has joined #ocaml
ivan\ has quit [Ping timeout: 250 seconds]
ivan\ has joined #ocaml
ski has quit [Ping timeout: 240 seconds]
Cyanure has joined #ocaml
mort___ has quit [Ping timeout: 248 seconds]
_andre has joined #ocaml
eni has quit [Ping timeout: 246 seconds]
Znudzon has joined #ocaml
<Znudzon> Hi. I have some OCaml on my university a few years ago. How now looks future of this language ? Is it still on the active development ?
edwin has left #ocaml []
edwin has joined #ocaml
<edwin> Znudzon: ocaml 4.0 is coming soon
<edwin> Znudzon: look at the language features in this document http://caml.inria.fr/cgi-bin/viewvc.cgi/ocaml/trunk/Changes?view=markup
<Znudzon> edwin I thought that F# will kill OCaml .. but if 4.0 is coming soon then it's not so bad.
<edwin> F# is .Net so its useless for me :)
Cyanure has quit [Ping timeout: 245 seconds]
<edwin> others may disagree
<Znudzon> Do you know any major real world app written in OCaml ?
<adrien> unison, mldonkey, the core of fftw, a number of others, and several closed-source ones which, afaiu, are pretty big
<adrien> and xen's hypervisor
<Znudzon> How about Ocsigen is it sill alive ? It was a great idea to make real web framework for OCaml
<adrien> yes, still alive and under development
<Znudzon> What kind of editor you're using for OCaml ? I used emacs with some plugin but maybe now it's something more interesting.
<adrien> I use vim, many people use many different things here
mort___ has joined #ocaml
jaar has quit [*.net *.split]
djcoin has quit [*.net *.split]
fraggle_ has quit [*.net *.split]
Ptival has quit [*.net *.split]
bobry has quit [*.net *.split]
Cyanure has joined #ocaml
jaar has joined #ocaml
djcoin has joined #ocaml
fraggle_ has joined #ocaml
Ptival has joined #ocaml
bobry has joined #ocaml
eni has joined #ocaml
Progster has joined #ocaml
mnabil has joined #ocaml
<hcarty> gildor: Does oasis-db support .tar.bz2/.tbz uploads? Or .tar.gz only?
joshuah has joined #ocaml
<joshuah> hi, i am trying to compile a dynamic lib on mac os x from ocaml, and get the following linking errors: Undefined symbols for architecture x86_64:
<joshuah> "_caml_code_area_start", referenced from:
<joshuah> _segv_handler in output.a(signals_asm.o)
<joshuah> _caml_code_checksum in output.a(intern.o)
<joshuah> (and so on) i didnt find help on google or the mailinglist. has anyone here every compiled a dylib from ocaml on mac?
eni has quit [Ping timeout: 252 seconds]
gnuvince has quit [Ping timeout: 246 seconds]
emmanuelux has joined #ocaml
rossberg has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
gnuvince has joined #ocaml
tumdum has joined #ocaml
edwin has left #ocaml []
ankit9 has quit [Quit: Leaving]
<f[x]> > compile a dynamic lib on mac os x from ocaml
<f[x]> what are you doing exactly?
smondet has joined #ocaml
hto has quit [Read error: Connection reset by peer]
hto_ has joined #ocaml
testcocoon has quit [Quit: Coyote finally caught me]
ankit9 has joined #ocaml
rossberg has quit [Remote host closed the connection]
rossberg has joined #ocaml
Submarine has joined #ocaml
`micro has quit [Read error: Connection reset by peer]
`micro has joined #ocaml
`micro is now known as Guest86480
<joshuah> f[x]: hi
<joshuah> still there?
<joshuah> i have a small zip file (2k) with a full example
<joshuah> minimal example :)
<joshuah> what i need to do: i have a c++ program, in which i dynamically load libraries using the dlopen command. for that purpose i need to have dynamic libs. i want to use my ocaml code in one of those libs. compiling the ocaml code either as static or dynamic lib works fine, but as soon as i link it to my .dylib, i get the errors posted above
<f[x]> I don't have macos to test
<f[x]> but you should probably show the command line so that people have something to look at
<Znudzon> Any one try to install Ocsigen on newest Fedora ?
eni has joined #ocaml
hto has joined #ocaml
<joshuah> ocamlopt -output-obj -o ocaml_controller.o -I /usr/local/lib/ocaml/site-lib/batteries ocaml_controller.ml
<joshuah> ocamlc -o ocaml_interface.o -c ocaml_interface.c -I /usr/local/lib/ocaml/
<joshuah> cp /usr/local/lib/ocaml/libasmrun.a copy.a
<joshuah> libtool -static -a -o output.a copy.a ocaml_controller.o ocaml_interface.o
<joshuah> g++ -o Controller.o -c Controller.cpp -I /Users/zahedi/projects/yars/src
<thelema_> joshuah: asmrun/startup.c has the missing symbol defined - I can't say why it's not linked in, but it wouldn't hurt to compile and link that in.
<joshuah> g++ -dynamiclib -o libController.dylib Controller.o output.a
<joshuah> the last line produces the link errors
<thelema_> nm libasmrun.a | grep code_area
BiDOrD_ has quit [Read error: Operation timed out]
<thelema_> my libasmrun.a has the symbols you're missing, does yours?
<thelema_> if it does, it's probably a problem with argument order, if not - a problem with how ocaml was compiled?
Cyanure has quit [Remote host closed the connection]
<joshuah> 0000000000000008 C _caml_code_area_end
<joshuah> 0000000000000008 C _caml_code_area_start
<joshuah> it has
<joshuah> the problem does not occur, if i compile an executable
<joshuah> it only happens in combination with they dylib stuff
<joshuah> let's say, i have a main.cpp, and link it against that, everything is fine
BiDOrD has joined #ocaml
<thelema_> I'm guessing something's not right with how you're invoking libtool; can you put copy.a on your final g++ command?
<joshuah> no effect
<joshuah> i did: g++ -dynamiclib -o libController.dylib Controller.o output.a copy.a
<thelema_> joshuah: just to test a guess, try putting copy.a before Controller.o
<joshuah> g++ -dynamiclib -o libController.dylib copy.a Controller.o output.a
<joshuah> didn't hlep
<joshuah> help
<thelema_> ok, just checking. I've had terrible problems with argument order with recent linkers
<joshuah> thanks!
<thelema_> can you use -v to have g++ print out its invocation of libtool?
<joshuah> you mean libtool -v ...?
<thelema_> no, g++ -v -dynamiclib -o libController.dylib copy.a ...
<joshuah> ok, just a sec
<joshuah> Using built-in specs.
<joshuah> Target: i686-apple-darwin11
<joshuah> Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwi
<joshuah> Thread model: posix
<joshuah> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
<joshuah> /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/collect2 -dynamic -dylib -arch x86_64 -macosx_version_min 10.7.4 -weak_reference_mismatches non-weak -o libController.dylib -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/x86_64 -L/usr/lib/gcc/i686-apple-darwin11/4.2.1/x86_64 -L/usr/lib/i686-apple-darwin11/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc -L/usr/lib/gcc/i686-
<thelema_> to perform this last command, g++ will call libtool, and I'm curious on that invocation
<thelema_> whoa, maybe use pastebin for such large amounts of text
<joshuah> yeah, just thought so too :)
<thelema_> or just paste the libtool line
<thelema_> can you verify that copy.a has _caml_code_area_start?
<thelema_> I bet you'd get that error if you removed Controller.o and output.a from the command line
<joshuah> it has
<thelema_> is it possible it was compiled in 32-bit mode, and not 64-bit?
<joshuah> nm copy.a | grep _caml_code_area_start gives me 4 lines
<joshuah> i uninstalled ocaml, and compiled it myself by hand, it the configure script autodetected 64bit
<joshuah> i had the same error with that self-compiled version, so i switched back the version provided by homebrew. as far as i know, they compile packages, after downloading
<joshuah> and it only happend for the dylib, not for .a or executables
<thelema_> well, I think we've reduced the problem down to your libasmrun.a not being compatible with ... dynamic linking?
<joshuah> seems like it
<thelema_> I guess this is possible; in batteries, we disable the building of shared libraries (.cmxs) under macos...
<joshuah> hmm, that is not good news. is there any possible workaround, like building a static library, that include all the ocaml stuff and libasmrun.a, and then link that to my dylib?
tbrady has joined #ocaml
<thelema_> The coherentgraphics people might know - they do more ocaml on macos than most.
tbrady has quit [Client Quit]
<joshuah> is that part of ocaml? i mean, can i reach them over the same mailinglist? or do they have a channel on irc?
<thelema_> coherentgraphics is a UK company doing PDF handling in ocaml
<joshuah> ah, ok
<thelema_> I might make a post to the caml-list indicating your problem (especially this last error), and your goal, and see what comes back.
<joshuah> i already posted a couple of days ago, with an example zip. but i might not have explained attractive enough :)
<thelema_> oh, yes you did... hmmm
<thelema_> yes, not attractive enough.
<thelema_> also, why copy libasmrun.a to copy.a?
<joshuah> because i found that in the ocaml-ref.pdf :)
<thelema_> odd - first time I'm seeing that.
<joshuah> i first did it without copying, but then i thought, i better stick to the rules, 1:1 :)
<thelema_> maybe there is a reason - I don't know it, though.
<joshuah> i tried both ways
<joshuah> i will repost my email again, hopefully a bit more attractive
<joshuah> crazy, seems to work withou copy.a ...
<thelema_> ... maybe libasmrun.a doesn't need to be linked into the dll?
<joshuah> no, i replaces copy.a by /usr/..../libasmrun.a
<joshuah> replaced
<thelema_> oh. hmmm.
<joshuah> i will just check, if it really works, but that will take a couple of minutes
mariano has joined #ocaml
mariano has quit [Client Quit]
mariano has joined #ocaml
<joshuah> ah, no, just mistyped an option. problem still occurs
ftrvxmtrx has quit [Quit: Leaving]
mika1 has quit [Quit: Leaving.]
cago has quit [Quit: Leaving.]
mmajchrzak_ has joined #ocaml
mort___ has quit [Quit: Leaving.]
tbrady has joined #ocaml
Znudzon has quit [Ping timeout: 248 seconds]
jaar has quit [Ping timeout: 240 seconds]
mmajchrzak_ has quit [Quit: Leaving]
mnabil has quit [Ping timeout: 248 seconds]
osa1 has joined #ocaml
emmanuel__ has joined #ocaml
mcstar has joined #ocaml
emmanuel__ has quit [Quit: @+]
<joshuah> go to go, thanks for the help
joshuah has left #ocaml []
ankit9 has quit [Ping timeout: 250 seconds]
Znudzon has joined #ocaml
silver_ has quit [Remote host closed the connection]
eni has quit [Ping timeout: 250 seconds]
ankit9 has joined #ocaml
djcoin has quit [Quit: WeeChat 0.3.2]
Submarine has quit [Ping timeout: 240 seconds]
beckerb has quit [Ping timeout: 245 seconds]
testcocoon has joined #ocaml
osa1 has quit [Ping timeout: 248 seconds]
emmanuel__ has joined #ocaml
emmanuel__ has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
pangoafk is now known as pango
avsm has quit [Quit: Leaving.]
Submarine has joined #ocaml
Cyanure has joined #ocaml
sepp2k has joined #ocaml
eni has joined #ocaml
BiDOrD has quit [Read error: Operation timed out]
BiDOrD has joined #ocaml
<hcarty> thelema_: Is there anything beyond this which should be required to point a Batteries 1.x program to the location of the appropriate Camomile data? export CAMOMILE_BASE=/path/to/share/camomile/ && ./batteries_program
Xizor has joined #ocaml
<thelema_> hcarty: what version of camomile?
<thelema_> hcarty: if 0.8.*, use CAMOMILE_DIR per // outgoing credit, by VC
<thelema_> if 0.7, then you're right.
ocp has joined #ocaml
ocp has left #ocaml []
eni has quit [Ping timeout: 246 seconds]
osa1 has joined #ocaml
emmanuelux has quit [Quit: emmanuelux]
emmanuelux has joined #ocaml
mariano has quit [Read error: Connection reset by peer]
osa1_ has joined #ocaml
osa1 has quit [Ping timeout: 246 seconds]
<hcarty> thelema_: I tried both CAMOMILE_BASE and CAMOMILE_DIR - this one should be 0.8.1.
<hcarty> No luck sadly. I'll have to take another look tomorrow.
<hcarty> thelema_: Thanks for the pointer. Is that the Camomile interface Batteries 1.4 uses?
<thelema_> hmm, 0.8.1 should be CAMOMILE_BASE
<thelema_> it depends on the version of camomile.
<hcarty> That's what it looks like
<thelema_> the file you're pointing to should be the one that you're using for 0.8.1
osa1_ has quit [Client Quit]
<thelema_> for 0.8.2, there's a different file that uses the Dyn interface I linked to
<hcarty> I'm fairly certain it's 0.8.1 as it's pulled from oasis-db via odb.ml
<thelema_> ocamlfind query camomile
<hcarty> camomile (version: 0.8.1) -- according to ocamlfind list
<thelema_> huh, I wonder why we don't have 0.8.2 in oasis-db...
<thelema_> anyway, then CAMOMILE_BASE SHOULD work
<hcarty> I tried a minimal example (open Batteries let () = print_endline "Hello")
<hcarty> It immediately raises Not_found
<thelema_> you're setting it to a directory containing subdirs "database", etc?
<hcarty> thelema_: Maybe because Batteries 2.0 was looking close for a while? So Camomile was less pressing from a Batteries point of view
<thelema_> yes, that's probably why.
<hcarty> thelema_: Yes. I compiled a program with an ocamlbrew-installed OCaml + odb'd libraries.
<thelema_> you're using absolute paths?
<hcarty> then moved ~/ocamlbrew to ~/ocamlbrew-BAK and point CAMOMILE_BASE to the new absolute path
<thelema_> something to fix, I guess.
<hcarty> thelema_: Possibly. I wasn't sure I was missing something. It's not hugely pressing at the moment.
<thelema_> maybe the easiest fix is putting camomile 0.8.2 in oasis-db, and letting the problem be camomile's fault.
<hcarty> thelema_: I'm happy with that solution as well.
<hcarty> thelema_: Off for now, but thanks for the time
<thelema_> hcarty: thanks for the bug report
sivoais has quit [Ping timeout: 245 seconds]
milosn_ is now known as milosn
sivoais has joined #ocaml
ankit9 has quit [Ping timeout: 248 seconds]
Cyanure has quit [Remote host closed the connection]
hnrgrgr has quit [Quit: leaving]
hnrgrgr has joined #ocaml
tbrady has quit [Read error: Connection reset by peer]
hnrgrgr has quit [Client Quit]
hnrgrgr has joined #ocaml
tbrady has joined #ocaml
BiDOrD has quit [Read error: Connection reset by peer]
BiDOrD_ has joined #ocaml
xcombelle has quit [Remote host closed the connection]
ocp has joined #ocaml
ocp has left #ocaml []
BiDOrD_ has quit [Remote host closed the connection]
BiDOrD has joined #ocaml
BiDOrD has quit [Remote host closed the connection]
BiDOrD has joined #ocaml
BiDOrD has quit [Remote host closed the connection]
BiDOrD has joined #ocaml
milosn has quit [Ping timeout: 248 seconds]
Ninju has joined #ocaml
BiDOrD has quit [Remote host closed the connection]
BiDOrD has joined #ocaml
<Ninju> Hi, I need to deliver a build to a client on OS X, how is it best to do that?
<_habnabit> Ninju, make a binary?
<Ninju> hold on, just trying to remember what the problem was with that
milosn has joined #ocaml
<Ninju> this was the error: "dyld: Library not loaded: /opt/local/lib/libX11.6.dylib"
<_habnabit> the error from what?
<_habnabit> also fwiw I successfully make OS X binaries of ocaml programs quite often
<Ninju> so theres 2 of us, my friend sent the binary to me to make sure it worked and it came up with that when i ran it
<_habnabit> okay, so, it sounds like it was dynamically linked against a libX11 that you don't have
<_habnabit> is it a graphical application?
<Ninju> yeah
<Ninju> we're using ocamlsdl
<_habnabit> statically link it instead of dynamically linking it, then
_andre has quit [Quit: leaving]
<_habnabit> you can pass the .a files directly to the linker or -L a directory containing only the .a files
gnuvince has quit [Ping timeout: 255 seconds]
<Ninju> ok thanks
ulfdoz has joined #ocaml
ImAlsoGreg has quit [Remote host closed the connection]
Submarine has quit [Quit: Leaving]
milosn has quit [Read error: Connection reset by peer]
<adrien> grrrr cairo
<adrien> > ocamlc.opt -I +lablgtk cairo_lablgtk.mli
<mcstar> adrien: try using ocamlfind
<adrien> mcstar: oh, I know :-)
<mcstar> :)
<adrien> I can't remember: is ocaml-cairo pretty much dead?
<adrien> because it won't build with newer versions of lablgtk2
<adrien> and ocamlviz and mlpost depend on it
<Ninju> 46 # Eventually set include- and library-paths, libraries to link,
<Ninju> 47 # additional compilation-, link- and ocamlyacc-flags
<Ninju> 48 # Path- and library information needs not be written with "-I" and such...
<Ninju> 49 # Define THREADS if you need it, otherwise leave it unset (same for
<Ninju> 50 # USE_CAMLP4)!
<Ninju> 51
<Ninju> whoops
<Ninju> wrong window sorry
milosn has joined #ocaml
milosn has quit [Read error: Connection reset by peer]
<mcstar> goto 46
milosn has joined #ocaml
Tobu_ has quit [Remote host closed the connection]
Tobu has joined #ocaml
gnuvince has joined #ocaml
ulfdoz has quit [Ping timeout: 248 seconds]
smondet has quit [Quit: Leaving]
hto_ has quit [Quit: leaving]
Xizor has quit [Ping timeout: 260 seconds]
lamawithonel has quit [Remote host closed the connection]
hyperboreean has quit [Ping timeout: 265 seconds]
hyperboreean has joined #ocaml
eikke has quit [Ping timeout: 246 seconds]
mcstar has quit [Quit: mcstar]
sepp2k has quit [Remote host closed the connection]