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

current master still doesn't compile on fedora 17 (libtool) #2

Closed
karlp opened this issue Oct 29, 2012 · 12 comments
Closed

current master still doesn't compile on fedora 17 (libtool) #2

karlp opened this issue Oct 29, 2012 · 12 comments

Comments

@karlp
Copy link

karlp commented Oct 29, 2012

After fixing issue #1, the autotools mess seems mostly fixed.

Now...

/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -llua -lm -ldl -lcurl -avoid-version -module -o cURL.la -rpath cURL_la-Lua-cURL.lo cURL_la-Lua-utility.lo cURL_la-Lua-cURL-getinfo.lo cURL_la-Lua-cURL-setopt.lo cURL_la-Lua-cURL-callback.lo cURL_la-Lua-cURL-post.lo cURL_la-Lua-cURL-multi.lo cURL_la-Lua-cURL-share.lo
libtool: link: only absolute run-paths are allowed
make[1]: *** [cURL.la] Error 1

@msva
Copy link
Contributor

msva commented Nov 17, 2012

Sorry for delay.

I'll try to drop autotools to the hell and move to cmake or to plain makefile in near time.
Thanks for report.

@msva
Copy link
Contributor

msva commented Dec 2, 2012

by the way, can you paste full log when you run:

./autogen.sh && ./configure && make ?

Will it fail to build?

And also, it will be nice to get output of make --version and automake --version commands also.

msva added a commit that referenced this issue Dec 2, 2012
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
@msva msva closed this as completed in 946b6e0 Dec 2, 2012
@msva
Copy link
Contributor

msva commented Dec 2, 2012

so, next time (when I'll have enough time) I'll rewrite buildsystem and finally fix that.
And now — check if it builds with just make or ./configure && make

@karlp
Copy link
Author

karlp commented Dec 3, 2012

Same problem. "libtool: link: only absolute run-paths are allowed"

The Makefile you checked in from the results of your autogen and configure include hard coded paths to your own system. The autogen and configure scripts were working as well as expected, just this rpath junk.

Here's autogen and configure....

karlp@pojak:~/src/lua-curl (master)$ ./autogen.sh 
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
karlp@pojak:~/src/lua-curl (master)$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
./configure: line 11389: luajit: command not found
checking for CURL... yes
configure: using Lua module directory 
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
karlp@pojak:~/src/lua-curl (master)$

And here's the make output...

karlp@pojak:~/src/lua-curl (master)$ make
Making all in src
make[1]: Entering directory `/home/karlp/src/lua-curl/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"Lua-cURL\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -g -O2 -MT cURL_la-Lua-cURL.lo -MD -MP -MF .deps/cURL_la-Lua-cURL.Tpo -c -o cURL_la-Lua-cURL.lo `test -f 'Lua-cURL.c' || echo './'`Lua-cURL.c
libtool: compile:  gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"Lua-cURL 0.2.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT cURL_la-Lua-cURL.lo -MD -MP -MF .deps/cURL_la-Lua-cURL.Tpo -c Lua-cURL.c  -fPIC -DPIC -o .libs/cURL_la-Lua-cURL.o
mv -f .deps/cURL_la-Lua-cURL.Tpo .deps/cURL_la-Lua-cURL.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"Lua-cURL\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -g -O2 -MT cURL_la-Lua-utility.lo -MD -MP -MF .deps/cURL_la-Lua-utility.Tpo -c -o cURL_la-Lua-utility.lo `test -f 'Lua-utility.c' || echo './'`Lua-utility.c
libtool: compile:  gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"Lua-cURL 0.2.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT cURL_la-Lua-utility.lo -MD -MP -MF .deps/cURL_la-Lua-utility.Tpo -c Lua-utility.c  -fPIC -DPIC -o .libs/cURL_la-Lua-utility.o
Lua-utility.c: In function 'luaL_getlstrfield':
Lua-utility.c:38:3: warning: passing argument 3 of 'lua_tolstring' from incompatible pointer type [enabled by default]
In file included from Lua-utility.h:27:0,
                 from Lua-utility.c:25:
/usr/include/lua.h:149:26: note: expected 'size_t *' but argument is of type 'int *'
mv -f .deps/cURL_la-Lua-utility.Tpo .deps/cURL_la-Lua-utility.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"Lua-cURL\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -g -O2 -MT cURL_la-Lua-cURL-getinfo.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-getinfo.Tpo -c -o cURL_la-Lua-cURL-getinfo.lo `test -f 'Lua-cURL-getinfo.c' || echo './'`Lua-cURL-getinfo.c
libtool: compile:  gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"Lua-cURL 0.2.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT cURL_la-Lua-cURL-getinfo.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-getinfo.Tpo -c Lua-cURL-getinfo.c  -fPIC -DPIC -o .libs/cURL_la-Lua-cURL-getinfo.o
mv -f .deps/cURL_la-Lua-cURL-getinfo.Tpo .deps/cURL_la-Lua-cURL-getinfo.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"Lua-cURL\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -g -O2 -MT cURL_la-Lua-cURL-setopt.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-setopt.Tpo -c -o cURL_la-Lua-cURL-setopt.lo `test -f 'Lua-cURL-setopt.c' || echo './'`Lua-cURL-setopt.c
libtool: compile:  gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"Lua-cURL 0.2.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT cURL_la-Lua-cURL-setopt.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-setopt.Tpo -c Lua-cURL-setopt.c  -fPIC -DPIC -o .libs/cURL_la-Lua-cURL-setopt.o
Lua-cURL-setopt.c: In function 'l_easy_setopt_free_slists':
Lua-cURL-setopt.c:306:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
mv -f .deps/cURL_la-Lua-cURL-setopt.Tpo .deps/cURL_la-Lua-cURL-setopt.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"Lua-cURL\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -g -O2 -MT cURL_la-Lua-cURL-callback.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-callback.Tpo -c -o cURL_la-Lua-cURL-callback.lo `test -f 'Lua-cURL-callback.c' || echo './'`Lua-cURL-callback.c
libtool: compile:  gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"Lua-cURL 0.2.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT cURL_la-Lua-cURL-callback.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-callback.Tpo -c Lua-cURL-callback.c  -fPIC -DPIC -o .libs/cURL_la-Lua-cURL-callback.o
Lua-cURL-callback.c: In function 'l_easy_setup_writefunction':
Lua-cURL-callback.c:68:7: warning: call to '_curl_easy_setopt_err_write_callback' declared with attribute warning: curl_easy_setopt expects a curl_write_callback argument for this option [enabled by default]
Lua-cURL-callback.c: In function 'l_easy_setup_readfunction':
Lua-cURL-callback.c:78:7: warning: call to '_curl_easy_setopt_err_read_cb' declared with attribute warning: curl_easy_setopt expects a curl_read_callback argument for this option [enabled by default]
Lua-cURL-callback.c: In function 'l_easy_setup_headerfunction':
Lua-cURL-callback.c:89:7: warning: call to '_curl_easy_setopt_err_write_callback' declared with attribute warning: curl_easy_setopt expects a curl_write_callback argument for this option [enabled by default]
mv -f .deps/cURL_la-Lua-cURL-callback.Tpo .deps/cURL_la-Lua-cURL-callback.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"Lua-cURL\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -g -O2 -MT cURL_la-Lua-cURL-post.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-post.Tpo -c -o cURL_la-Lua-cURL-post.lo `test -f 'Lua-cURL-post.c' || echo './'`Lua-cURL-post.c
libtool: compile:  gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"Lua-cURL 0.2.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT cURL_la-Lua-cURL-post.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-post.Tpo -c Lua-cURL-post.c  -fPIC -DPIC -o .libs/cURL_la-Lua-cURL-post.o
mv -f .deps/cURL_la-Lua-cURL-post.Tpo .deps/cURL_la-Lua-cURL-post.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"Lua-cURL\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -g -O2 -MT cURL_la-Lua-cURL-multi.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-multi.Tpo -c -o cURL_la-Lua-cURL-multi.lo `test -f 'Lua-cURL-multi.c' || echo './'`Lua-cURL-multi.c
libtool: compile:  gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"Lua-cURL 0.2.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT cURL_la-Lua-cURL-multi.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-multi.Tpo -c Lua-cURL-multi.c  -fPIC -DPIC -o .libs/cURL_la-Lua-cURL-multi.o
Lua-cURL-multi.c: In function 'l_multi_add_handle':
Lua-cURL-multi.c:178:7: warning: call to '_curl_easy_setopt_err_write_callback' declared with attribute warning: curl_easy_setopt expects a curl_write_callback argument for this option [enabled by default]
Lua-cURL-multi.c:185:7: warning: call to '_curl_easy_setopt_err_write_callback' declared with attribute warning: curl_easy_setopt expects a curl_write_callback argument for this option [enabled by default]
mv -f .deps/cURL_la-Lua-cURL-multi.Tpo .deps/cURL_la-Lua-cURL-multi.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"Lua-cURL\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -g -O2 -MT cURL_la-Lua-cURL-share.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-share.Tpo -c -o cURL_la-Lua-cURL-share.lo `test -f 'Lua-cURL-share.c' || echo './'`Lua-cURL-share.c
libtool: compile:  gcc -DPACKAGE_NAME=\"Lua-cURL\" -DPACKAGE_TARNAME=\"lua-curl\" -DPACKAGE_VERSION=\"0.2.2\" "-DPACKAGE_STRING=\"Lua-cURL 0.2.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lua-curl\" -DVERSION=\"0.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT cURL_la-Lua-cURL-share.lo -MD -MP -MF .deps/cURL_la-Lua-cURL-share.Tpo -c Lua-cURL-share.c  -fPIC -DPIC -o .libs/cURL_la-Lua-cURL-share.o
mv -f .deps/cURL_la-Lua-cURL-share.Tpo .deps/cURL_la-Lua-cURL-share.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -lcurl   -avoid-version -module  -o cURL.la -rpath  cURL_la-Lua-cURL.lo cURL_la-Lua-utility.lo cURL_la-Lua-cURL-getinfo.lo cURL_la-Lua-cURL-setopt.lo cURL_la-Lua-cURL-callback.lo cURL_la-Lua-cURL-post.lo cURL_la-Lua-cURL-multi.lo cURL_la-Lua-cURL-share.lo  
libtool: link: only absolute run-paths are allowed
make[1]: *** [cURL.la] Error 1
make[1]: Leaving directory `/home/karlp/src/lua-curl/src'
make: *** [all-recursive] Error 1
karlp@pojak:~/src/lua-curl (master)$

msva added a commit that referenced this issue Dec 10, 2012
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
@msva
Copy link
Contributor

msva commented Dec 10, 2012

Hi!
Can you test with ./autogen.sh again?
And also, can you post

$ make --version
$ automake --version
$ libtool --version

?

@msva msva reopened this Dec 10, 2012
@karlp
Copy link
Author

karlp commented Dec 10, 2012

Sure...

karlp@pojak:~/src/lua-curl (master)$ ./autogen.sh 
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:7: installing `./config.guess'
configure.ac:7: installing `./config.sub'
configure.ac:3: installing `./install-sh'
configure.ac:3: installing `./missing'
src/Makefile.am: installing `./depcomp'
karlp@pojak:~/src/lua-curl (master)$ ls
aclocal.m4      config.guess  configure.ac  examples    m4           missing
autogen.sh      config.sub    depcomp       install-sh  Makefile.am  src
autom4te.cache  configure     doc           ltmain.sh   Makefile.in  TODO
karlp@pojak:~/src/lua-curl (master)$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
./configure: line 11390: luajit: command not found
checking for CURL... yes
configure: using Lua module directory 
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
karlp@pojak:~/src/lua-curl (master)$ make
Making all in src
make[1]: Entering directory `/home/karlp/src/lua-curl/src'
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -llua -lm -ldl   -lcurl   -avoid-version -module  -o cURL.la -rpath  cURL_la-Lua-cURL.lo cURL_la-Lua-utility.lo cURL_la-Lua-cURL-getinfo.lo cURL_la-Lua-cURL-setopt.lo cURL_la-Lua-cURL-callback.lo cURL_la-Lua-cURL-post.lo cURL_la-Lua-cURL-multi.lo cURL_la-Lua-cURL-share.lo  
libtool: link: only absolute run-paths are allowed
make[1]: *** [cURL.la] Error 1
make[1]: Leaving directory `/home/karlp/src/lua-curl/src'
make: *** [all-recursive] Error 1
karlp@pojak:~/src/lua-curl (master)$

and the versions....

karlp@pojak:~/src/lua-curl (master)$ make --version
GNU Make 3.82
Built for x86_64-redhat-linux-gnu
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
karlp@pojak:~/src/lua-curl (master)$ automake --version
automake (GNU automake) 1.11.6
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey 
       and Alexandre Duret-Lutz .
karlp@pojak:~/src/lua-curl (master)$ libtool --version
libtool (GNU libtool) 2.4.2
Written by Gordon Matzigkeit , 1996
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
karlp@pojak:~/src/lua-curl (master)$

This is the same error still....

msva added a commit that referenced this issue Dec 10, 2012
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
@msva
Copy link
Contributor

msva commented Dec 10, 2012

it is very strange, since I've same versions and all builds fine... So..

  1. try to do:
$ make clean
$ rm Makefile Makefile.in aclocal.m4 autom4te.cache config.guess config.log config.status config.sub configure depcomp install-sh libtool ltmain.sh missing src/.deps src/Makefile src/Makefile.in m4/*.m4 -rf
$ git pull
$ ./autogen.sh
$ ./configure
$ make

and also, maybe,

$ gcc --version
  1. And, finally. How do you think, is it acceptable, if I move autotools to trash and move project to CMake?

@karlp
Copy link
Author

karlp commented Dec 10, 2012

  1. I'll try it again tomorrow, I'm at home now.
  2. autotools can burn in hell, I would love to see you get rid of it completely. CMake is fine.

@wolfmic
Copy link

wolfmic commented Feb 5, 2013

Hello. I have the same problem that karlp encountered.
I am on OpenSuse 12.2.
I tried on Fedora, the problem is the same.
Sorry.

~/src/lua-cURL/lua-curl > gcc --version
gcc (SUSE Linux) 4.7.1 20120723 [gcc-4_7-branch revision 189773]
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@msva
Copy link
Contributor

msva commented Mar 13, 2013

I need some help with fixing autotools or throwing it away and moving to another build system.
Unfortunately, I almost have no time at the moment.

@msva
Copy link
Contributor

msva commented Apr 29, 2013

Hey!
Can anybody test it with CMake (i've moved it long time ago aready).

// Closing for now

@msva msva closed this as completed Apr 29, 2013
@karlp
Copy link
Author

karlp commented Apr 29, 2013

Looks good enough. Didn't try actually using it, but it builds at least!

karlp@tera:~/src/lua-curl (master)$ cmake .
-- Found Lua51: /usr/lib64/liblua-5.1.so;/usr/lib64/libm.so (found version "5.1.4") 
-- Found CURL: /usr/lib64/libcurl.so (found version "7.24.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/karlp/src/lua-curl
karlp@tera:~/src/lua-curl (master)$ make
Scanning dependencies of target cURL
[ 12%] Building C object CMakeFiles/cURL.dir/src/Lua-cURL.c.o
[ 25%] Building C object CMakeFiles/cURL.dir/src/Lua-cURL-share.c.o
[ 37%] Building C object CMakeFiles/cURL.dir/src/Lua-cURL-multi.c.o
[ 50%] Building C object CMakeFiles/cURL.dir/src/Lua-cURL-callback.c.o
[ 62%] Building C object CMakeFiles/cURL.dir/src/Lua-cURL-getinfo.c.o
[ 75%] Building C object CMakeFiles/cURL.dir/src/Lua-cURL-post.c.o
[ 87%] Building C object CMakeFiles/cURL.dir/src/Lua-cURL-setopt.c.o
[100%] Building C object CMakeFiles/cURL.dir/src/Lua-utility.c.o
Linking C shared module cURL.so
[100%] Built target cURL
karlp@tera:~/src/lua-curl (master)$

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

No branches or pull requests

3 participants