Mailing List Archive

Unsupported platform apue.c? (FreeBSD 4.2-STABLE)
--QnBU6tTI9sljzm9u
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Howdy. I tried getting mod_backhand to work earlier today on a=20
fresh build from FreeBSD 4.2-STABLE. No dice. Here's my uname and the=20
compile error. I tried playing around for a bit but didn't have much=20
success.

> uname -a
FreeBSD rand.tgd.net 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Jan 31 12:44:39 =
PST 2001 sean@rand.tgd.net:/usr/src/sys/compile/RAND i386

cc -c -I../.. -I/usr/libdata/perl/5.00503/mach/CORE -I../../os/unix -I../..=
/include -funsigned-char -DMOD_PERL -DUSE_PERL_SSI `../../apaci` mod_back=
hand.c
cc -c -I../.. -I/usr/libdata/perl/5.00503/mach/CORE -I../../os/unix -I../..=
/include -funsigned-char -DMOD_PERL -DUSE_PERL_SSI `../../apaci` back_uti=
l.c
cc -c -I../.. -I/usr/libdata/perl/5.00503/mach/CORE -I../../os/unix -I../..=
/include -funsigned-char -DMOD_PERL -DUSE_PERL_SSI `../../apaci` apue.c
apue.c:322: #error Not a supported platform... patch it and mail me.. or ma=
il me uname -a
*** Error code 1

Stop in /usr/local/src/apache/apache_1.3.17/src/modules/backhand.
=20
-sc

--=20
Sean Chittenden sean@chittenden.org
C665 A17F 9A56 286C 5CFB 1DEA 9F4F 5CEF 1EDD FAAD

--QnBU6tTI9sljzm9u
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAjqAbY0ACgkQn09c7x7d+q3buACgk37TeY5Tm0vrDPi9773ehBeE
S9EAnj6EhF70TJBZMI8sH8JTE5ZNYek/
=XQr4
-----END PGP SIGNATURE-----

--QnBU6tTI9sljzm9u--
Unsupported platform apue.c? (FreeBSD 4.2-STABLE) [ In reply to ]
In apue.c, try adding:

#ifdef __FreeBSD__
#define _BSDISH
#endif

Right after:

#ifdef BSD
#define _BSDISH
#endif

If that works, let me know and I will add that in for next release.
Otherwise, I need a little more info. I only have a Free-4.0 box. Can you
send me the output of:

cc -dumpspecs

on your system.

Sean Chittenden wrote:
>
> Howdy. I tried getting mod_backhand to work earlier today on a
> fresh build from FreeBSD 4.2-STABLE. No dice. Here's my uname and the
> compile error. I tried playing around for a bit but didn't have much
> success.
>
> > uname -a
> FreeBSD rand.tgd.net 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Jan 31 12:44:39 PST 2001 sean@rand.tgd.net:/usr/src/sys/compile/RAND i386
-DMOD_PERL -DUSE_PERL_SSI `../../apaci` back_util.c
> cc -c -I../.. -I/usr/libdata/perl/5.00503/mach/CORE -I../../os/unix -I../../include -funsigned-char -DMOD_PERL -DUSE_PERL_SSI `../../apaci` apue.c
> apue.c:322: #error Not a supported platform... patch it and mail me.. or mail me uname -a
> *** Error code 1
>
> Stop in /usr/local/src/apache/apache_1.3.17/src/modules/backhand.

--
Theo Schlossnagle
1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7
Unsupported platform apue.c? (FreeBSD 4.2-STABLE) [ In reply to ]
--+JUInw4efm7IfTNU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Howdy. Yup, that worked with the sys/types.h in there. Here's
the patch if anyone needs it, but it looks Theo's already applied it to=20
CVS. Thanks! -sc


--- apue.c.orig Tue Feb 6 22:05:29 2001
+++ apue.c Tue Feb 6 22:04:46 2001
@@ -13,6 +13,7 @@
=20
#include <stdio.h>
#include <stdlib.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include <sys/stat.h>
@@ -38,6 +39,9 @@
#define _BSDISH
#endif
#ifdef BSD
+#define _BSDISH
+#endif
+#ifdef __FreeBSD__
#define _BSDISH
#endif
#ifdef SOLARIS2



