cancel
Showing results for 
Search instead for 
Did you mean: 

Compile Error with Linux Program

Firejack
Grafter
Posts: 921
Registered: 26-06-2007

Compile Error with Linux Program

Hello,
I'm trying to setup a new program on my Linux box, jftpgw.

When i try to compile it. I get lots of cryptic error messages.

Could someone give me some steps to take to try and fix the Compile error? Just general tips.
I'm still to find a good webpage that explains the step-by-step process of setting up a new linux program and the rules-of-thumb to troubleshoot the setup. At least in terms I understand.

Cheers Smiley
3 REPLIES
csogilvie
Grafter
Posts: 5,852
Registered: 04-04-2007

Compile Error with Linux Program

Its a lot easier if you tell us the errors Smiley
Firejack
Grafter
Posts: 921
Registered: 26-06-2007

Compile Error with Linux Program

OK..... here is the config log file
Quote
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:568: checking for a BSD compatible install
configure:621: checking whether build environment is sane
configure:678: checking whether make sets ${MAKE}
configure:724: checking for working aclocal
configure:737: checking for working autoconf
configure:750: checking for working automake
configure:763: checking for working autoheader
configure:776: checking for working makeinfo
configure:811: checking whether build environment is sane
configure:860: checking for a BSD compatible install
configure:915: checking for working aclocal
configure:928: checking for working autoconf
configure:941: checking for working automake
configure:954: checking for working autoheader
configure:967: checking for working makeinfo
configure:985: checking for gcc
configure:1098: checking whether the C compiler (gcc ) works
configure:1114: gcc -o conftest conftest.c 1>&5
configure:1140: checking whether the C compiler (gcc ) is a cross-compiler
configure:1145: checking whether we are using GNU C
configure:1154: gcc -E conftest.c
configure:1173: checking whether gcc accepts -g
configure:1205: checking how to run the C preprocessor
configure:1226: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1285: checking whether ln -s works
configure:1306: checking whether make sets ${MAKE}
configure:1344: checking for a BSD compatible install
configure:1402: checking for ANSI C header files
configure:1415: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1482: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1506: checking for sys/wait.h that is POSIX.1 compatible
configure:1527: gcc -c -g -O2 conftest.c 1>&5
configure:1555: checking for fcntl.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for limits.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for sys/time.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for syslog.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for unistd.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for getopt.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for signal.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for sys/signal.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for crypt.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for strings.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for stdarg.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for varargs.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
In file included from configure:1561:
/usr/lib/gcc-lib/i486-suse-linux/3.3/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc-lib/i486-suse-linux/3.3/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
configure: failed program was:
#line 1560 "configure"
#include "confdefs.h"
#include <varargs.h>
configure:1555: checking for tcpd.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for linux/netfilter_ipv4.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1555: checking for netinet/ip_fil.h
configure:1565: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1561:28: netinet/ip_fil.h: No such file or directory
configure: failed program was:
#line 1560 "configure"
#include "confdefs.h"
#include <netinet/ip_fil.h>
configure:1593: checking for working const
configure:1647: gcc -c -g -O2 conftest.c 1>&5
configure:1668: checking for pid_t
configure:1701: checking for size_t
configure:1734: checking whether time.h and sys/time.h may both be included
configure:1748: gcc -c -g -O2 conftest.c 1>&5
configure:1769: checking whether struct tm is in sys/time.h or time.h
configure:1782: gcc -c -g -O2 conftest.c 1>&5
configure:1804: checking for wait3 that fills in rusage
configure:1843: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1868: checking for getcwd
configure:1896: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1868: checking for strdup
configure:1896: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1868: checking for strcasestr
configure:1896: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1868: checking for seteuid
configure:1896: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1868: checking for setegid
configure:1896: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1922: checking for unix98 socklen_t
configure:1932: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:1927: warning: useless keyword or type name in empty declaration
configure:1927: warning: empty declaration
configure:1954: checking for socket in -lsocket
configure:1973: gcc -o conftest -g -O2 conftest.c -lsocket 1>&5
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-linux/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
configure: failed program was:
#line 1962 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();

