public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Strange problem trying to compile tcpd
@ 2000-05-03  8:49 Michael Ring
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Ring @ 2000-05-03  8:49 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1970 bytes --]

I would like to get my hands on your patches. Could you please send them to
me...

I cannot promise that they will show up somewhere in the near future but
nevertheless
I am interested.

Greetings,

Michael Ring

-----Ursprüngliche Nachricht-----
Von: cygwin-owner
Gesendet am: Mittwoch, 3. Mai 2000 17:26
An: cygwin
Betreff: RE: Strange problem trying to compile tcpd

-----BEGIN PGP SIGNED MESSAGE-----

Thanks, I just got inetd working with tcpd... btw, is there somewhere
I can send my source for others to use, I noticed that it does not
exist in any of the archives that I looked through.

- -----Original Message-----
From: corinna@snoopy.vinschen.de [ mailto:corinna@snoopy.vinschen.de]On
Behalf Of Corinna Vinschen
Sent: Wednesday, May 03, 2000 11:12 AM
To: Prentis Brooks
Cc: cygwin
Subject: Re: Strange problem trying to compile tcpd


Prentis Brooks wrote:
> btw, does someone have a working inetd.conf that I can look at?  one
> does not ship on the CD and my only other refs are Solaris :)

The format is the same. If you're using the inetutils port you
need not using tcpd but call the deamons immediatly:

Instead of

ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd

use

ftp     stream  tcp     nowait  root    /usr/local/libexec/in.ftpd

Corinna

-----BEGIN PGP SIGNATURE-----
Version: PGP for Business Security 5.5

iQEVAwUBORBEy0Xi2H7R/ZSxAQE5eQf7Bg+KVAhj3sc7nzUy4ur/XDuV5Xy8x8/B
n12omuuiT7P7tFJo5sUoS1UuhaCeYPbMKzbho1lIJzwHGwEOiJUFc3eymSf8Q4du
uyjWyJCaBM/3mxYnrVToAILJRw/uv/atC0aIJg149LirDoegn1t4JPpmpKLvZjbD
TdWZ32sNxJk+hie4+rYadfrUXYJZsOt06XghBeCbDb1zYrsbEuFyB2u8sowz2pIR
fcTBimvPDDPPZa+VfH9T3h+4MV0gNOpvuPRbeleNskTrSD6lMAVWT/nUEn7kmqNW
B50pBl2jU61ckjYcNqV1xK+xBfWl4mPKBqAzlXXy/ixX3Osby1yHQw==
=4+Qf
-----END PGP SIGNATURE-----


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Strange problem trying to compile tcpd
  2000-05-03  8:25           ` Prentis Brooks
@ 2000-05-03  8:55             ` Corinna Vinschen
  0 siblings, 0 replies; 10+ messages in thread
From: Corinna Vinschen @ 2000-05-03  8:55 UTC (permalink / raw)
  To: Prentis Brooks; +Cc: cygwin

Prentis Brooks wrote:
> Thanks, I just got inetd working with tcpd... btw, is there somewhere
> I can send my source for others to use, I noticed that it does not
> exist in any of the archives that I looked through.

Ask Michael Hirmke ( mailto:mh@mike.franken.de ). He masters
the cygwin mirror and porters directories on ftp.franken.de.

I would be glad if you could send me your tcpd port as tar.gz file.
Is this possible?

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Strange problem trying to compile tcpd
  2000-05-03  8:15         ` Corinna Vinschen
@ 2000-05-03  8:25           ` Prentis Brooks
  2000-05-03  8:55             ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: Prentis Brooks @ 2000-05-03  8:25 UTC (permalink / raw)
  To: cygwin

-----BEGIN PGP SIGNED MESSAGE-----

Thanks, I just got inetd working with tcpd... btw, is there somewhere
I can send my source for others to use, I noticed that it does not
exist in any of the archives that I looked through.

- -----Original Message-----
From: corinna@snoopy.vinschen.de [ mailto:corinna@snoopy.vinschen.de]On
Behalf Of Corinna Vinschen
Sent: Wednesday, May 03, 2000 11:12 AM
To: Prentis Brooks
Cc: cygwin
Subject: Re: Strange problem trying to compile tcpd


Prentis Brooks wrote:
> btw, does someone have a working inetd.conf that I can look at?  one
> does not ship on the CD and my only other refs are Solaris :)

The format is the same. If you're using the inetutils port you
need not using tcpd but call the deamons immediatly:

Instead of

ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd

use

ftp     stream  tcp     nowait  root    /usr/local/libexec/in.ftpd

Corinna

-----BEGIN PGP SIGNATURE-----
Version: PGP for Business Security 5.5

iQEVAwUBORBEy0Xi2H7R/ZSxAQE5eQf7Bg+KVAhj3sc7nzUy4ur/XDuV5Xy8x8/B
n12omuuiT7P7tFJo5sUoS1UuhaCeYPbMKzbho1lIJzwHGwEOiJUFc3eymSf8Q4du
uyjWyJCaBM/3mxYnrVToAILJRw/uv/atC0aIJg149LirDoegn1t4JPpmpKLvZjbD
TdWZ32sNxJk+hie4+rYadfrUXYJZsOt06XghBeCbDb1zYrsbEuFyB2u8sowz2pIR
fcTBimvPDDPPZa+VfH9T3h+4MV0gNOpvuPRbeleNskTrSD6lMAVWT/nUEn7kmqNW
B50pBl2jU61ckjYcNqV1xK+xBfWl4mPKBqAzlXXy/ixX3Osby1yHQw==
=4+Qf
-----END PGP SIGNATURE-----


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Strange problem trying to compile tcpd
  2000-05-03  6:28       ` Prentis Brooks
@ 2000-05-03  8:15         ` Corinna Vinschen
  2000-05-03  8:25           ` Prentis Brooks
  0 siblings, 1 reply; 10+ messages in thread
From: Corinna Vinschen @ 2000-05-03  8:15 UTC (permalink / raw)
  To: Prentis Brooks; +Cc: cygwin

Prentis Brooks wrote:
> btw, does someone have a working inetd.conf that I can look at?  one
> does not ship on the CD and my only other refs are Solaris :)

The format is the same. If you're using the inetutils port you
need not using tcpd but call the deamons immediatly:

Instead of

ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd

use

ftp     stream  tcp     nowait  root    /usr/local/libexec/in.ftpd

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Strange problem trying to compile tcpd
  2000-05-03  6:15     ` Corinna Vinschen
@ 2000-05-03  6:28       ` Prentis Brooks
  2000-05-03  8:15         ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: Prentis Brooks @ 2000-05-03  6:28 UTC (permalink / raw)
  To: cygwin

-----BEGIN PGP SIGNED MESSAGE-----

Cool... percent_m.c does use an extern call, I will try that...

btw, does someone have a working inetd.conf that I can look at?  one
does not ship on the CD and my only other refs are Solaris :)

- -----Original Message-----
From: corinna@snoopy.vinschen.de [ mailto:corinna@snoopy.vinschen.de]On
Behalf Of Corinna Vinschen
Sent: Wednesday, May 03, 2000 9:14 AM
To: Prentis Brooks
Cc: cygwin
Subject: Re: Strange problem trying to compile tcpd


Prentis Brooks wrote:
> [...]
> Ok... that is not it... percent_m.c does include <errno.h>
> 
> I have a feeling that for some reason the error is occurring in the
> library.  The real frustrating part is that I got this work on b20,
> but inadvertently deleted my source in a system rebuild.  Anyone got
> any other ideas?

Did you search for extern declarations of sys_nerr and sys_errlist?
Some programs do a

	extern int sys_nerr;
	extern char *sys_errlist[]

which is wrong for Cygwin.

You'll have to do sth like that:

#ifdef __CYGWIN__
#  define sys_nerr _sys_nerr
#  define sys_errlist _sys_errlist
#else
   extern int sys_nerr;
   extern char *sys_errlist[]
#endif

Corinna

-----BEGIN PGP SIGNATURE-----
Version: PGP for Business Security 5.5

iQEVAwUBORApmkXi2H7R/ZSxAQFgVAgAlfh3EqS+XdWJQ7oZUErQMw/ZKqHQdbus
7IQk9rB5xvb90gbDIh9odnvyWrGzASjbuxPxwU2xSVBSxB7ItcBNgcSfZaLsdpfP
F7OLkDq7T4h4ccbZJQUZ4pu+fCfbLgkMyTml+MYEaNKqYjHPbJuBoHoLpz43PQAL
yYCwKlMDDx8U63fSBJNybMeaYWYwtHayZwhEwHaeYGTQbMA0ME5jAxR/f3xgQX2S
TxHCaQJ4lJmlUbgCs0wJeoc2f9j8taKC+vSAkSjlDGd8vR3c4NPjb/5lOdlBEHeG
1bKNMQ7JPJadhlKn6FwBhLdPjY1Z5yZyu3FEv2AqlKkP4N0rIvSrng==
=EvLM
-----END PGP SIGNATURE-----


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Strange problem trying to compile tcpd
  2000-05-03  5:30   ` Prentis Brooks
@ 2000-05-03  6:15     ` Corinna Vinschen
  2000-05-03  6:28       ` Prentis Brooks
  0 siblings, 1 reply; 10+ messages in thread
From: Corinna Vinschen @ 2000-05-03  6:15 UTC (permalink / raw)
  To: Prentis Brooks; +Cc: cygwin

Prentis Brooks wrote:
> [...]
> Ok... that is not it... percent_m.c does include <errno.h>
> 
> I have a feeling that for some reason the error is occurring in the
> library.  The real frustrating part is that I got this work on b20,
> but inadvertently deleted my source in a system rebuild.  Anyone got
> any other ideas?

Did you search for extern declarations of sys_nerr and sys_errlist?
Some programs do a

	extern int sys_nerr;
	extern char *sys_errlist[]

which is wrong for Cygwin.

You'll have to do sth like that:

#ifdef __CYGWIN__
#  define sys_nerr _sys_nerr
#  define sys_errlist _sys_errlist
#else
   extern int sys_nerr;
   extern char *sys_errlist[]
#endif

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Strange problem trying to compile tcpd
  2000-05-02 15:13 ` Corinna Vinschen
  2000-05-03  4:54   ` Prentis Brooks
@ 2000-05-03  5:30   ` Prentis Brooks
  2000-05-03  6:15     ` Corinna Vinschen
  1 sibling, 1 reply; 10+ messages in thread
From: Prentis Brooks @ 2000-05-03  5:30 UTC (permalink / raw)
  To: cygwin

-----BEGIN PGP SIGNED MESSAGE-----

Ok... that is not it... percent_m.c does include <errno.h>

I have a feeling that for some reason the error is occurring in the
library.  The real frustrating part is that I got this work on b20,
but inadvertently deleted my source in a system rebuild.  Anyone got
any other ideas?

- -----Original Message-----
From: corinna@snoopy.vinschen.de [ mailto:corinna@snoopy.vinschen.de]On
Behalf Of Corinna Vinschen
Sent: Tuesday, May 02, 2000 6:12 PM
To: Prentis Brooks
Cc: Gnuwin
Subject: Re: Strange problem trying to compile tcpd


Prentis Brooks wrote:
> [...]
> libwrap.a(percent_m.o)(.text+0x44):percent_m.c: undefined reference
to
> `sys_nerr
> '
> libwrap.a(percent_m.o)(.text+0x60):percent_m.c: undefined reference
to
> `sys_errl
> ist'

You'll have to add a `#include <errno.h>' to percnt_m.c.

Corinna

-----BEGIN PGP SIGNATURE-----
Version: PGP for Business Security 5.5

