Operating System - HP-UX
1834925 Members
2333 Online
110071 Solutions
New Discussion

About compiling libsndfile

 
Roberto1
New Member

About compiling libsndfile

I am trying to install the libsndfile library on HP-UX (Integrity), but there are a lot of problems compiling the library. The compiler used is aCC. I downloaded the library from http://www.mega-nerd.com/libsndfile/#Download. This library is GNU.

Does anybody know what is the problem? Does the library exist for HP-UX?
Thank you very much.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: About compiling libsndfile

Shalom Roberto,

You might want to share the error messages.

Generic unix or linux code commonly requires minor changes to source code to compile under hpux.

Maybe try the gcc compiler.

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.1.1/

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: About compiling libsndfile

The first problem is that it doesn't check that the compiler c99 exists and wants to use the inline keyword. This can be fixed with -AC99.

The next problem is the gcc extension:
"common.h", line 164: error #2094: the size of an array must be greater than zero
PEAK_POS peaks [0] ;

This requires using -Agcc instead.

Then it gets this error:
"sfendian.h", line 173: error #2020: identifier "int64_t" is undefined
endswap_int64_t_array (int64_t *ptr, int len)

This requires including but it wants but that needs C99.

Starting over with just -AC99:
CCOPTS=-AC99 configure
CCOPTS=-AC99 gmake
works fine.