[libdivecomputer] #10: Error during make
#10: Error during make -------------------------------------+------------------------------------- Reporter:| Owner: jefdriesen sebastiaan | Status: new Type:| Component: General defect | Keywords: Priority:| major | Version:| master | Plattform (please give specifics in | the ticket text): Mac | -------------------------------------+------------------------------------- \ \ When running make on the source code I get the following error: {{{ Making all in examples CC universal.o In file included from universal.c:47:0: utils.h:32:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token universal.c: In function 'doparse': universal.c:320:2: warning: implicit declaration of function 'message' [-Wimplicit-function-declaration] make[2]: *** [universal.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 }}} I'm using the source from the master branch from the git repository. \ \ \ -- Ticket URL: <http://trac.libdivecomputer.org/ticket/10> libdivecomputer <www.libdivecomputer.org> a cross-platform and open source library for communication with dive computers from various manufacturers
#10: Error during make -------------------------------------+------------------------------------- Reporter: sebastiaan | Owner: Type: defect | jefdriesen Priority: major | Status: Version: master | new Keywords: | Component: | General | Resolution: | Plattform (please give specifics in | the ticket text): Mac -------------------------------------+------------------------------------- \ \ \ \ \ \ Comment (by jefdriesen): Have you made any changes to the code? I don't get this error, and I don't spot any obvious problem either. Which compiler (and version) are you using? \ \ \ -- Ticket URL: <http://trac.libdivecomputer.org/ticket/10#comment:1> libdivecomputer <www.libdivecomputer.org> a cross-platform and open source library for communication with dive computers from various manufacturers
#10: Error during make -------------------------------------+------------------------------------- Reporter: sebastiaan | Owner: Type: defect | jefdriesen Priority: major | Status: Version: master | new Keywords: | Component: | General | Resolution: | Plattform (please give specifics in | the ticket text): Mac -------------------------------------+------------------------------------- \ \ \ \ \ \ Comment (by sebastiaan): Hi, No I haven't made any changes to the code. Pulled it from the master branch in the git repository, ran autoreconf -install, ./configure and then make. During make I get this error. If I understand the error correctly the error is on row 32. However row 32 is empty and the line above it seems to be fine as well. {{{ int mes/Users/sebastiaan/Broncode/libdivecomputer/examples/universal.csage (const char* fmt, ...); }}} For compiling I'm using OSX with: - automake: stable 1.14.1 - libtool 2.4.2 - autoconf: stable 2.69 - arm-linux-androideabi-gcc (GCC) 4.6 20120106 \ \ \ -- Ticket URL: <http://trac.libdivecomputer.org/ticket/10#comment:2> libdivecomputer <www.libdivecomputer.org> a cross-platform and open source library for communication with dive computers from various manufacturers
#10: Error during make -------------------------------------+------------------------------------- Reporter: sebastiaan | Owner: Type: defect | jefdriesen Priority: major | Status: Version: master | new Keywords: | Component: | General | Resolution: | Plattform (please give specifics in | the ticket text): Mac -------------------------------------+------------------------------------- \ \ \ \ \ \ Comment (by jefdriesen): Replying to [comment:2 sebastiaan]:
{{{ int mes/Users/sebastiaan/Broncode/libdivecomputer/examples/universal.csage (const char* fmt, ...); }}}
If that's whay you have in the source code, then you have found the problem. You accidentally pasted the filename "/Users/sebastiaan/Broncode/libdivecomputer/examples/universal.c" into the function name. \ \ \ -- Ticket URL: <http://trac.libdivecomputer.org/ticket/10#comment:3> libdivecomputer <www.libdivecomputer.org> a cross-platform and open source library for communication with dive computers from various manufacturers
#10: Error during make -------------------------------------+------------------------------------- Reporter: sebastiaan | Owner: Type: defect | jefdriesen Priority: major | Status: Version: master | new Keywords: | Component: | General | Resolution: | Plattform (please give specifics in | the ticket text): Mac -------------------------------------+------------------------------------- \ \ \ \ \ \ Comment (by sebastiaan): Ok, why did I do that... :-) Just to be sure I didn't change anything else I downloaded the source again and now it works. Thanks for the help. \ \ \ -- Ticket URL: <http://trac.libdivecomputer.org/ticket/10#comment:4> libdivecomputer <www.libdivecomputer.org> a cross-platform and open source library for communication with dive computers from various manufacturers
#10: Error during make -------------------------------------+------------------------------------- Reporter: sebastiaan | Owner: Type: defect | jefdriesen Priority: major | Status: Version: master | closed Keywords: | Component: | General | Resolution: | worksforme | Plattform (please give specifics in | the ticket text): Mac -------------------------------------+------------------------------------- \ \ \ \ Changes (by sebastiaan): * status: new => closed * resolution: => worksforme \ \ \ \ \ -- Ticket URL: <http://trac.libdivecomputer.org/ticket/10#comment:5> libdivecomputer <www.libdivecomputer.org> a cross-platform and open source library for communication with dive computers from various manufacturers
participants (1)
-
Libdivecomputer Bug Tracking System