On Tue, Feb 06, 2001 at 11:45:23PM -0500, Theo E. Schlossnagle wrote:
> Delivered-To: sean-apache-modbackhand-devel@chittenden.org
> Date: Tue, 06 Feb 2001 23:45:23 -0500
> From: "Theo E. Schlossnagle" <theo@omniti.com>
> Organization: Center for Networking and Distributed Systems
> X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.18 i686)
> X-Accept-Language: en
> To: Sean Chittenden <sean-apache-backhand-devel@chittenden.org>
> CC: Backhand development <backhand-devel@lists.backhand.org>
> Subject: Re: [mod_backhand-devel] Unsupported platform apue.c? (FreeBSD=
=20
> 4.2-STABLE)
> Errors-To: backhand-devel-admin@lists.backhand.org
> X-BeenThere: backhand-devel@lists.backhand.org
> X-Mailman-Version: 2.0beta2
> Precedence: bulk
> List-Id: mod_backhand -- developers list <backhand-devel.lists.backhand.o=
>=20
> In apue.c, try adding:
>=20
> #ifdef __FreeBSD__
> #define _BSDISH
> #endif
>=20
> Right after:
>=20
> #ifdef BSD
> #define _BSDISH
> #endif
>=20
> If that works, let me know and I will add that in for next release.=20
> Otherwise, I need a little more info. I only have a Free-4.0 box. Can y=
ou
> send me the output of:
>=20
> cc -dumpspecs
>=20
> on your system.
>=20
> Sean Chittenden wrote:
> >=20
> > Howdy. I tried getting mod_backhand to work earlier today on a
> > fresh build from FreeBSD 4.2-STABLE. No dice. Here's my uname and the
> > compile error. I tried playing around for a bit but didn't have much
> > success.
> >=20
> > > uname -a
> > FreeBSD rand.tgd.net 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Jan 31 12:44=
:39 PST 2001 sean@rand.tgd.net:/usr/src/sys/compile/RAND i386
> -DMOD_PERL -DUSE_PERL_SSI `../../apaci` back_util.c
> > cc -c -I../.. -I/usr/libdata/perl/5.00503/mach/CORE -I../../os/unix -I.=
./../include -funsigned-char -DMOD_PERL -DUSE_PERL_SSI `../../apaci` apue=
.c
> > apue.c:322: #error Not a supported platform... patch it and mail me.. o=
r mail me uname -a
> > *** Error code 1
> >=20
> > Stop in /usr/local/src/apache/apache_1.3.17/src/modules/backhand.
>=20
> --=20
> Theo Schlossnagle
> 1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
> 2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7
>=20
> _______________________________________________
> backhand-devel mailing list
> backhand-devel@lists.backhand.org
> http://lists.backhand.org/mailman/listinfo/backhand-devel

--=20
Sean Chittenden sean@chittenden.org
C665 A17F 9A56 286C 5CFB 1DEA 9F4F 5CEF 1EDD FAAD

--+JUInw4efm7IfTNU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAjqA5usACgkQn09c7x7d+q2vkACgpmn+IPkuKHFaS442qZF7giu1
STUAoKo9IzoFSYJ+i3yLVfcG/lc/zTqP
=SX8g
-----END PGP SIGNATURE-----

--+JUInw4efm7IfTNU--
Unsupported platform apue.c? (FreeBSD 4.2-STABLE) [ In reply to ]
Thanks1! This is in CVS now.

Sean Chittenden wrote:
> Howdy. Yup, that worked with the sys/types.h in there. Here's
> the patch if anyone needs it, but it looks Theo's already applied it to
> CVS. Thanks! -sc
>
> --- apue.c.orig Tue Feb 6 22:05:29 2001
> +++ apue.c Tue Feb 6 22:04:46 2001
> @@ -13,6 +13,7 @@
>
> #include <stdio.h>
> #include <stdlib.h>
> +#include <sys/types.h>
> #include <sys/socket.h>
> #include <sys/uio.h>
> #include <sys/stat.h>
> @@ -38,6 +39,9 @@
> #define _BSDISH
> #endif
> #ifdef BSD
> +#define _BSDISH
> +#endif
> +#ifdef __FreeBSD__
> #define _BSDISH
> #endif
> #ifdef SOLARIS2
>

--
Theo Schlossnagle
1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7