GC compilation failure in Linux

349 views
Skip to first unread message

José Luis García Pallero

unread,
Jan 19, 2022, 11:14:49 AM1/19/22
to golden-cheetah-users
Hello:

I'm trying to compile GC in Linux (Debian Sid), but I obtain an error. I cloned yesterday the git repository, and I'm following the instructions stated in the INSTALL-LINUX file. Apparently all works fine, although I obtain errors with three files. The errors are related to non existent files *.tab.h, but they can be solved renaming files. The errors are

DataFilter.tab.c:152:10: fatal error: DataFilter.tab.h: File does not exist
JsonRideFile.tab.c:206:10: fatal error: JsonRideFile.tab.h: File does not exist
RideDB.tab.c:141:10: fatal error: RideDB.tab.h: File does not exist

but in the src/ folder there are the files DataFilter_yacc.h, JsonRideFile_yacc.h, and RideDByacc.h, so if I rename them to DataFilter.tab.h, JsonRideFile.tab.h, and RideDB.tab.h the files compile and the process go on.

But after a few more compiling tasks I obtain this error:

/usr/bin/ld: CloudService.o: undefined reference to symbol 'inflateEnd'
/usr/bin/ld: /lib/x86_64-linux-gnu/libz.so.1: error al añadir símbolos: DSO faltante desde línea de orden
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:2112: GoldenCheetah] Error 1
make[1]: se sale del directorio '/home/topo/Desktop/GoldenCheetah/src'
make: *** [Makefile:91: sub-src-make_first-ordered] Error 2

I think it is a problem with zlib, but I can't understand the reason. In the gcconfig.pri file we can read 

# If your QT build includes its own local compress libs
# then you should comment the line below, otherwise you
# will need to have the compress libraries installed
# separately.
#LIBZ_INCLUDE =
#LIBZ_LIBS    = -lz

Well, I don't know exactly if my QT build (I'm working with QT5 from the Debian repositories) includes it own local compress libs, but my compilation breaks if I leave LIBZ_INCLUDE and LIBZ_LIBS commented and also if I assign values as

LIBZ_INCLUDE = /usr/include/
LIBZ_LIBS    = -lz

The error appears in the GC binary file creation:

g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o GoldenCheetah ... lots of *.o files... -L/home/topo/Desktop/GoldenCheetah/src/../qwt/lib -lqwt -lm /usr/lib/x86_64-linux-gnu/libQt5Svg.so ... /usr/lib/x86_64-linux-gnu/libQt5Core.so -lGL -lpthread

but in this order there is no -lz although LIBZ_LIBS    = -lz is configured

Attached I send my gcconfig.pri
gcconfig.pri

Ale Martinez

unread,
Jan 19, 2022, 12:08:03 PM1/19/22
to golden-cheetah-users
El miércoles, 19 de enero de 2022 a la(s) 13:14:49 UTC-3, jgpa...@gmail.com escribió:
Hello:

I'm trying to compile GC in Linux (Debian Sid), but I obtain an error. I cloned yesterday the git repository, and I'm following the instructions stated in the INSTALL-LINUX file. Apparently all works fine, although I obtain errors with three files. The errors are related to non existent files *.tab.h, but they can be solved renaming files. The errors are

DataFilter.tab.c:152:10: fatal error: DataFilter.tab.h: File does not exist
JsonRideFile.tab.c:206:10: fatal error: JsonRideFile.tab.h: File does not exist
RideDB.tab.c:141:10: fatal error: RideDB.tab.h: File does not exist

but in the src/ folder there are the files DataFilter_yacc.h, JsonRideFile_yacc.h, and RideDByacc.h, so if I rename them to DataFilter.tab.h, JsonRideFile.tab.h, and RideDB.tab.h the files compile and the process go on.

This is a known issues with newer bison versions: https://github.com/GoldenCheetah/GoldenCheetah/issues/3586
 
But after a few more compiling tasks I obtain this error:

/usr/bin/ld: CloudService.o: undefined reference to symbol 'inflateEnd'
/usr/bin/ld: /lib/x86_64-linux-gnu/libz.so.1: error al añadir símbolos: DSO faltante desde línea de orden
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:2112: GoldenCheetah] Error 1
make[1]: se sale del directorio '/home/topo/Desktop/GoldenCheetah/src'
make: *** [Makefile:91: sub-src-make_first-ordered] Error 2

I think it is a problem with zlib, but I can't understand the reason. In the gcconfig.pri file we can read 

