-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make build work on IBM i #1051
Comments
That should work.. make sure the file is at |
The file was indeed at Could be me doing something wrong - this is not my strongest field - so I started from scratch: Clone the repository into new directory
I still do not see the expexted value in LDLIBS - "-lutil" is still missing in
The files |
Turns out the problem is that It worked for me because i didn't run I don't see an obvious way to fix the autotools build, but it seems easier to not use it. |
So the build system is apparently broken - no longer using values set by the Omitting I fixed it by changing my
and adding the following lines to
after calling the two Now I can run Any comments on this approach? Best regards, |
You're supposed to choose between the original build system and autoconf. For example, config.make-Darwin defines everything you need to build Tig on macOS without having to run configure. If you don't want to add everything to config.make-OS400 (or just can't because of systems variability), then it would be best to teach autoconf to add --- a/configure.ac
+++ b/configure.ac
@@ -36,6 +36,13 @@ AX_LIB_READLINE(6.3)
AM_ICONV
+dnl OS-specific
+case $(uname -s 2>/dev/null || echo unknown) in
+OS400)
+ AC_CHECK_LIB(util, main, [LIBS="$LIBS -lutil"], AC_MSG_ERROR([Please install the libutil-devel package]))
+ ;;
+esac
+
AC_CHECK_PROGS(SED, [gsed], [sed])
AC_TDD_GCOV
AC_SUBST(COVERAGE_CFLAGS) |
Ah, thanks for the tip, @koutcher - seems I have a lot to learn about build tools...! Thank you all for the help! Best regards, |
Hi.
I found this excellent tool and wanted to port it to IBM i. I'm a newbie in the make tools, but proceeded anyway...
I cloned this repository and followed the build instructions. There was a problem during the linking phase - the linker could not find "libutil_flock".
I could solve this problem by adding " -lutil" to the LDLIBS variable in
config.make
:Now the compile worked and the tig utility was build and running.
I wanted to make the build work directly from the git repository, so I made a new file
config.make-OS400
("OS400" is reported by the uname command):It was my understanding, that the value of TIG_LDLIBS would be included in the final LDLIBS value for the linker - but it does not work...
My config.make-OS400 is definitely being called - it reports error messages if I remove the libraries tested for - but it does not set the final LDLIBS value.
What am I doing wrong? Please help - when I make it work, I will make a PR so tig can be build on IBM i directly from this repository.
Best regards,
Christian
The text was updated successfully, but these errors were encountered: