>>>>> On Mon, 06 Sep 2010 16:46:22 -0500, Sean Clark said: > > I'm not finding it in the documentation so far... > > I'm attempting to build a storage daemon on a Western Digital "MyBook > World Edition(tm)" NAS, using the > most recent gcc available from ipkg, which unfortunately is all the way > back to 3.4.6. I'm getting some errors > as it tries to compile the bacula libraries, which I assume is why > subsequent building of file and storage daemons fails. > > Is 3.4.6 just too old, am I just doing something wrong, or is this some > kind of bug? > > Excerpt from the compile-time output below: > ---------------------------------------------------------------------------------------------------------------- > ==>Entering directory /shares/internal/temp/bacula-5.0.3/src/lib > make[1]: Entering directory `/shares/internal/temp/bacula-5.0.3/src/lib' > Compiling attr.c > Compiling base64.c > Compiling berrno.c > Compiling bsys.c > Compiling bget_msg.c > Compiling bnet.c > Compiling bnet_server.c > Compiling runscript.c > Compiling bsock.c > bsock.c: In member function `bool BSOCK::despool(void (*)(ssize_t), > ssize_t)': > bsock.c:591: error: `posix_fadvise' was not declared in this scope > make[1]: *** [bsock.o] Error 1 > make[1]: Leaving directory `/shares/internal/temp/bacula-5.0.3/src/lib'
This looks like a problem with the system header files, rather than gcc. What is the output of configure where it prints "checking for posix_fadvise..."? If it says "yes" then you will need to find out where posix_fadvise is declared in /usr/include and why Bacula isn't seeing that declaration when it compiles bsock.c. __Martin ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users