pkgsrc-Bulk archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkgsrc QNX 6.4.0/i386 2008-11-16 09:24
On Tue, Dec 16, 2008 at 03:20:36PM -0500, D'Arcy J.M. Cain wrote:
> On Tue, 2 Dec 2008 13:15:29 -0500
> Sean Boudreau <seanb%qnx.com@localhost> wrote:
> > > >
> > > > Thanks. I see the issue now.
> > > >
> > > > generate.c: In function 'main':
> > > > generate.c:1223: warning: implicit declaration of function 'getlogin'
> > > > generate.c:1223: warning: assignment makes pointer from integer without
> > > > a cast
> > > > generate.c:1235: warning: implicit declaration of function 'getpid'
> > > > generate.c:1303: warning: implicit declaration of function 'stat'
> > > > gmake: *** [generate.o] Error 1
> > > /
> > > > Any idea what file(s) I need to include on QNX to fix this?
> > >
> > > getlogin() and getpid() should be brought in by <unistd.h>, stat()
> > > by <sys/stat.h>. Which package are you looking at in particular?
> >
> > devel/generate
> >
> > The issue on QNX is 'cc -ansi'. This doesn't bring in the above
> > which are marked as __EXT_POSIX1_198808 on QNX.
>
> Can someone on QNX please make this work and send me diffs. Diffs to
> the downloaded package are fine since it is my project anyway and I can
> fix it either way as long as it is portable. If possible I would like
> to get this before the freeze so that I can get it working on all
> platforms.
Does this look OK?
-seanb
--- Makefile.orig 2008-12-06 22:25:21.000000000 -0500
+++ Makefile 2008-12-17 10:06:54.000000000 -0500
@@ -14,4 +14,7 @@
USE_TOOLS+= gmake
LIBS.SunOS= -lsocket -lnsl
+CFLAGS.QNX= -U__STRICT_ANSI__
+LIBS.QNX= -lsocket
+
.include "../../mk/bsd.pkg.mk"
--- work/generate-2.6/Makefile.orig 2008-11-17 16:12:39.000000000 -0500
+++ work/generate-2.6/Makefile 2008-12-17 10:09:20.000000000 -0500
@@ -9,7 +9,7 @@
VERSION_MINOR = 6
PACKAGE_NAME = generate-${VERSION_MAJOR}.${VERSION_MINOR}
-CFLAGS = -O2 -ansi -pipe -Wall -Wshadow -Wpointer-arith \
+CFLAGS += -O2 -ansi -pipe -Wall -Wshadow -Wpointer-arith \
-Wwrite-strings -Wstrict-prototypes \
-Wformat -Wmissing-prototypes -funsigned-char \
-I/usr/local/include -L/usr/local/lib \
Home |
Main Index |
Thread Index |
Old Index