On 5/1/2012 7:03 PM, Fred Moyer wrote: > On OS X 10.7, gcc 4.2.1, with apr-1.4.5 and apr-util 1.4.1, I > encounter the following error attempting to build httpd 2.4.2. I > didn't see any architecture specific code in > srclib/apr/include/apr_file_info.h. Any thoughts? > > ./configure --prefix=/Users/phred/dev/httpd24 --enable-so --with-included-apr > .... > make > ... > > gcc -std=gnu99 -g -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK > -no-cpp-precomp -DDARWIN_10 -I. > -I/Users/phred/dev/httpd-2.4.2/os/unix > -I/Users/phred/dev/httpd-2.4.2/include > -I/Users/phred/dev/httpd-2.4.2/srclib/apr/include > -I/Users/phred/dev/httpd-2.4.2/srclib/apr-util/include > -I/usr/local/include -I/Users/phred/dev/httpd-2.4.2/modules/aaa > -I/Users/phred/dev/httpd-2.4.2/modules/cache > -I/Users/phred/dev/httpd-2.4.2/modules/core > -I/Users/phred/dev/httpd-2.4.2/modules/database > -I/Users/phred/dev/httpd-2.4.2/modules/filters > -I/Users/phred/dev/httpd-2.4.2/modules/ldap > -I/Users/phred/dev/httpd-2.4.2/modules/loggers > -I/Users/phred/dev/httpd-2.4.2/modules/lua > -I/Users/phred/dev/httpd-2.4.2/modules/proxy > -I/Users/phred/dev/httpd-2.4.2/modules/session > -I/Users/phred/dev/httpd-2.4.2/modules/ssl > -I/Users/phred/dev/httpd-2.4.2/modules/test > -I/Users/phred/dev/httpd-2.4.2/server > -I/Users/phred/dev/httpd-2.4.2/modules/arch/unix > -I/Users/phred/dev/httpd-2.4.2/modules/dav/main > -I/Users/phred/dev/httpd-2.4.2/modules/generators > -I/Users/phred/dev/httpd-2.4.2/modules/mappers -c > /Users/phred/dev/httpd-2.4.2/server/buildmark.c > /Users/phred/dev/httpd-2.4.2/srclib/apr/libtool --silent --mode=link > gcc -std=gnu99 -g -O2 -o httpd modules.lo buildmark.o > -export-dynamic server/libmain.la modules/core/libmod_so.la > modules/http/libmod_http.la server/mpm/event/libevent.la > os/unix/libos.la -L/usr/local/lib -lpcre > /Users/phred/dev/httpd-2.4.2/srclib/apr-util/libaprutil-1.la -lexpat > -liconv /Users/phred/dev/httpd-2.4.2/srclib/apr/libapr-1.la -lpthread > Undefined symbols for architecture x86_64: > "_apr_dir_open$INODE64", referenced from: > _process_resource_config_nofnmatch in libmain.a(config.o) > _process_resource_config_fnmatch in libmain.a(config.o) > "_apr_dir_read$INODE64", referenced from: > _process_resource_config_nofnmatch in libmain.a(config.o) > _process_resource_config_fnmatch in libmain.a(config.o) > "_apr_file_info_get$INODE64", referenced from: > _ap_pcfg_openfile in libmain.a(util.o) > _file_func in libmain.a(util_expr_eval.o) > "_apr_stat$INODE64", referenced from: > _check_errorlog_dir in libmain.a(core.o) > _ap_process_fnmatch_configs in libmain.a(config.o) > _ap_is_directory in libmain.a(util.o) > _ap_is_rdirectory in libmain.a(util.o) > _ap_mpm_set_coredumpdir in libmain.a(mpm_common.o) > _ap_log_pid in libmain.a(log.o) > _resolve_symlink in libmain.a(request.o) > ... > ld: symbol(s) not found for architecture x86_64 > collect2: ld returned 1 exit status
Symptomatic of trying to tweak your compile and link using CFLAGS which were compile only, rather that setting CC="gcc -mXX" which is also the default linker, I believe. If not, you would want to set LD and LDSHARED appropriately.
