undefined reference to `crypt_r'

Igor Sysoev is at rambler-co.ru
Tue Nov 6 17:17:27 MSK 2007


On Tue, Nov 06, 2007 at 04:07:08PM +0200, Дмитрий Леоненко wrote:

> [root at smoothwall nginx-0.5.32]# cat /proc/version
> Linux version 2.4.33.3 (root at devvmware) (gcc version 3.2 20020903 (Red Hat
> Linux 8.0 3.2-7)) #1 Fri Sep 1 16:55:37 BST 2006
> 
> Какой-то дистрибутив от  http://smoothwall.org/ ( express 2.0 fixes9
> ui-3.6.1 )
> Но не помогло
> 
> objs/src/http/modules/ngx_http_browser_module.o \
> objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
> objs/ngx_modules.o \
> -lz
> objs/src/os/unix/ngx_user.o(.text+0x21): In function `ngx_crypt':
> src/os/unix/ngx_user.c:79: undefined reference to `crypt'
> collect2: ld returned 1 exit status
> make[1]: *** [objs/nginx] Error 1
> make[1]: Leaving directory `/root/nginx-0.5.32'
> make: *** [build] Error 2

Логично:

checking for crypt() ... not found
checking for crypt() in libcrypt ... not found

Тогда даже не представляю себе, где в этой системе может жить crypt.

> 2007/11/6, Igor Sysoev <is at rambler-co.ru>:
> 
> > On Tue, Nov 06, 2007 at 03:27:25PM +0200, Дмитрий Леоненко wrote:
> >
> > > > [root at smoothwall nginx-0.5.32]# ./configure --prefix=/usr
> > > > --conf-path=/etc/nginx --error-log-path=/var/log/nginx
> > --pid-path=/var/run
> > > > --without-http_ssi_module --without-http_geo_module
> > > > --without-http_map_module --without-http_limit_zone_module
> > > > checking for OS
> > > >  + Linux 2.4.33.3 i686
> > > > checking for C compiler ... found
> > > >  + using GNU C compiler
> > > >  + gcc version: 3.3.5
> > > > checking for gcc -pipe switch ... found
> > > > checking for gcc variadic macros ... found
> > > > checking for C99 variadic macros ... found
> > > > checking for unistd.h ... found
> > > > checking for inttypes.h ... found
> > > > checking for limits.h ... found
> > > > checking for sys/filio.h ... not found
> > > > checking for Linux specific features
> > > > grep: /usr/include/linux/version.h: No such file or directory
> > > > checking for epoll ... not found
> > > > checking for sendfile() ... found
> > > > checking for sendfile64() ... found
> > > > checking for sys/prctl.h ... found
> > > > checking for prctl(PR_SET_DUMPABLE) ... found
> > > > checking for sched_setaffinity() ... not found
> > > > checking for nobody group ... found
> > > > checking for poll() ... found
> > > > checking for /dev/poll ... not found
> > > > checking for kqueue ... not found
> > > > checking for crypt() ... not found
> > > > checking for crypt() in libcrypt ... not found
> > > > checking for PCRE library ... not found
> > > > checking for PCRE library in /usr/local/ ... not found
> > > > checking for PCRE library in /usr/include/pcre/ ... not found
> > > > checking for PCRE library in /usr/pkg/ ... not found
> > > > checking for PCRE library in /opt/local/ ... not found
> > > > checking for zlib library ... found
> > > > checking for int size ... 4 bytes
> > > > checking for long size ... 4 bytes
> > > > checking for long long size ... 8 bytes
> > > > checking for void * size ... 4 bytes
> > > > checking for uint64_t ... found
> > > > checking for sig_atomic_t ... found
> > > > checking for sig_atomic_t size ... 4 bytes
> > > > checking for socklen_t ... found
> > > > checking for in_addr_t ... found
> > > > checking for in_port_t ... found
> > > > checking for rlim_t ... found
> > > > checking for uintptr_t ... uintptr_t found
> > > > checking for system endianess ... little endianess
> > > > checking for size_t size ... 4 bytes
> > > > checking for off_t size ... 8 bytes
> > > > checking for time_t size ... 4 bytes
> > > > checking for setproctitle() ... not found
> > > > checking for pread() ... found
> > > > checking for pwrite() ... found
> > > > checking for strerror_r() ... found but is not working
> > > > checking for gnu style strerror_r() ... found
> > > > checking for localtime_r() ... found
> > > > checking for posix_memalign() ... found
> > > > checking for memalign() ... found
> > > > checking for sched_yield() ... found
> > > > checking for mmap(MAP_ANON|MAP_SHARED) ... found
> > > > checking for mmap("/dev/zero", MAP_SHARED) ... found
> > > > checking for System V shared memory ... found
> > > > checking for struct msghdr.msg_control ... found
> > > > checking for ioctl(FIONBIO) ... found
> > > > checking for struct tm.tm_gmtoff ... found
> >
> > > Вот такая вот беда. Кто значет, как это пофиксить - буду очень
> > благодарен
> >
> > А что это за Линукс ?
> > Можно попробовать так:
> >
> > ./configure --with-cc-opt="-D NGX_HAVE_GNU_CRYPT_R=0" ...
> >
> >
> > --
> > Игорь Сысоев
> > http://sysoev.ru
> >
> >

-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list