Hi, I guess the error is because the definitions are not reaching all the files in which the file quicklist.h is included. However, I cannot see a detailed list of the compilation output used in pvfs such as the include directories, cflags, linker options etc. Is there any way for me to see such a detailed output so that I can modify the makefiles?
If anybody knows about the pvfs build environment, could you please help me? Thanks, Christina. On Sat, Apr 25, 2009 at 6:32 PM, Christina Patrick <[email protected]> wrote: > Hi, > > I am currently adding some new routines to pvfs. When I write the > routines in a standalone file and compile them against the pvfs src > tree, I don't get any compile errors. When I include these routines in > the quicklist.h file and call it from the > bmi_send_callback_fn:src/io/flow/flowproto-bmi-trove/flowproto-multiqueue.c > and then compile it, I am getting the below compilation errors. I dont > understand why this is happening since the the routines work fine when > the program is stand-alone. The compile output of pvfs is not visible > on the screen. Please help me debug this problem? > > The file is attached in this email. I copied the contents of this file > (except main and some other data structures which are already defined > in pvfs) in the file quicklist.h. > > $ make 2>&1 | tee make.log > CC src/server/pvfs2-server-server.o > In file included from ./src/io/flow/flow.h:15, > from ./src/io/job/job.h:14, > from src/server/pvfs2-server.c:30: > ./src/common/quicklist/quicklist.h: In function âalloc_prefetch_elementâ: > ./src/common/quicklist/quicklist.h:280: error: invalid application of > âsizeofâ to incomplete type âstruct result_chain_entryâ > ./src/common/quicklist/quicklist.h:287: error: invalid application of > âsizeofâ to incomplete type âstruct result_chain_entryâ > ./src/common/quicklist/quicklist.h:288: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:288: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:289: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:289: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:291: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:292: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:292: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h: In function âprefetch_data_presentâ: > ./src/common/quicklist/quicklist.h:338: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:339: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:339: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:345: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:345: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:348: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:349: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:349: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:351: error: dereferencing pointer > to incomplete type > ./src/common/quicklist/quicklist.h:351: error: dereferencing pointer > to incomplete type > make: *** [src/server/pvfs2-server-server.o] Error 1 > > Thanks and Regards, > Christina. > _______________________________________________ Pvfs2-developers mailing list [email protected] http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
