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

Errors building under Gentoo #284

Open
drescherjm opened this issue Mar 30, 2023 · 4 comments
Open

Errors building under Gentoo #284

drescherjm opened this issue Mar 30, 2023 · 4 comments

Comments

@drescherjm
Copy link

Since this is not a package on Gentoo I tried to build it from source and had a build failure:

jmd0 ~/projects/mod_auth_gssapi # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports the include directive... yes (GNU style)
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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for pkg-config... yes
checking for bison... bison -y
checking for bison... yes
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... -lfl
checking whether yytext is a pointer... yes
checking for flex... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/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 how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
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 a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.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... yes
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/x86_64-pc-linux-gnu/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... yes
checking for stdint.h... (cached) yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for size_t... yes
checking for uint32_t... yes
checking for strcasecmp... yes
checking for apache2... /usr/sbin/apache2
checking for apxs2... /usr/sbin/apxs2
configure: apxs found at /usr/sbin/apxs2
checking for apr-1-config... /usr/bin/apr-1-config
configure: apr found at /usr/bin/apr-1-config
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... yes
checking for EVP_CIPHER_CTX_new... yes
checking for HMAC_CTX_new... yes
checking for gssapi/gssapi.h... yes
checking for gssapi/gssapi_ext.h... yes
checking for gssapi/gssapi_krb5.h... yes
checking for gssapi/gssapi_ntlmssp.h... no
checking for krb5-config... /usr/bin/krb5-config
checking for gss_accept_sec_context in -lgssapi_krb5... yes
checking for gss_krb5_ccache_name... yes
checking for gss_acquire_cred_with_password... yes
checking for gss_acquire_cred_from... yes
checking for gss_store_cred_into... yes
Use of uninitialized value in concatenation (.) or string at /usr/sbin/apxs2 line 232.
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/asn1c/Makefile
config.status: creating tests/Makefile
config.status: creating contrib/mod_auth_gssapi.spec
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
jmd0 ~/projects/mod_auth_gssapi # make
Making all in src/asn1c
make[1]: Entering directory '/root/projects/mod_auth_gssapi/src/asn1c'
depbase=`echo asn_codecs_prim.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src     -g -O2 -MT asn_codecs_prim.lo -MD -MP -MF $depbase.Tpo -c -o asn_codecs_prim.lo asn_codecs_prim.c &&\
mv -f $depbase.Tpo $depbase.Plo
/bin/sh: line 2: --tag=CC: command not found
make[1]: *** [Makefile:502: asn_codecs_prim.lo] Error 127
make[1]: Leaving directory '/root/projects/mod_auth_gssapi/src/asn1c'
make: *** [Makefile:413: all-recursive] Error 1
@simo5
Copy link
Contributor

simo5 commented Mar 30, 2023

Sounds like you are missing libtool ?

@drescherjm
Copy link
Author

drescherjm commented Apr 7, 2023

portage says I have libtool-2.4.7

jmd0 ~/projects/mod_auth_gssapi # equery list libtool
 * Searching for libtool ...
[IP-] [  ] sys-devel/libtool-2.4.7-r1:2

@HGuillemet
Copy link

Same problem here on Gentoo. Downgrading libtool to 2.4.6 doesn't work.
@drescherjm did you come up with a solution ?

@simo5
Copy link
Contributor

simo5 commented Aug 21, 2023

I suggest you run autoreconf -fi before the ./configure step.
I have libtool 2.4.7 on Fedora and it works just fine.

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