Skip to content
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

Compilation Problem on RedHat 5.5 #58

Closed
bnssnake1985 opened this issue Jul 20, 2015 · 10 comments
Closed

Compilation Problem on RedHat 5.5 #58

bnssnake1985 opened this issue Jul 20, 2015 · 10 comments
Assignees
Labels
Milestone

Comments

@bnssnake1985
Copy link

Hi,
I have some problem in compiling the library under Red Hat 5.5. I checked all the dependencies and they are ok but the ant script fails at line 351 (libuiohook bootstrap). Could you please help me? I've also tried to download libuiohook standalone but I've similar error in the bootsrap phase.

Thanks in advance

@bnssnake1985
Copy link
Author

I solved it adding on libuiohook configure.ac the AM_PROG_CC_C_O flag

@kwhat
Copy link
Owner

kwhat commented Jul 20, 2015

RedHat 5.5, just a little legacy? ;) Thanks for the patch, I will put it in tonight.

@kwhat kwhat added this to the 2.0.3 milestone Jul 20, 2015
@kwhat kwhat added the bug label Jul 20, 2015
@kwhat kwhat self-assigned this Jul 20, 2015
kwhat added a commit to kwhat/libuiohook that referenced this issue Jul 21, 2015
@kwhat
Copy link
Owner

kwhat commented Jul 21, 2015

I think the problem is with kwhat/libuiohook@675f775#diff-67e997bcfdac55191033d57a16d1408a. Please pull 2.0 and try building again.

@bnssnake1985
Copy link
Author

Unfortunately we still use this release in our production environment :(.
I tried to pull the updated version (it's still tagged as 1.0 but it has modification in configure.ac) but the error still persist. Please let me know if you need further information.
Thanks again for your support

@kwhat
Copy link
Owner

kwhat commented Jul 21, 2015

Huh, that is really strange. According to the docs, "this is an obsolescent macro that checks that the C compiler supports the -c and -o options together. Note that, since Automake 1.14, the AC_PROG_CC is rewritten to implement such checks itself, and thus the explicit use of AM_PROG_CC_C_O should no longer be required." What version of Automake does RHEL 5.5 ship with? Is it RHEL 5.5 or Old, really OLD Redhat 5? Try putting AM_PROG_CC_C_O in right after AM_PROG_CC. You're welcome ;)

@kwhat
Copy link
Owner

kwhat commented Jul 21, 2015

Can you also paste an error message?

@kwhat
Copy link
Owner

kwhat commented Jul 26, 2015

Hey, So I tried to test on CentOS 5.5 but it only comes with autotools 2.59 and the build process fails for autoconf version. If I change the version, I get a lot of errors related to missing macros. Please let me know what version of autoconfig you are using and the error you receive. Thanks.

@bnssnake1985
Copy link
Author

Sorry for the late reply. I'm using autoconf 2.64.
These are the last lines prompted by bootstrap.sh

configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain cv to be cached
configure.ac:102: warning: AC_LIBTOOL_SETUP was called before AC_LIBTOOL_WIN32_DLL
aclocal.m4:1925: AC_LIBTOOL_WIN32_DLL is expanded from...
../../lib/m4sugar/m4sh.m4:534: AS_CASE is expanded from...
configure.ac:102: the top level
Makefile.am: C objects in subdir but AM_PROG_CC_C_O' not inconfigure.ac'
autoreconf: automake failed with exit status: 1

@bnssnake1985
Copy link
Author

I lost your comment about adding the AM_PROG_CC_C_O. I've added it as reported below:

+# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

Now everything works :)

@kwhat
Copy link
Owner

kwhat commented Sep 12, 2015

I was never able to fully reproduce this, but I do believe the version specified was incorrect. Autotools should have been 2.65, not 2.64.

@kwhat kwhat closed this as completed Sep 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants