Bug 191642 - comms/wspr does not build properly
Summary: comms/wspr does not build properly
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Many People
Assignee: hamradio (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-05 21:45 UTC by paul
Modified: 2016-04-08 04:39 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description paul 2014-07-05 21:45:41 UTC
When built using the existing port, comms/wspr gives this error:

  % wspr
  Traceback (most recent call last):
    File "/usr/local//bin/wspr.py", line 25, in <module>
      from WsprMod import w
  ImportError: /usr/local/lib/python2.7/site-packages/WsprMod/w.so: Undefined symbol "padevsub_"

How-To-Repeat:
Build comms/wspr and run wspr

Fix:
The problem is the following section of comms/wspr/files/patch-Makefile.in

  -SRCS2C = padevsub.c start_threads.c sound.c gmtime2.c ptt_unix.c \
  +SRCS2C = start_threads.c sound.c gmtime2.c ptt_unix.c \
 	nhash.c fthread.c
   OBJS2C  = ${SRCS2C:.c=.o}
 
  +padevsub.o:	padevsub.c
  +	${CC} ${CPPFLAGS} ${CFLAGS} -c padevsub.c
  +


Back out these changes causes comms/wspr to build and run correctly.
Comment 1 oliver 2014-08-16 15:08:53 UTC
I can confirm that error, but I can't get around it the way you described. Removing these two fixes causes an error during compile time.

Can you provide a working diff for the Makefile?

3 warnings and 12 errors generated.
error: Command "cc -DNDEBUG -O2 -pipe -I/usr/local/include -fno-strict-aliasing -Wall -O0 -g -O2 -pipe -I/usr/local/include -fno-strict-aliasing -Wall -O0 -g -DBIGSYM=1 -fPIC -DPACKAGE_NAME="wspr" -DPACKAGE_TARNAME="wspr" -DPACKAGE_VERSION="1.11" -DPACKAGE_STRING="wspr 1.11" -DPACKAGE_BUGREPORT="" -DFC_LIB_PATH="/usr/local/lib/gcc47/gcc/x86_64-portbld-freebsd11.0/4.7.4/" -DFC="gfortran47" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SYS_SYSLOG_H=1 -DHAVE_STDDEF_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_DEV_PPBUS_PPI_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DTIME_WITH_SYS_TIME=1 -DSTRING_WITH_STRINGS=1 -DNDEBUG=1 -DPREFIX="/usr/local" -DFC_LIB_PATH="/usr/local/lib/gcc47/gcc/x86_64-portbld-freebsd11.0/4.7.4/" -DFC="gfortran47" -I/usr/local/include/portaudio2 -I/usr/local/include -DPACKAGE_NAME="wspr" -DPACKAGE_TARNAME="wspr" -DPACKAGE_VERSION="1.11" -DPACKAGE_STRING="wspr 1.11" -DPACKAGE_BUGREPORT="" -DFC_LIB_PATH="/usr/local/lib/gcc47/gcc/x86_64-portbld-freebsd11.0/4.7.4/" -DFC="gfortran47" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SYS_SYSLOG_H=1 -DHAVE_STDDEF_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_DEV_PPBUS_PPI_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DTIME_WITH_SYS_TIME=1 -DSTRING_WITH_STRINGS=1 -DNDEBUG=1 -DPREFIX="/usr/local" -DFC_LIB_PATH="/usr/local/lib/gcc47/gcc/x86_64-portbld-freebsd11.0/4.7.4/" -DFC="gfortran47" -I. -fPIC -DPACKAGE_NAME="wspr" -DPACKAGE_TARNAME="wspr" -DPACKAGE_VERSION="1.11" -DPACKAGE_STRING="wspr 1.11" -DPACKAGE_BUGREPORT="" -DFC_LIB_PATH="/usr/local/lib/gcc47/gcc/x86_64-portbld-freebsd11.0/4.7.4/" -DFC="gfortran47" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SYS_SYSLOG_H=1 -DHAVE_STDDEF_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_STDIO_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_DEV_PPBUS_PPI_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DTIME_WITH_SYS_TIME=1 -DSTRING_WITH_STRINGS=1 -DNDEBUG=1 -DPREFIX="/usr/local" -DFC_LIB_PATH="/usr/local/lib/gcc47/gcc/x86_64-portbld-freebsd11.0/4.7.4/" -DFC="gfortran47" -I/usr/local/include/portaudio2 -I/usr/local/include -I. -I/tmp/tmpTxkpyO/src.freebsd-11.0-CURRENT-amd64-2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include/python2.7 -c padevsub.c -o /tmp/tmpTxkpyO/padevsub.o" failed with exit status 1
gmake[2]: *** [WsprMod/w.so] Fehler 1
gmake[2]: Leaving directory `/usr/ports/comms/wspr/work/wspr-r2511'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/comms/wspr
*** Error code 1

Stop.
make: stopped in /usr/ports/comms/wspr
Comment 2 Walter Schwarzenfeld freebsd_triage 2016-01-03 13:31:08 UTC
Does not know if the problem still exists. But I was able to compile comms/wspr (10.2-amd64) only change python:3.3 to python:3.4 in the wspr Makefile.
Comment 3 Walter Schwarzenfeld 2016-01-03 18:09:27 UTC
Forget:
If I don't change this, I got an error compiling comms/hamlib.
Comment 4 Stephen Hurd freebsd_committer freebsd_triage 2016-04-08 04:39:55 UTC
Cannot reproduce with current version.