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
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
I forwarded your message to Alexander Skovpen who wrote CMakeLists.txt for 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: | Rempala |
---|---|
Location: | Richlands, NC |
Users: | 106 |
Nodes: | 10 (0 / 10) |
Uptime: | 40:08:51 |
Calls: | 205 |
Files: | 6 |
Messages: | 111,121 |