From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux general discussion list <community@altlinux.ru>
Subject: Re: [Comm] whois(1) doesn't cross-compile
Date: Wed, 30 Jun 2004 20:08:44 +0400
Message-ID: <20040630160844.GA22007@basalt.office.altlinux.org> (raw)
In-Reply-To: <20040630144933.GA8265@wrars-comp.wrarsdomain>
[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]
On Wed, Jun 30, 2004 at 08:49:33PM +0600, Andrey Rahmatullin wrote:
> Решил тут собрать whois под mingw32. Обрадовался, что весь его makefile
> нужен только для команды $(CC) -O2 whois.c -o whois и начал пробовать. Для
> начала пришлось вырезать из whois.c 3 хидера (sys/socket.h, netinet/in.h,
> netdb.h) и воткнуть ws2tcpip.h.
> Компилю. Получаю `SIGALRM' undeclared. Поискал в
> /usr/i386-mingw32msvc/include - не нашел. Не думая закомментировал
> signal(SIGALRM, alarm_handler);
> Компилится - не линкуется. Подумал, добавил -lws2_32. Получил undefined
> reference to `alarm'. Поискал в /usr/i386-mingw32msvc/lib - не нашел.
> Почитал код. Подумал "В морг". Вызов alarm(2) не портируемый или как?
В alarm(2) написано:
NAME
alarm - set an alarm clock for delivery of a signal
SYNOPSIS
#include <unistd.h>
unsigned int alarm(unsigned int seconds);
CONFORMING TO
SVr4, SVID, POSIX, X/OPEN, BSD 4.3
Очевидно, проблема в сборочной среде.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-06-30 16:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 14:49 Andrey Rahmatullin
2004-06-30 16:08 ` Dmitry V. Levin [this message]
2004-06-30 16:21 ` Andrey Rahmatullin
2004-07-01 6:03 ` Alex Gorbachenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040630160844.GA22007@basalt.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git