iQEVAwUBORAb/kXi2H7R/ZSxAQGFvwf+KuqrpKkn8bNk3nBS9zA6xdx1gFAY/QXS
sew3+TSVCsmZxyWi2hLXLVqY1rqRBBts/kekAc0g+txCh6yrGl0DREgD6KycCl2T
rZWWYLOIt2Ouf9YzbVaMZcqcorp9sebPjhggUO/aTWphMXfl/orPG5Sf2syU2ujP
GKTiUY1giNrqVt27FCtAtSMCVZe4DdYxbyziCxXTfgCL/R3wuJIY4DlSkaRvAgTT
guKj3uwvTI31iUVMnc/oD0+CsSlMFl0wjaP8CiOIjtAdCKmLtwfo0hli/o5pK4jn
VIj+CLZxLhMZsGHQPq6t3YnzLOucMI7kI2Utj4BmsDV0l8vo+cCq2g==
=PSFk
-----END PGP SIGNATURE-----


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Strange problem trying to compile tcpd
  2000-05-02 15:13 ` Corinna Vinschen
@ 2000-05-03  4:54   ` Prentis Brooks
  2000-05-03  5:30   ` Prentis Brooks
  1 sibling, 0 replies; 10+ messages in thread
From: Prentis Brooks @ 2000-05-03  4:54 UTC (permalink / raw)
  To: cygwin

-----BEGIN PGP SIGNED MESSAGE-----

*smacks head*  DOH!!!   I should have seen that :)  Thanks, Corinna

- -----Original Message-----
From: cygwin-owner@sourceware.cygnus.com
[ mailto:cygwin-owner@sourceware.cygnus.com]On Behalf Of Corinna
Vinschen
Sent: Tuesday, May 02, 2000 6:12 PM
To: Prentis Brooks
Cc: Gnuwin
Subject: Re: Strange problem trying to compile tcpd


Prentis Brooks wrote:
> [...]
> libwrap.a(percent_m.o)(.text+0x44):percent_m.c: undefined reference
to
> `sys_nerr
> '
> libwrap.a(percent_m.o)(.text+0x60):percent_m.c: undefined reference
to
> `sys_errl
> ist'

You'll have to add a `#include <errno.h>' to percnt_m.c.

Corinna

- --
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-----BEGIN PGP SIGNATURE-----
Version: PGP for Business Security 5.5

iQEVAwUBORATO0Xi2H7R/ZSxAQFapwf/elH51hXb+4TvVsS8c3c6PISqNH/+ZlXX
bufWVYTCLjl0gPmyEhKJflli3/5QL06tMqZVzYOLyq9PjSKAanA6HRhqHiosXr/u
WITYi4IwulFjtSxV/4p9rq/pErTMs5WMUClIyC9PmI+QGMN5grb2a0KqT3TCSZ9X
GOvADKAi901W2h3BUabIOYe1CCQ4SLo+3JuCGDXXuPRoKRYn4d+s/s+b72hCVmHJ
QzLf/2Jb2Nry0DMg08EytKEGmovrQjBg9kFw77MxWvV495cLS1Lm9Rjvr0BoYcYW
K8VDcPHXjNBkLY4N0EJH11HggnL77eeJqhN0WDM1etjtCVw0/J4UwQ==
=U++u
-----END PGP SIGNATURE-----


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Strange problem trying to compile tcpd
  2000-05-02 13:11 Prentis Brooks
@ 2000-05-02 15:13 ` Corinna Vinschen
  2000-05-03  4:54   ` Prentis Brooks
  2000-05-03  5:30   ` Prentis Brooks
  0 siblings, 2 replies; 10+ messages in thread
From: Corinna Vinschen @ 2000-05-02 15:13 UTC (permalink / raw)
  To: Prentis Brooks; +Cc: Gnuwin

Prentis Brooks wrote:
> [...]
> libwrap.a(percent_m.o)(.text+0x44):percent_m.c: undefined reference to
> `sys_nerr
> '
> libwrap.a(percent_m.o)(.text+0x60):percent_m.c: undefined reference to
> `sys_errl
> ist'

You'll have to add a `#include <errno.h>' to percnt_m.c.

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Strange problem trying to compile tcpd
@ 2000-05-02 13:11 Prentis Brooks
  2000-05-02 15:13 ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: Prentis Brooks @ 2000-05-02 13:11 UTC (permalink / raw)
  To: Gnuwin

-----BEGIN PGP SIGNED MESSAGE-----

I made the following change to the Makefile

#######################################
# Cygwin make
cygwin:
        @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
        LIBS= RANLIB=ranlib ARFLAGS=rv \
        AUX_OBJ=setenv.o \
        NETGROUP= TLI= EXTRA_CFLAGS="-DBROKEN_SO_LINGER" all

########################################

extrapolating as best as I can from the other templates.  I also set
the system to use the following REAL_DAEMON_DIR=/contrib/libexec

NOTE: Cygwin was installed to C:\

The following is where the make breaks:
################################

"C:/bin/bash.exe"-2.03$ !make
make REAL_DAEMON_DIR=/contrib/libexec cygwin
make[1]: Entering directory `/d/tcp_wrappers_7.6'
gcc -O -DFACILITY=LOG_MAIL       -DHOSTS_ACCESS -DPARANOID 
- -DGETPEERNAME_BUG -D
BROKEN_FGETS -DLIBC_CALLS_STRTOK   -DDAEMON_UMASK=022
- -DREAL_DAEMON_DIR=\"/contr
ib/libexec\"   -DSEVERITY=LOG_INFO       -DRFC931_TIMEOUT=10 
- -DHOSTS_DENY=\"/et
c/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"   -DBROKEN_SO_LINGER
 -Dvsyslo
g=myvsyslog -DALWAYS_HOSTNAME -o tcpd tcpd.o libwrap.a
libwrap.a(percent_m.o)(.text+0x44):percent_m.c: undefined reference to
`sys_nerr
'
libwrap.a(percent_m.o)(.text+0x60):percent_m.c: undefined reference to
`sys_errl
ist'
collect2: ld returned 1 exit status
make[1]: *** [tcpd] Error 1
make[1]: Leaving directory `/d/tcp_wrappers_7.6'
make: *** [cygwin] Error 2

###################################
Any ideas?
-----BEGIN PGP SIGNATURE-----
Version: PGP for Business Security 5.5

iQEVAwUBOQ82ZkXi2H7R/ZSxAQEZ0QgAmsMXphtcnbGy8Cl27MGXTS2ww9WLka/J
kgBSy4MUPDZVMM+CYkH7tcolicbDM/bXupiegxG4dEO79/kWRgQ5RZWdGNyV3XUn
rry0Q3kvUMtEle8RTjPIooPydYrzR/Iyh/GrXeKhnIzt475f3ZG9OjTN8UU1Ro3o
XdIZCBGCbwZY/ahL08Bu+uwZOEgdU7Ms4YbmgPwPzhOc/H8rG1aPqE0Yl1M8mQ9L
8Eq61zmWT8HmUm5Tq4gaJPj81GJDT0Mary7wArfe7twPxIz6DpDXPR3kaY/kpPfC
EXiIA8TxlEpg3g29myJAXYV7+TmCTaq96TMac8OMUTm26kkpb50iAQ==
=CQqN
-----END PGP SIGNATURE-----


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2000-05-03  8:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-03  8:49 Strange problem trying to compile tcpd Michael Ring
  -- strict thread matches above, loose matches on Subject: below --
2000-05-02 13:11 Prentis Brooks
2000-05-02 15:13 ` Corinna Vinschen
2000-05-03  4:54   ` Prentis Brooks
2000-05-03  5:30   ` Prentis Brooks
2000-05-03  6:15     ` Corinna Vinschen
2000-05-03  6:28       ` Prentis Brooks
2000-05-03  8:15         ` Corinna Vinschen
2000-05-03  8:25           ` Prentis Brooks
2000-05-03  8:55             ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).