Menu

#44 Running configure --without-debug results in a broken build.

1.0
closed
nobody
None
2015-12-18
2015-12-17
Craig Pratt
No

Here's the build error I see after running "configure --without-debug":

make[1]: Entering directory `/home/craig/projects/iot/iotivity/extlibs/tinydtls/tests'
cc -Wall -g -O2 -I..  -DNDEBUG -DDTLSv12 -DWITH_SHA256 -L..  dtls-server.c  -ltinydtls  -o dtls-server
/tmp/ccQSivt9.o: In function `main':
/home/craig/projects/iot/iotivity/extlibs/tinydtls/tests/dtls-server.c:654: undefined reference to `dtls_package_version'
collect2: error: ld returned 1 exit status
make[1]: *** [dtls-server] Error 1

Moving the dtls_package_version() function into another source file resiolves the error (see attached patch).

Discussion

  • Olaf Bergmann

    Olaf Bergmann - 2015-12-18
    • status: open --> closed
     
  • Olaf Bergmann

    Olaf Bergmann - 2015-12-18

    This is a duplicate of ticket #18 which has a fix since 2015-04-21.