pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: imap-uw broken



I manually added ``#include <time.h>'' in both netmsg.c and nntp.c
as suggested by the error message.  It gives me some errors related
to scandir()

...
libtool --tag=CC --mode=compile `cat CCTYPE` -c `cat CFLAGS` news.c
libtool: compile:  cc -c -pipe -fno-omit-frame-pointer -O2 -DCHUNKSIZE=65536 news.c  -fPIC -DPIC -o .libs/news.o
news.c: In function 'news_open':
news.c:369:36: error: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types]
  369 |   if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) {
      |                                    ^~~~~~~~~~~
      |                                    |
      |                                    int (*)(struct dirent *)
In file included from /usr/include/sys/dir.h:47,
                 from osdep.h:33,
                 from news.c:34:
/usr/include/dirent.h:112:5: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)'
  112 |     int (*)(const struct dirent *), int (*)(const struct dirent **,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
news.c:369:48: error: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types]
  369 |   if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) {
      |                                                ^~~~~~~~~~~~
      |                                                |
      |                                                int (*)(const void *, const void *)
/usr/include/dirent.h:112:37: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)'
  112 |     int (*)(const struct dirent *), int (*)(const struct dirent **,
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  113 |     const struct dirent **))
      |     ~~~~~~~~~~~~~~~~~~~~~~~
*** Error code 1

Stop.

I am building on a NetBSD-11.99.3 amd-64 host, built from sources dated
2025-11-09 03:23:56 UTC.

Any and alll help will be appreciated.



On Sun, 9 Nov 2025, Paul Goyette wrote:

In file included from /usr/include/stdio.h:595,
                from netmsg.c:30:
netmsg.c: In function 'netmsg_slurp':
netmsg.c:62:45: error: implicit declaration of function 'time' [-Wimplicit-function-declaration] 62 | sprintf (tmp,".%lx.%lx",(unsigned long) time (0),(unsigned long)getpid ());
     |                                             ^~~~
netmsg.c:35:1: note: 'time' is defined in header '<time.h>'; this is probably fixable by adding '#include <time.h>'
  34 | #include "flstring.h"
 +++ |+#include <time.h>
  35 | ^L
*** Error code 1

+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
| & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+


+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
| & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+


Home | Main Index | Thread Index | Old Index