Navigation


Opened 8 years ago

Closed 8 years ago

#52 closed defect (worksforme)

freediameter-dev compile issue on Ubuntu 12.04

Reported by: liviu Owned by:
Priority: major Milestone:
Component: contrib Version: tip
Keywords: Cc: dev@freediameter.net
Blocked By: Blocking:

Description

Hello,

The headers of the current version of the freediameter-dev package fail to compile cleanly.

Version:
[liviu ◄ Icecrown]$ sudo apt-cache show freediameter-dev
Package: freediameter-dev
Source: freediameter
Version: 1.2.0+precise1
Architecture: amd64
Maintainer: Sebastien Decugis <sdecugis@freediameter.net>
Installed-Size: 226
Depends: freediameter-common (= 1.2.0+precise1), libsctp-dev, libgnutls-dev, libgcrypt-dev
Homepage: http://www.freediameter.net
Priority: extra
Section: universe/devel
Filename: pool/universe/f/freediameter/freediameter-dev_1.2.0+precise1_amd64.deb
Size: 58260
SHA256: e8e7c4b34e66f8806c35790c01b0ae4d76eda6c5aae1a495e1ea08ff627415d4
SHA1: a8a9636bde9de465c2aed169b6ff9e522e044a44
MD5sum: 6cc68637c9e0e6c808c785370849d517
Description: This package provides the development files for freeDiameter.

Behaviour. By simply including the header files:
#include <freeDiameter/freeDiameter-host.h>
#include <freeDiameter/libfdcore.h>
#include <freeDiameter/libfdproto.h>
#include <freeDiameter/extension.h>

I'm getting:
In file included from /usr/include/freeDiameter/libfdcore.h:44:0,

from aaa_diameter.c:30:

/usr/include/freeDiameter/libfdproto.h: In function ‘fd_thr_term’:
/usr/include/freeDiameter/libfdproto.h:849:15: error: ‘ANNOYING’ undeclared (first use in this function)
/usr/include/freeDiameter/libfdproto.h:849:15: note: each undeclared identifier is reported only once for each function it appears in
/usr/include/freeDiameter/libfdproto.h:851:15: error: ‘CALL’ undeclared (first use in this function)
/usr/include/freeDiameter/libfdproto.h: In function ‘fd_cleanup_mutex’:
/usr/include/freeDiameter/libfdproto.h:866:71: error: expected expression before ‘)’ token
/usr/include/freeDiameter/libfdproto.h: In function ‘fd_cleanup_rwlock’:
/usr/include/freeDiameter/libfdproto.h:871:74: error: expected expression before ‘)’ token
/usr/include/freeDiameter/libfdproto.h: In function ‘fd_cleanup_socket’:
/usr/include/freeDiameter/libfdproto.h:881:54: error: expected expression before ‘)’ token

I enabled EXCLUDE_DEPRECATED, and fixed the issues with the following patch:
https://gist.github.com/liviuchircu/b405fccde22d0360bb0a

If there is any more information you need, please let me know.

Change History (1)

comment:1 Changed 8 years ago by Sebastien Decugis

Resolution: worksforme
Status: newclosed

Hi, thank you for your report!

The EXCLUDE_DEPRECATED is just a temporary development option and should not be used actually. Do you get any error if you don't define this symbol? (I don t) -- marking the ticket as solved, shout if you disagree :)

By the wayyou can simply #include <freeDiameter/extension.h> without the other ones since they call each other.

Best regards,
Sebastien

Note: See TracTickets for help on using tickets.