The header files seem to be installed to primarily: /usr/lib/avr/include/avr
Cat/grep on all in the directory yields nothing for pgm_read_ptr, and a number of functions, e.g. pgm_read_byte, pgm_read_word, float, etc., which are all present in pgmspace.h I included the code provided by Matthias for pgm_read_ptr_near in the pgmspace.h, and also added the code below to a pgm.h file that now consists of: #include <avr/pgmspace.h> #define pgm_read_ptr(address_short) pgm_read_ptr_near(address_short) It now compiles. I assume the code Matthias posted could be added to the pgm.h with some thoughtful IFNDEFs to make this complete. C On 11/11/2015 4:42 AM, Johan Ström wrote: > It would help if you can post specific version numbers of avr-libc (or > whatever it is named in Ubuntu), and winavr. > Also try to search for pgm_read_ptr_near and/or pgm_read* in the include > files which your avr-libc package installs (check with your package > manager how to list installed files). > > On 11/11/15 11:04, Colin Reese wrote: >> I have tried on deb Linux (Ubuntu 14.04) with apt distros, also winavr. Just >> downloaded owslave and tried fresh with the exact cfg you listed. >> >> C >> >>> On Nov 11, 2015, at 1:57 AM, Johan Ström <jo...@stromnet.se> wrote: >>> >>> Hm, first this was commited: >>> https://github.com/M-o-a-T/owslave/commit/960a7decb26ee1aa792ef41400c306ec563e77ab >>> >>> but then this: >>> https://github.com/M-o-a-T/owslave/commit/e573863d5a62072945dd6c07eb4e6109a6108c16 >>> >>> Are you perhaps using either old revision of the owslave code, or >>> perhaps old AVR-libc headers? >>> >>> Johan >>> >>>> On 11/11/15 09:09, Colin Reese wrote: >>>> I get a number of errors on compile similar to: >>>> >>>> /moat.c:182: undefined reference to `pgm_read_ptr_near' >>>> >>>> C >>>> >>>>> On 11/10/2015 1:07 PM, Johan Ström wrote: >>>>> _include: world.cfg >>>>> devices: >>>>> _default: >>>>> _ref: defaults.target.m88 >>>>> types: >>>>> _ref: defaults.types >>>>> code: [] >>>>> m328test: >>>>> _ref: mcu.mega328 >>>>> defs: >>>>> f_cpu: 8000000 >>>>> port: >>>>> 1: B0~ >>>>> 2: B1~ >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Owfs-developers mailing list >>>> Owfs-developers@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Owfs-developers mailing list >>> Owfs-developers@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/owfs-developers >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Owfs-developers mailing list >> Owfs-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/owfs-developers > > ------------------------------------------------------------------------------ > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------------ _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers