ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] whois(1) doesn't cross-compile
@ 2004-06-30 14:49 Andrey Rahmatullin
  2004-06-30 16:08 ` Dmitry V. Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Rahmatullin @ 2004-06-30 14:49 UTC (permalink / raw)
  To: ALT Linux general discussion list

[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

Решил тут собрать 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) не портируемый или как?

-- 
WBR, wRAR (ALT Linux Team)

> > [...] но сама работа Сизифа вполне стабильна
> Только перидоически что-то важное отваливается...
А вы не чешите это важное, оно и не отвалится :-)
		-- morozov in sisyphus@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] whois(1) doesn't cross-compile
  2004-06-30 14:49 [Comm] whois(1) doesn't cross-compile Andrey Rahmatullin
@ 2004-06-30 16:08 ` Dmitry V. Levin
  2004-06-30 16:21   ` Andrey Rahmatullin
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2004-06-30 16:08 UTC (permalink / raw)
  To: ALT Linux general discussion list

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] whois(1) doesn't cross-compile
  2004-06-30 16:08 ` Dmitry V. Levin
@ 2004-06-30 16:21   ` Andrey Rahmatullin
  2004-07-01  6:03     ` Alex Gorbachenko
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Rahmatullin @ 2004-06-30 16:21 UTC (permalink / raw)
  To: ALT Linux general discussion list

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

On Wed, Jun 30, 2004 at 08:08:44PM +0400, Dmitry V. Levin wrote:
>CONFORMING TO
>       SVr4, SVID, POSIX, X/OPEN, BSD 4.3
Какому из этих стандартов соответствует винда?

-- 
WBR, wRAR (ALT Linux Team)

Иначе будет как всегда - кто-то один сделает -> все согласятся и окажется
криво ;-(
		-- rider in devel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] whois(1) doesn't cross-compile
  2004-06-30 16:21   ` Andrey Rahmatullin
@ 2004-07-01  6:03     ` Alex Gorbachenko
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Gorbachenko @ 2004-07-01  6:03 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

On Wed, 30 Jun 2004 22:21:02 +0600
Andrey Rahmatullin <wrar@altlinux.ru> wrote:

> >       SVr4, SVID, POSIX, X/OPEN, BSD 4.3
> Какому из этих стандартов соответствует винда?

если накатить sfu, то POSIX, насколько я помню.

--- Sylpheed Claws 0.9.12
* Origin: Низведение плюшками.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-01  6:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30 14:49 [Comm] whois(1) doesn't cross-compile Andrey Rahmatullin
2004-06-30 16:08 ` Dmitry V. Levin
2004-06-30 16:21   ` Andrey Rahmatullin
2004-07-01  6:03     ` Alex Gorbachenko

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