# If your QT build includes its own local compress libs
# then you should comment the line below, otherwise you
# will need to have the compress libraries installed
# separately.
#LIBZ_INCLUDE =
#LIBZ_LIBS    = -lz

Well, I don't know exactly if my QT build (I'm working with QT5 from the Debian repositories) includes it own local compress libs, but my compilation breaks if I leave LIBZ_INCLUDE and LIBZ_LIBS commented and also if I assign values as

LIBZ_INCLUDE = /usr/include/
LIBZ_LIBS    = -lz

The error appears in the GC binary file creation:

g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o GoldenCheetah ... lots of *.o files... -L/home/topo/Desktop/GoldenCheetah/src/../qwt/lib -lqwt -lm /usr/lib/x86_64-linux-gnu/libQt5Svg.so ... /usr/lib/x86_64-linux-gnu/libQt5Core.so -lGL -lpthread

but in this order there is no -lz although LIBZ_LIBS    = -lz is configured

Attached I send my gcconfig.pri

You my need to run qmake -recursive after changing gcconfig.pri 

José Luis García Pallero

unread,
Jan 19, 2022, 1:36:05 PM1/19/22
to golden-cheetah-users
El mié, 19 ene 2022 a las 18:08, Ale Martinez
(<amtri...@gmail.com>) escribió:
Yes, I did qmake -recursive after changing gcconfig.pri, but I still
obtain the same error

>
> --
> _______________________________________________
> Golden-Cheetah-Users mailing list
> golden-che...@googlegroups.com
> http://groups.google.com/group/golden-cheetah-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/cf89dfc2-0367-4a4a-9a1b-d299c1fe0192n%40googlegroups.com.



--
*****************************************
José Luis García Pallero
jgpa...@gmail.com
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

Ale Martinez

unread,
Jan 19, 2022, 4:06:48 PM1/19/22
to golden-cheetah-users
And you checked libz is installed in your system, didn't you? 

Steve Edmonds

unread,
Jan 19, 2022, 4:39:34 PM1/19/22
to golden-cheetah-users
On opensuse, in gcconfig.pri I have
LIBZ_INCLUDE = /usr/lib64/
LIBZ_LIBS    = -lz

/usr/lib64/ is linked
/usr/lib64/libz.so -> /lib64/libz.so.1.2.11

libz.so.1.2.11 is provided by libz1

José Luis García Pallero

unread,
Jan 20, 2022, 2:25:30 PM1/20/22
to golden-cheetah-users
El mié, 19 ene 2022 a las 22:39, Steve Edmonds
(<st...@edmondsfamily.co.nz>) escribió:
>
> On opensuse, in gcconfig.pri I have
> LIBZ_INCLUDE = /usr/lib64/
> LIBZ_LIBS = -lz
>
> /usr/lib64/ is linked
> /usr/lib64/libz.so -> /lib64/libz.so.1.2.11
>
> libz.so.1.2.11 is provided by libz1

Thank you for your answers. Finally the error was a wrong
configuration related to Python in my gcconfig.pri.

I'm building GC in order to do the final fix to my Spanish translation
I sent a couple of days ago. Now, my question is: is it possible to
update the translations without recompiling the entire package? How
can I do this?

Thanks
> --
> _______________________________________________
> Golden-Cheetah-Users mailing list
> golden-che...@googlegroups.com
> http://groups.google.com/group/golden-cheetah-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/8f78266b-6b7e-4471-b3c4-3ab54b7641d4n%40googlegroups.com.

marcen

unread,
Jan 20, 2022, 2:57:28 PM1/20/22
to golden-cheetah-users
You can create a gc_es.qm (File->Release) with the linguist tool and save the file in the athlete directory.
After a restart the file will be loaded.

It is more detailed here: https://github.com/GoldenCheetah/GoldenCheetah/wiki/Guidelines-for-translators

Alex Linkenbach

unread,
Feb 24, 2022, 8:00:00 AM2/24/22
to golden-cheetah-users
Hi
do you remember what exactly the wrong configuration was? I edited gcconfig.pri as above and checked the link to libz.so.1.2.11 but I am getting still the same error message on tumbleweed 20220219:
DataFilter.tab.c:152:10: fatal error: DataFilter.tab.h: Datei oder Verzeichnis nicht gefunden
Was there anything else?
Ciao
Alex

Reply all
Reply to author
Forward
0 new messages