FYI: I had to make 1 change to the CMakeLists.txt file for huskylib to^^^^^^^^^^^
be able to compile htick on my new system:
====================================================================== ===== diff --git a/CMakeLists.txt b/CMakeLists.txt index
df5c00e..b0fbe1e 100644 -+- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,7 @@ if (MSVC)
ADD_DEFINITIONS(-DWIN32 -D_WINDOWS -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS) else ()
ADD_DEFINITIONS(-Wall -DUNIX)
+ ADD_DEFINITIONS(-fPIC)
endif (MSVC)
message("-------------------------") ====================================================================== =====
Otherwise I get linker errors when compiling smapi (and probably the
other modules too):
====================================================================== =====
...
[ 87%] Building C object CMakeFiles/smapi.dir/src/sq_write.c.o
[ 93%] Building C object CMakeFiles/smapi.dir/src/structrw.c.o
[100%] Linking C shared library libsmapi.so
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/l^^^^^^^^^^
d: /usr/local/lib64/libhusky.a(cvtdate.c.o): relocation R_X86_64_32S
forFYI: I had to make 1 change to the CMakeLists.txt file for huskylib
to
be able to compile htick on my new system:
======================================================================
===== diff --git a/CMakeLists.txt b/CMakeLists.txt index
df5c00e..b0fbe1e 100644 -+- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,7 @@ if (MSVC)
ADD_DEFINITIONS(-DWIN32 -D_WINDOWS -D_CONSOLE
-D_CRT_SECURE_NO_WARNINGS) else ()
ADD_DEFINITIONS(-Wall -DUNIX)
+ ADD_DEFINITIONS(-fPIC)
endif (MSVC)
message("-------------------------")
======================================================================
=====
Otherwise I get linker errors when compiling smapi (and probably the
other modules too):
======================================================================^^^^^^^^^^^
=====
...
[ 87%] Building C object CMakeFiles/smapi.dir/src/sq_write.c.o
[ 93%] Building C object CMakeFiles/smapi.dir/src/structrw.c.o
[100%] Linking C shared library libsmapi.so
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/l^^^^^^^^^^
d: /usr/local/lib64/libhusky.a(cvtdate.c.o): relocation R_X86_64_32S
I forwarded your message to Alexander Skovpen who wrote CMakeLists.txt
htick. He answered that you tried to link shared (i.e. dynamic) library libsmapi.so to the static library libhusky.a. This was incorrect. Either you build everything statically or you build everything dynamically.
Well then maybe the INSTALL.md for huskylib should be changed. It now states:
$ cmake -H. -Bbuild -DBUILD_SHARED_LIBS=OFF
Well then maybe the INSTALL.md for huskylib should be changed. It now
states:
$ cmake -H. -Bbuild -DBUILD_SHARED_LIBS=OFF
Since i had trouble to move an exsiting config to an upgraded system i prefer the static method for my fidonet software.
Well then maybe the INSTALL.md for huskylib should be changed. It now states:
$ cmake -H. -Bbuild -DBUILD_SHARED_LIBS=OFF
See: https://github.com/huskyproject/huskylib/blob/master/INSTALL.md
The INSTALL.ms for the other modules don't include the "-DBUILD_SHARED_LIBS=OFF"
It now states:
$ cmake -H. -Bbuild -DBUILD_SHARED_LIBS=OFF
Since i had trouble to move an exsiting config to an upgraded
system i prefer the static method for my fidonet software.
The INSTALL.md's for the different modules shouldn't conflict with
each other!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 368 |
Nodes: | 16 (2 / 14) |
Uptime: | 52:34:49 |
Calls: | 7,887 |
Calls today: | 1 |
Files: | 12,962 |
Messages: | 5,788,718 |