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 1 month 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 1 month 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 1 month ago

Hi,

Hi,

This is now fixed. Get the latest version.

BR,
Mikko

Mohanraj

6 years 1 month 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

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin