Giter Club home page Giter Club logo

Comments (4)

troglobit avatar troglobit commented on July 1, 2024

OK, I think I've fixed it now. For me it didn't fail that early, it failed on an mmap() check, which I've removed in c989dac.

For future errors, it really helps if you include the full config.log file so I can see your flags to configure etc. Here's is my build, I used a crosstool-NG toolchain I've built previously:

$ ./configure --host=arm-unknown-linux-gnueabi --without-ssl --without-zlib --without-config CC=arm-unknown-linux-gnueabi-gcc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-unknown-linux-gnueabi-strip... arm-unknown-linux-gnueabi-strip
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 make supports nested variables... (cached) yes
checking for arm-unknown-linux-gnueabi-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for arm-unknown-linux-gnueabi-gcc... arm-unknown-linux-gnueabi-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-unknown-linux-gnueabi-gcc accepts -g... yes
checking for arm-unknown-linux-gnueabi-gcc option to accept ISO C89... none needed
checking whether arm-unknown-linux-gnueabi-gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of arm-unknown-linux-gnueabi-gcc... gcc3
...
$ make -j5
make  all-recursive
make[1]: Entering directory '/home/jocke/Troglobit/merecat'
Making all in src
make[2]: Entering directory '/home/jocke/Troglobit/merecat/src'
  CC       merecat-base64.o
  CC       merecat-fdwatch.o
  CC       merecat-file.o
  CC       merecat-libhttpd.o
  CC       merecat-md5.o
  CC       merecat-merecat.o
  CC       merecat-mmc.o
  CC       merecat-pidfile.o
  CC       merecat-stack.o
  CC       merecat-srv.o
  CC       merecat-timers.o
  CC       merecat-tdate_parse.o
  CC       match.o
  CC       ../lib/strlcpy.o
  CC       ../lib/strlcat.o
  CC       ../lib/lstat.o
  AR       libmatch.a
  CCLD     merecat
make[2]: Leaving directory '/home/jocke/Troglobit/merecat/src'
...
$ file src/merecat
src/merecat: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 4.15.0, with debug_info, not stripped

Btw, you shouldn't have to set CC, the --host=foo argument takes care of that.

from merecat.

pioneerAlone avatar pioneerAlone commented on July 1, 2024

This is the config.log that I generated by cross compilation.
config.log

from merecat.

pioneerAlone avatar pioneerAlone commented on July 1, 2024

The possible reason is that my virtual machine is 64-bit, causing cross-compilation to fail, trying to solve this problem. / Configuration succeeded, but new problems appeared afterwards:
../lib/lstat.c: In function 'lstat':
../lib/lstat.c:33: error: 'AT_FDCWD' undeclared (first use in this function)
../lib/lstat.c:33: error: (Each undeclared identifier is reported only once
../lib/lstat.c:33: error: for each function it appears in.)
../lib/lstat.c:33: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in this function)
Makefile:463: recipe for target '../lib/lstat.o' failed
make[2]: *** [../lib/lstat.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/book/merecat-master/src'
Makefile:472: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/book/merecat-master'
Makefile:348: recipe for target 'all' failed
make: *** [all] Error 2

from merecat.

troglobit avatar troglobit commented on July 1, 2024

Both AT_FDCWD and AT_SYMLINK_NOFOLLOW are declared in fcntl.h, which is a standard C-library header file. So not a problem with Merecat but rather your cross compiler/environment.

from merecat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.