int main() {
socket()
; return 0; }
configure:2022: checking for setsockopt
configure:2050: gcc -o conftest -g -O2 conftest.c 1>&5
configure:2119: checking for gethostbyname in -lnsl
configure:2138: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5
configure:2154: checking if we need to link against libnsl
configure:2165: gcc -o conftest -g -O2 conftest.c 1>&5
configure:2184: checking for inet_aton in -lresolv
configure:2203: gcc -o conftest -g -O2 conftest.c -lresolv 1>&5
configure:2219: checking if we need to link against libresolv
configure:2232: gcc -o conftest -g -O2 conftest.c 1>&5
configure:2251: checking for libwrap
configure:2268: gcc -o conftest -g -O2 conftest.c -lwrap 1>&5
configure:2286: checking if we can get interface IPs
configure:2306: gcc -c -g -O2 conftest.c 1>&5
configure:2324: checking if we can get interface configuration
configure:2342: gcc -c -g -O2 conftest.c 1>&5
configure:2360: checking if ICMP declarations are fine
configure:2398: gcc -c -g -O2 conftest.c 1>&5
configure:2416: checking if you want to compile for Windows
configure:2439: checking for log facility LOG_AUTH
configure:2451: gcc -c -g -O2 conftest.c 1>&5
configure:2468: checking for log facility LOG_AUTHPRIV
configure:2480: gcc -c -g -O2 conftest.c 1>&5
configure:2497: checking for log facility LOG_CRON
configure:2509: gcc -c -g -O2 conftest.c 1>&5
configure:2526: checking for log facility LOG_DAEMON
configure:2538: gcc -c -g -O2 conftest.c 1>&5
configure:2555: checking for log facility LOG_FTP
configure:2567: gcc -c -g -O2 conftest.c 1>&5
configure:2584: checking for log facility LOG_KERN
configure:2596: gcc -c -g -O2 conftest.c 1>&5
configure:2613: checking for log facility LOG_LOCAL0
configure:2625: gcc -c -g -O2 conftest.c 1>&5
configure:2642: checking for log facility LOG_LOCAL1
configure:2654: gcc -c -g -O2 conftest.c 1>&5
configure:2671: checking for log facility LOG_LOCAL2
configure:2683: gcc -c -g -O2 conftest.c 1>&5
configure:2700: checking for log facility LOG_LOCAL3
configure:2712: gcc -c -g -O2 conftest.c 1>&5
configure:2729: checking for log facility LOG_LOCAL4
configure:2741: gcc -c -g -O2 conftest.c 1>&5
configure:2758: checking for log facility LOG_LOCAL5
configure:2770: gcc -c -g -O2 conftest.c 1>&5
configure:2787: checking for log facility LOG_LOCAL6
configure:2799: gcc -c -g -O2 conftest.c 1>&5
configure:2816: checking for log facility LOG_LOCAL7
configure:2828: gcc -c -g -O2 conftest.c 1>&5
configure:2845: checking for log facility LOG_LPR
configure:2857: gcc -c -g -O2 conftest.c 1>&5
configure:2874: checking for log facility LOG_MAIL
configure:2886: gcc -c -g -O2 conftest.c 1>&5
configure:2903: checking for log facility LOG_NEWS
configure:2915: gcc -c -g -O2 conftest.c 1>&5
configure:2932: checking for log facility LOG_SYSLOG
configure:2944: gcc -c -g -O2 conftest.c 1>&5
configure:2961: checking for log facility LOG_USER
configure:2973: gcc -c -g -O2 conftest.c 1>&5
configure:2990: checking for log facility LOG_UUCP
configure:3002: gcc -c -g -O2 conftest.c 1>&5
configure:3019: checking for log facility LOG_CONSOLE
configure:3031: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:3025: error: `LOG_CONSOLE' undeclared (first use in this function)
configure:3025: error: (Each undeclared identifier is reported only once
configure:3025: error: for each function it appears in.)
configure: failed program was:
#line 3021 "configure"
#include "confdefs.h"
#include <syslog.h>
int main() {

openlog("configure-test", 0, LOG_CONSOLE );
return 0;

; return 0; }
configure:3048: checking for log facility LOG_SECURITY
configure:3060: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:3054: error: `LOG_SECURITY' undeclared (first use in this function)
configure:3054: error: (Each undeclared identifier is reported only once
configure:3054: error: for each function it appears in.)
configure: failed program was:
#line 3050 "configure"
#include "confdefs.h"
#include <syslog.h>
int main() {

openlog("configure-test", 0, LOG_SECURITY);
return 0;

; return 0; }
configure:3078: checking for the logfile path
configure:3102: checking for strftime
configure:3130: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3198: checking for vprintf
configure:3226: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3304: checking for snprintf
configure:3332: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3355: checking for vsnprintf
configure:3383: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3410: checking for select
configure:3438: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3410: checking for socket
configure:3438: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3410: checking for strerror
configure:3438: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3410: checking for strtod
configure:3438: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3410: checking for getopt_long
configure:3438: gcc -o conftest -g -O2 conftest.c 1>&5
configure:3410: checking for crypt
configure:3438: gcc -o conftest -g -O2 conftest.c 1>&5
/tmp/ccSKNrjW.o(.text+0xa): In function `main':
/home/firejack/programs/jftpgw/jftpgw-0.13.4/configure:3432: undefined reference to `crypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3415 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char crypt(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char crypt();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_crypt) || defined (__stub___crypt)
choke me
#else
crypt();
#endif

; return 0; }
configure:3464: checking for crypt in -lcrypt
configure:3483: gcc -o conftest -g -O2 conftest.c -lcrypt 1>&5
configure:3518: checking for crypt support
configure:3567: checking if we can compile the rel2abs program
configure:3581: checking if compiler accepts -Wall
configure:3591: gcc -c -g -O2 -Wall conftest.c 1>&5
Can understand bits of it, such as, "choke me"... with pleasure computer :twisted:
Community Veteran
Posts: 14,469
Registered: 30-07-2007

Compile Error with Linux Program

First, you are not actually compiling the code. Running configure is just checking the development environment you will be compiling the code on to check that everything is there that is needed to compile it correctly.

Your only option is to contact the author and find out if the software is compatible with freeBSD and gcc as they are the only ones who will be able to understand the output of the configure run.

Also do you have to compile it - there is a FreeBSD binary distribution available from the site you got the source from so I suggest you use that instead.