[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#865883: marked as done (ocaml-mingw-w64: missing link flags while creating custom bytecode binaries)



Your message dated Sun, 28 Nov 2021 22:32:13 +0000
with message-id <[🔎] E1mrSiT-0001VN-Sw@fasolo.debian.org>
and subject line Bug#1000569: Removed package(s) from unstable
has caused the Debian Bug report #865883,
regarding ocaml-mingw-w64: missing link flags while creating custom bytecode binaries
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
865883: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865883
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: ocaml-mingw-w64
Version: 4.01.0~20140328-1+b2
Severity: important

Trying to compile a "custome" bytecode executable with x86_64-w64-mingw32-ocamlc
or i686-w64-mingw32-ocamlc fail at link time.

The following commands

cat > main.ml <<EOF
print_endline "Hello world"
EOF
x86_64-w64-mingw32-ocamlc main.ml -o main.exe -custom

lead to these errors

** Cannot resolve symbols for descriptor object:
 WSACleanup
 WSAStartup
 connect
 gethostbyname
 getsockopt
 htons
 inet_addr
 setsockopt
 socket
File "main.ml", line 1:
Error: Error while building custom runtime system

Instead by using this command

x86_64-w64-mingw32-ocamlc main.ml -o main.exe -custom -cclib -lws2_32

the executable is correctly created (tested using wine).

As far as I can tell, -lws2_32 should be automatically added by
ocamlc while creating custom bytecode executable.

The same issue applies while linking a shared library using -output-obj
option

x86_64-w64-mingw32-ocamlc main.ml -output-obj -o main.so
** Cannot resolve symbols for descriptor object:
 WSACleanup
 WSAStartup
 connect
 gethostbyname
 getsockopt
 htons
 inet_addr
 setsockopt
 socket
File "main.ml", line 1:
Error: Error while building custom runtime system


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages ocaml-mingw-w64 depends on:
ii  ocaml-mingw-w64-i686    4.01.0~20140328-1+b2
ii  ocaml-mingw-w64-x86-64  4.01.0~20140328-1+b2

ocaml-mingw-w64 recommends no packages.

ocaml-mingw-w64 suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 4.01.0~20140328-1+rm

Dear submitter,

as the package mingw-ocaml has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1000569

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: