8cH9azbsFifZ / wspr

Weak Signal Propagation Reporter
http://physics.princeton.edu/pulsar/K1JT/
1 stars 1 forks source link

padevsub.c:26: error: ‘PaStreamParameters’ undeclared #11

Closed f1f3b4d8adca28ac closed 12 years ago

f1f3b4d8adca28ac commented 12 years ago

cc -I../ -I/usr/local/include -I/opt/local/include -g -O2 -DBIGSYM=1 -fPIC -DHAVE_CONFIGH -c padevsub.c padevsub.c: In function ‘padevsub’: padevsub.c:26: error: ‘PaStreamParameters’ undeclared (first use in this function) padevsub.c:26: error: (Each undeclared identifier is reported only once padevsub.c:26: error: for each function it appears in.) padevsub.c:26: error: expected ‘;’ before ‘inputParameters’ padevsub.c:27: error: expected ‘;’ before ‘outputParameters’ padevsub.c:60: error: ‘inputParameters’ undeclared (first use in this function) padevsub.c:73: error: ‘outputParameters’ undeclared (first use in this function)

8cH9azbsFifZ commented 12 years ago

portaudio.h and samplerate.h were in src directory. fixed within this issue.

f1f3b4d8adca28ac commented 12 years ago

khz@s20-khz:~/download/wspr/8cH9azbsFifZ-wspr-44a7ec1/wspr-3.0$ cat config.h /* config.h. Generated from config.h.in by configure. / / config.h.in. Generated from configure.ac by autoheader. */

/* Define to 1 if you have the <dev/ppbus/ppbconf.h> header file. / / #undef HAVE_DEV_PPBUS_PPBCONF_H */

/* Define to 1 if you have the <dev/ppbus/ppi.h> header file. / / #undef HAVE_DEV_PPBUS_PPI_H */

/* Define to 1 if you have the header file, and it defines `DIR'. */

define HAVE_DIRENT_H 1

/* Define to 1 if you have the header file. */

define HAVE_ERRNO_H 1

/* Define to 1 if you have the header file. */

define HAVE_FCNTL_H 1

/* Define to 1 if you have the `gettimeofday' function. */

define HAVE_GETTIMEOFDAY 1

/* Define to 1 if you have the header file. */

define HAVE_INTTYPES_H 1

/* Define to 1 if you have the `fftw3f' library (-lfftw3f). */

define HAVE_LIBFFTW3F 1

/* Define to 1 if you have the header file. */

define HAVE_LIBGEN_H 1

/* Define to 1 if you have the `portaudio' library (-lportaudio). */

define HAVE_LIBPORTAUDIO 1

/* Define to 1 if you have the `samplerate' library (-lsamplerate). */

define HAVE_LIBSAMPLERATE 1

/* Define to 1 if you have the header file. */

define HAVE_LIMITS_H 1

/* Define to 1 if you have the <linux/parport.h> header file. */

define HAVE_LINUX_PARPORT_H 1

/* Define to 1 if you have the <linux/ppdev.h> header file. */

define HAVE_LINUX_PPDEV_H 1

/* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */

define HAVE_MALLOC 1

/* Define to 1 if you have the header file. */

define HAVE_MEMORY_H 1

/* Define to 1 if you have the header file, and it defines `DIR'. / / #undef HAVE_NDIR_H */

/* Define to 1 if you have the header file. */

define HAVE_PORTAUDIO_H 1

/* Define to 1 if you have the header file. */

define HAVE_PTHREAD_H 1

/* Define to 1 if you have the header file. */

define HAVE_SAMPLERATE_H 1

/* Define to 1 if you have the header file. */

define HAVE_STDARG_H 1

/* Define to 1 if you have the header file. */

define HAVE_STDDEF_H 1

/* Define to 1 if you have the header file. */

define HAVE_STDINT_H 1

/* Define to 1 if you have the header file. */

define HAVE_STDIO_H 1

/* Define to 1 if you have the header file. */

define HAVE_STDLIB_H 1

/* Define to 1 if you have the `strchr' function. */

define HAVE_STRCHR 1

/* Define to 1 if you have the header file. */

define HAVE_STRINGS_H 1

/* Define to 1 if you have the header file. */

define HAVE_STRING_H 1

/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. / / #undef HAVE_SYS_DIR_H */

/* Define to 1 if you have the <sys/ioctl.h> header file. */

define HAVE_SYS_IOCTL_H 1

/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. / / #undef HAVE_SYS_NDIR_H */

/* Define to 1 if you have the <sys/param.h> header file. */

define HAVE_SYS_PARAM_H 1

/* Define to 1 if you have the <sys/resource.h> header file. */

define HAVE_SYS_RESOURCE_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */

define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/syslog.h> header file. */

define HAVE_SYS_SYSLOG_H 1

/* Define to 1 if you have the <sys/time.h> header file. */

define HAVE_SYS_TIME_H 1

/* Define to 1 if you have the <sys/types.h> header file. */

define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <sys/wait.h> header file. */

define HAVE_SYS_WAIT_H 1

/* Define to 1 if you have the header file. */

define HAVE_TERMIOS_H 1

/* Define to 1 if you have the header file. */

define HAVE_TIME_H 1

/* Define to 1 if you have the header file. */

define HAVE_UNISTD_H 1

/* Define to 1 if you have the header file. */

define HAVE_WAIT_H 1

/* Define to 1 if you have the header file. / / #undef HAVE_WINDOWS_H */

/* Name of package */

define PACKAGE "wspr"

/* Define to the address where bug reports for this package should be sent. */

define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"

/* Define to the full name of this package. */

define PACKAGE_NAME "wspr"

/* Define to the full name and version of this package. */

define PACKAGE_STRING "wspr 3.0"

/* Define to the one symbol short name of this package. */

define PACKAGE_TARNAME "wspr"

/* Define to the home page for this package. */

define PACKAGE_URL ""

/* Define to the version of this package. */

define PACKAGE_VERSION "3.0"

/* Define to 1 if you have the ANSI C header files. */

define STDC_HEADERS 1

/* Define to 1 if you can safely include both <sys/time.h> and . */

define TIME_WITH_SYS_TIME 1

/* Version number of package */

define VERSION "3.0"

/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,

, or is not used. If the typedef were allowed, the #define below would cause a syntax error. _/ /_ #undef _UINT32_T */ /\* Define for Solaris 2.5.1 so the uint64_t typedef from , , or is not used. If the typedef were allowed, the #define below would cause a syntax error. _/ /_ #undef _UINT64_T */ /\* Define for Solaris 2.5.1 so the uint8_t typedef from , , or is not used. If the typedef were allowed, the #define below would cause a syntax error. _/ /_ #undef _UINT8_T */ /\* Define to `__inline__' or`__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. _/ #ifndef __cplusplus /_ #undef inline */ #endif /\* Define to the type of a signed integer type of width exactly 16 bits if such a type exists and the standard includes do not define it. _/ /_ #undef int16_t */ /\* Define to the type of a signed integer type of width exactly 32 bits if such a type exists and the standard includes do not define it. _/ /_ #undef int32_t */ /\* Define to the type of a signed integer type of width exactly 64 bits if such a type exists and the standard includes do not define it. _/ /_ #undef int64_t */ /\* Define to the type of a signed integer type of width exactly 8 bits if such a type exists and the standard includes do not define it. _/ /_ #undef int8_t */ /\* Define to rpl_malloc if the replacement function should be used. _/ /_ #undef malloc */ /\* Define to `int' if does not define. _/ /_ #undef pid_t */ /\* Define to `unsigned int' if does not define. _/ /_ #undef size_t */ /\* Define to the type of an unsigned integer type of width exactly 16 bits if such a type exists and the standard includes do not define it. _/ /_ #undef uint16_t */ /\* Define to the type of an unsigned integer type of width exactly 32 bits if such a type exists and the standard includes do not define it. _/ /_ #undef uint32_t */ /\* Define to the type of an unsigned integer type of width exactly 64 bits if such a type exists and the standard includes do not define it. _/ /_ #undef uint64_t */ /\* Define to the type of an unsigned integer type of width exactly 8 bits if such a type exists and the standard includes do not define it. _/ /_ #undef uint8_t */ khz@s20-khz:~/download/wspr/8cH9azbsFifZ-wspr-44a7ec1/wspr-3.0$
8cH9azbsFifZ commented 12 years ago

Here on debian squeeze

gcc -Wall -I../ -I/usr/local/include -I/opt/local/include -g -O2 -DBIGSYM=1 -fPIC -DHAVE_CONFIG_H -c padevsub.c

gcc -v

Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.4.5 (Debian 4.4.5-8)

uname -a

Linux debian 2.6.32-5-686 #1 SMP Mon Jun 13 04:13:06 UTC 2011 i686 GNU/Linux

8cH9azbsFifZ commented 12 years ago

$ cc -Wall -I../ -I/usr/local/include -I/opt/local/include -g -O2 -DBIGSYM=1 -fPIC -DHAVE_CONFIGH -c padevsub.c padevsub.c: In function ‘padevsub’: padevsub.c:26: error: ‘PaStreamParameters’ undeclared (first use in this function) padevsub.c:26: error: (Each undeclared identifier is reported only once padevsub.c:26: error: for each function it appears in.) padevsub.c:26: error: expected ‘;’ before ‘inputParameters’ padevsub.c:27: error: expected ‘;’ before ‘outputParameters’ padevsub.c:31: warning: implicit declaration of function ‘Pa_GetDeviceCount’ padevsub.c:40: warning: implicit declaration of function ‘Pa_GetDefaultInputDevice’ padevsub.c:46: warning: implicit declaration of function ‘Pa_GetDefaultOutputDevice’ padevsub.c:60: error: ‘inputParameters’ undeclared (first use in this function) padevsub.c:73: error: ‘outputParameters’ undeclared (first use in this function)

8cH9azbsFifZ commented 12 years ago

Does this help?

apt-get install libfftw3-dev portaudio19-dev libsamplerate0-dev python-numpy libfftw3-3 libportaudio2 python-tk python-imaging-tk python-numpy python2.6-dev

8cH9azbsFifZ commented 12 years ago

Solved. Adjusted dependencies in debian source package control file.