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. Node
  3. 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 4 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 4 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 4 months ago

Hi,

Hi,

This is now fixed. Get the latest version.

BR,
Mikko

Mohanraj

6 years 4 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

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • Anaglyfos Trading CC
  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin