Subj : CVS commit src/sbbs3/GNUm To : deuce From : Frank Reid Date : Sun Sep 11 2005 03:23 pm Re: CVS commit src/sbbs3/GNUm By: deuce to All on Fri Sep 09 2005 21:37:00 So, I'm playing with Solaris x86 V10, and I'm seeing this weirdness. xpdev/ini_file.c compiles fine first time through, as part of the mtlib, as follows: gmake -C ../xpdev mtlib gmake[1]: Entering directory `/sbbs/src/xpdev' Compiling conwrap.c Compiling dat_file.c Compiling datewrap.c Compiling dirwrap.c Compiling filewrap.c Compiling genwrap.c Compiling ini_file.c Compiling link_list.c Compiling msg_queue.c Compiling semwrap.c Compiling sockwrap.c Compiling str_list.c Compiling threadwrap.c Then, further on the compile, after entering src/xpdev directly, it bombs out with the following: gmake[1]: Entering directory `/sbbs/src/xpdev' Compiling conwrap.c Compiling dat_file.c Compiling datewrap.c Compiling dirwrap.c Compiling filewrap.c Compiling genwrap.c Compiling ini_file.c ini_file.c: In function `iniSetDateTime': ini_file.c:481: error: too few arguments to function `ctime_r' gmake[1]: *** [gcc.sunos.i86pc.obj.debug/ini_file.o] Error 1 gmake[1]: Leaving directory `/sbbs/src/xpdev' gmake: *** [xpdev] Error 2 I'm building with gcc3, as follows: -bash-3.00# gcc -v Reading specs from /opt/csw/gcc3/lib/gcc/i386-pc-solaris2.8/3.4.4/specs Configured with: ../sources/gcc-3.4.4/configure --prefix=/opt/csw/gcc3 --with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --enable-languages=all Thread model: posix gcc version 3.4.4 Now, if I actually man the ctime_r function, I get the following: char *ctime_r(const time_t *clock, char *buf, int buflen); The ctime_r() function has the same functionality as ctime() except that the caller must supply a buffer buf with length buflen to store the result; buf must be at least 26 bytes. The standard-conforming ctime_r() function does not take a buflen parameter. This would indicate that it does require the third argument (buflen), which makes it even weirder that it compiled the first time. However, if I add an arbitrary integer argument in ini_file.c, it gives me this: -bash-3.00# gmake gmake -C ../smblib lib gmake[1]: Entering directory `/sbbs/src/smblib' gmake[1]: Nothing to be done for `lib'. gmake[1]: Leaving directory `/sbbs/src/smblib' gmake -C ../xpdev mtlib gmake[1]: Entering directory `/sbbs/src/xpdev' Compiling ini_file.c ini_file.c: In function `iniSetDateTime': ini_file.c:481: error: too many arguments to function `ctime_r' gmake[1]: *** [gcc.sunos.i86pc.obj.debug-mt/ini_file.o] Error 1 gmake[1]: Leaving directory `/sbbs/src/xpdev' gmake: *** [xpdev-mt] Error 2 So, it's like the make options in src/sbbs3 expect one header/library, while those in xpdev expect another. Any thoughts? Frank --- þ Synchronet þ BBS Doors (www.bbsdoors.com) .