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

Fix travis ci static automake lib #140

Merged
merged 1 commit into from Sep 4, 2015

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Sep 4, 2015

Problem:

configure:15694: checking for libsass_version in -lsass
configure:15719: g++ -o conftest -g -O2  -I/home/travis/build/mgreter/sassc/include  -L/home/travis/build/mgreter/sassc/lib conftest.cpp -lsass   >&5
/home/travis/build/mgreter/sassc/lib/libsass.a(plugins.o): In function `Sass::Plugins::load_plugin(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/travis/build/mgreter/sassc/libsass/src/plugins.cpp:49: undefined reference to `dlopen'
/home/travis/build/mgreter/sassc/libsass/src/plugins.cpp:52: undefined reference to `dlsym'
/home/travis/build/mgreter/sassc/libsass/src/plugins.cpp:57: undefined reference to `dlsym'
/home/travis/build/mgreter/sassc/libsass/src/plugins.cpp:63: undefined reference to `dlsym'
/home/travis/build/mgreter/sassc/libsass/src/plugins.cpp:69: undefined reference to `dlsym'
/home/travis/build/mgreter/sassc/libsass/src/plugins.cpp:89: undefined reference to `dlerror'
/home/travis/build/mgreter/sassc/libsass/src/plugins.cpp:81: undefined reference to `dlerror'
/home/travis/build/mgreter/sassc/libsass/src/plugins.cpp:82: undefined reference to `dlclose'
collect2: ld returned 1 exit status

Fix:

if test "x$is_mingw32" != "xyes"; then
  dnl The dlopen() function is in the C library for *BSD and in
  dnl libdl on GLIBC-based systems. Windows uses `LoadLibrary`!
  AC_SEARCH_LIBS([dlopen], [dl dld], [], [
    AC_MSG_ERROR([unable to find the dlopen() function])
  ])
fi

@mgreter mgreter force-pushed the bugfix/travis-ci-static-automake-lib branch from 3248541 to ad6f8f2 Compare September 4, 2015 16:02
@mgreter mgreter force-pushed the bugfix/travis-ci-static-automake-lib branch from ad6f8f2 to 6e68d4a Compare September 4, 2015 16:20
@am11
Copy link
Contributor

am11 commented Sep 4, 2015

👍

mgreter added a commit that referenced this pull request Sep 4, 2015
@mgreter mgreter merged commit 92d449d into sass:master Sep 4, 2015
@mgreter mgreter deleted the bugfix/travis-ci-static-automake-lib branch September 4, 2015 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants