[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UDUNITS #NQM-991721]: UDUNITS - udunits: undeclared _POSIX_PATH_MAX



Ana,

> Thank you for the answer. It guided my new search.
> After all, I had 2 problems:
> 1- missing CCPFLAG = -D_POSIX_SOURCE=1 (this is explained in INSTALL)
> 2- I add to link the limits.h and bits folder to /usr/local/include, because 
> they were in /usr/include and --prefix-local option was not working for this.
> 
> So my commands were:
> cp /usr/local/include/limits.h /usr/local/include/limits.h.ori
> ln -s /usr/include/limits.h /usr/local/include/limits.h
> ln -s /usr/include/bits/ /usr/local/include/bits

Interesting.  I've never seen this solution.

Perhaps your development environment is not standard.

> cd /home/jjdd/Downloads/udunits-1.12.4/src
> make distclean
> ./configure CC=gcc CPPFLAGS='-D_POSIX_SOURCE=1  -DpgiFortran' LD_MATH=-lm &> 
> configure.log
> make &> make.log
> make test &> test.log
> make install &> install.log
> cp /home/jjdd/Downloads/udunits-1.12.4/bin /usr/local/bin
> cp /home/jjdd/Downloads/udunits-1.12.4/include /usr/local/include
> cp /home/jjdd/Downloads/udunits-1.12.4/lib /usr/local/lib

That looks like it should work.  You might wish to copy the
"man" directory as well.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: NQM-991721
Department: Support UDUNITS
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.