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

subdir-objects #8

Open
ChrisLaidler opened this issue May 15, 2014 · 3 comments
Open

subdir-objects #8

ChrisLaidler opened this issue May 15, 2014 · 3 comments

Comments

@ChrisLaidler
Copy link

When compiling on Ubuntu 14.04, with latest automake, autoconf and autogen. ./autogen.sh gives the following error:


Makefile.am:16: warning: source file 'sph/bmw.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
Makefile.am:16: warning: source file 'sph/blake.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/groestl.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/jh.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/keccak.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/skein.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/fugue.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/cubehash.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/echo.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/luffa.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/shavite.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
Makefile.am:16: warning: source file 'sph/simd.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled


This is easily fixed by adding "AUTOMAKE_OPTIONS = subdir-objects" to Makefile.am

@Atticus4
Copy link

Linux neophyte here...

That "AUTOMAKE_OPTIONS..." line added to bottom of Makefile.am fixed my ./autogen.sh issue.

However when I run ./configure it gives text below, including something about missing OpenSSL. I'm in Mint 17 and software manager says OpenSSL is already installed, so it's not finding it.

Do I need to to extract source into a particular directory before doing the autogen and configure commands?


checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/brent/Downloads/ccminer-1.0/missing: Unknown --is-lightweight' option Try/home/brent/Downloads/ccminer-1.0/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking dependency style of gcc -std=gnu99... gcc3
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc -std=gnu99 option to support OpenMP... -fopenmp
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 sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for sys/sysctl.h... yes
checking whether be32dec is declared... no
checking whether le32dec is declared... no
checking whether be32enc is declared... no
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getopt_long... yes
checking whether we can compile AVX code... yes
checking whether we can compile XOP code... yes
checking whether we can compile AVX2 code... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for SSL_library_init in -lssl... no
configure: error: OpenSSL library required

@cbuchner1
Copy link
Owner

You need an OpenSSL developer package. The exact package name to install
would depend on your choice of Linux distribution.

2014-05-21 1:25 GMT+02:00 Atticus4 notifications@github.com:

Linux neophyte here...

That "AUTOMAKE_OPTIONS..." line added to bottom of Makefile.am fixed my
./autogen.sh issue.

However when I run ./configure it gives text below, including something
about missing OpenSSL. I'm in Mint 17 and software manager says OpenSSL is
already installed, so it's not finding it.
Do I need to to extract source into a particular directory before doing
the autogen and configure commands?

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/brent/Downloads/ccminer-1.0/missing: Unknown --is-lightweight'
option
Try/home/brent/Downloads/ccminer-1.0/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking dependency style of gcc -std=gnu99... gcc3
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc -std=gnu99 option to support OpenMP... -fopenmp
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 sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for sys/sysctl.h... yes
checking whether be32dec is declared... no
checking whether le32dec is declared... no
checking whether be32enc is declared... no
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getopt_long... yes
checking whether we can compile AVX code... yes
checking whether we can compile XOP code... yes
checking whether we can compile AVX2 code... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for SSL_library_init in -lssl... no
configure: error: OpenSSL library required


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-43695990
.

@Atticus4
Copy link

Got it working! Thanks! And thanks for working on this project.

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