Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Compilation Problem With Client Project

Compilation problem with client project

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Mohanraj , 30 April, 2020
Forums
General discussion

Hi Mikko,

We have downloaded latest stack(29-04-2020) from github and trying to compile DLMSClientProject. Failed. Below is the compilation log. Looks like lot of places data type is changed.

In file included from src/communication.c:16:0:
src/../include/communication.h:131:12: warning: ‘struct tm’ declared inside parameter list will not be visible outside of this definition or declaration
struct tm* start,
^~
src/communication.c: In function ‘time_now’:
src/communication.c:46:41: warning: implicit declaration of function ‘time’; did you mean ‘nice’? [-Wimplicit-function-declaration]
time_initUnix(value, (unsigned long)time(NULL));
^~~~
nice
src/communication.c: In function ‘com_readRowsByEntry2’:
src/communication.c:1200:9: warning: format not a string literal and no format arguments [-Wformat-security]
printf(str);
^~~~~~
src/communication.c: At top level:
src/communication.c:1212:12: warning: ‘struct tm’ declared inside parameter list will not be visible outside of this definition or declaration
struct tm* start,
^~
src/communication.c:1209:5: error: conflicting types for ‘com_readRowsByRange’
int com_readRowsByRange(
^~~~~~~~~~~~~~~~~~~
In file included from src/communication.c:16:0:
src/../include/communication.h:128:5: note: previous declaration of ‘com_readRowsByRange’ was here
int com_readRowsByRange(
^~~~~~~~~~~~~~~~~~~
src/communication.c: In function ‘com_readRowsByRange’:
src/communication.c:1220:66: warning: passing argument 3 of ‘cl_readRowsByRange’ makes integer from pointer without a cast [-Wint-conversion]
if ((ret = cl_readRowsByRange(&connection->settings, object, start, end, &data)) != 0 ||
^~~~~
In file included from src/../include/communication.h:22:0,
from src/communication.c:16:
src/../include/../../development/include/client.h:147:9: note: expected ‘long unsigned int’ but argument is of type ‘struct tm *’
int cl_readRowsByRange(
^~~~~~~~~~~~~~~~~~
src/communication.c:1220:73: warning: passing argument 4 of ‘cl_readRowsByRange’ makes integer from pointer without a cast [-Wint-conversion]
if ((ret = cl_readRowsByRange(&connection->settings, object, start, end, &data)) != 0 ||
^~~
In file included from src/../include/communication.h:22:0,
from src/communication.c:16:
src/../include/../../development/include/client.h:147:9: note: expected ‘long unsigned int’ but argument is of type ‘struct tm *’
int cl_readRowsByRange(
^~~~~~~~~~~~~~~~~~
src/communication.c: In function ‘com_readProfileGenerics’:
src/communication.c:1421:51: warning: passing argument 3 of ‘com_readRowsByRange’ from incompatible pointer type [-Wincompatible-pointer-types]
ret = com_readRowsByRange(connection, pg, &startTime.value, &endTime.value);
^
src/communication.c:1209:5: note: expected ‘struct tm *’ but argument is of type ‘long unsigned int *’
int com_readRowsByRange(
^~~~~~~~~~~~~~~~~~~
src/communication.c:1421:69: warning: passing argument 4 of ‘com_readRowsByRange’ from incompatible pointer type [-Wincompatible-pointer-types]
ret = com_readRowsByRange(connection, pg, &startTime.value, &endTime.value);
^
src/communication.c:1209:5: note: expected ‘struct tm *’ but argument is of type ‘long unsigned int *’
int com_readRowsByRange(
^~~~~~~~~~~~~~~~~~~
make: *** [obj/communication.o] Error 1

Thanks
Mohan Raj

Mohanraj

6 years 2 months ago

Hi Mikko,

Hi Mikko,

Sorry for the inconvenience. corrected by disabling the macro

Thanks
Mohan Raj

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi Mohan,

Hi Mohan,

I check this and it seems that new version is commit to GitHub a little bit too early. All the files were not copied yet. The new version is released in 10 mins where this is fixed.

BR,

Mikko

Profile picture for user Kurumi

Kurumi

6 years 2 months ago

Hi,

Hi,

This is now fixed. Get the latest version.

BR,
Mikko

Mohanraj

6 years 2 months ago

In reply to Hi, by Kurumi

Hi Mikko,

Hi Mikko,

Thank you very much. I shall check now and if any issues shall create new post.

Thank you
Mohan Raj

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • CTKNhZElptjSlOrpkXl
  • YCbccqfLGRMnlCWoJhXP
  • Malcolmactig
  • mhliang
  • Kevinmug
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin