Menu

#48 compile error

open-accepted
nobody
5
2009-04-08
2008-09-02
Anonymous
No

I got a problem with compiling changepassword.cgi

(1)
./configure --enable-cgidir=/home/www/cgi-bin \
--enable-smbpasswd=/etc/samba/smbpasswd \
--disable-squidpasswd \
--enable-logo=opentech.jpg

(2)
make, gives

gcc -c -o smbencrypt/SMBPasswdGen.o smbencrypt/SMBPasswdGen.c
gcc -c -o smbencrypt/encrypt.o smbencrypt/encrypt.c
gcc -c -o smbencrypt/md4.o smbencrypt/md4.c
gcc -c -o smbencrypt/smbencrypt.o smbencrypt/smbencrypt.c
gcc changepassword.c -o changepassword.cgi smbencrypt/SMBPasswdGen.o smbencrypt/md4.o smbencrypt/smbencrypt.o smbencrypt/encrypt.o -lcrypt -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBCRYPT=1 -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_UNISTD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDIO_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_PWD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_SHADOW_H=1 -DHAVE_TIME_H=1 -DEnglish -DSMBPASSWD=\"/etc/samba/smbpasswd\" -DSQUIDPASSWD=\"no\" -DLOGO=\"opentech.jpg\" -L./smbencrypt -ldes
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible ./smbencrypt/libdes.a when searching for -ldes
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -ldes
collect2: ld returned 1 exit status
make: *** [changepassword.cgi] Error 1

What should I do?

Discussion

  • Vinicius Marques de Souza

    are you running a 64bits linux?

    You need to find a libdes.a for 64bits or compile it and put inside smbencrypt directory

     
  • Vinicius Marques de Souza

    • status: open --> open-accepted
     

Log in to post a comment.