pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/m4 build failure for current amd64
Hi,
devel/m4 fails to build for me on NetBSD 5.99.62 amd64. It fails for
both head of pkgsrc and pkgsrc-2011Q4 and in the exactly same way for
both branches.
It fails like this:
fflush.c: In function 'update_fpos_cache':
fflush.c:108:16: error: incompatible types when assigning to type
'__off_t' from type 'fpos_t'
*** Error code 1
Stop.
These 2 patches makes m4 build:
--- lib/fflush.c.orig 2011-03-01 16:39:27.000000000 +0000
+++ lib/fflush.c
@@ -99,13 +99,7 @@ update_fpos_cache (FILE *fp, off_t pos)
/* Use a union, since on NetBSD, the compilation flags determine
whether fpos_t is typedef'd to off_t or a struct containing a
single off_t member. */
- union
- {
- fpos_t f;
- off_t o;
- } u;
- u.o = pos;
- fp_->_offset = u.f;
+ fp_->_offset = pos;
# endif
fp_->_flags |= __SOFF;
#endif
--- lib/fseeko.c.orig 2011-03-01 16:39:28.000000000 +0000
+++ lib/fseeko.c
@@ -118,13 +118,7 @@ fseeko (FILE *fp, off_t offset, int when
/* Use a union, since on NetBSD, the compilation flags
determine whether fpos_t is typedef'd to off_t or a struct
containing a single off_t member. */
- union
- {
- fpos_t f;
- off_t o;
- } u;
- u.o = pos;
- fp_->_offset = u.f;
+ fp_->_offset = pos;
}
# endif
fp_->_flags |= __SOFF;
These are not fixes though, and the diffs should not be taken as such, just
a change I made to make it build and to highlight the lines that makes it
not build for me, so somebody with knowledge can look at it.
Regards,
Jimmy
--
If you don't shoot the bearers of bad news, people will keep bringing it to you.
Home |
Main Index |
Thread Index |
Old Index