Is anyone having this same issue when compiling Apache 1.3.x or 2.0? The build always ends with these or similar errors depending on which version of Apache. I have Fedora core 1 fully updated.
/lib/libapr-0.la -lrt -lm -lcrypt -lnsl -ldl .libs/logresolve.o(.text+0x195): In function `cgethost': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x1da): In function `cgethost': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x203): In function `cgethost': : undefined reference to `__h_errno' .libs/logresolve.o(.text+0x214): In function `cgethost': : undefined reference to `__h_errno' .libs/logresolve.o(.text+0x227): In function `cgethost': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x236): In function `cgethost': : undefined reference to `__h_errno' .libs/logresolve.o(.text+0x43b): In function `stats': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x4ae): In function `stats': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x7f1): In function `main': : undefined reference to `__inet_addr' collect2: ld returned 1 exit status make[2]: *** [logresolve] Error 1 make[2]: Leaving directory `/var/working/sources/httpd-2.0.48/support' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/working/sources/httpd-2.0.48/support' make: *** [all-recursive] Error 1
NetworkingHQ Linux Systems Administrator webmaster@networkinghq.net
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On Mon, Jan 12, 2004 at 04:40:22PM -0500, Dave wrote:
Is anyone having this same issue when compiling Apache 1.3.x or 2.0? The build always ends with these or similar errors depending on which version of Apache. I have Fedora core 1 fully updated.
/lib/libapr-0.la -lrt -lm -lcrypt -lnsl -ldl .libs/logresolve.o(.text+0x195): In function `cgethost': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x1da): In function `cgethost': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x203): In function `cgethost': : undefined reference to `__h_errno'
No, I haven't seen this. What was your configure line for httpd?
joe
I'm building this as a dedicated apache server for ISPMan. As a comparison I also downloaded the update httpd-2.0.48-1.2.src.rpm and made no changes. I used rpmbuild --bb httpd-2.0.48-1.2.src.rpm The same results happened with this "cgethost" issue.
Here's my config for the source package of httpd-2.0.48.tar.gz
rm -rf srclib/{apr,apr-util} export CPPFLAGS="-I/usr/include/apr-0" export CFLAGS="-O2 -march=pentium4 -funroll-loops -D_REENTRANT -D_SINGLE_LISTEN_UNSERIALIZED_ACCEPT -fPIC"
./configure --prefix=/opt/ispman \ --with-mpm=prefork \ --enable-access=shared \ --enable-actions=shared \ --enable-alias=shared \ --with-apr=/usr \ --with-apr-util=/usr \ --enable-auth=shared \ --enable-auth-dbm=shared \ --enable-auth-digest=shared \ --enable-autoindex=shared \ --enable-cern-meta=shared \ --enable-cgi=shared \ --enable-cgid=shared \ --enable-dav=shared \ --enable-dav-fs=shared \ --enable-dir=shared \ --enable-env=shared \ --enable-expires=shared \ --enable-file-cache=shared \ --enable-headers=shared \ --enable-include=shared \ --enable-log-config=shared \ --enable-mime=shared \ --enable-mime-magic=shared \ --enable-negotiation=shared \ --enable-rewrite=shared \ --enable-setenvif=shared \ --enable-speling=shared \ --enable-ssl=shared \ --enable-unique-id=shared \ --enable-usertrack=shared \ --enable-vhost-alias=shared \ --enable-suexec=shared \ --with-suexec-caller=wwwisp \ --with-suexec-docroot=/opt/ispman \ --with-suexec-logfile=/var/log/httpd2/suexec.log \ --with-suexec-bin=/usr/sbin/suexec \ --with-suexec-uidmin=500 --with-suexec-gidmin=500 \ --disable-auth-anon \ --disable-charset-lite \ --disable-disk-cache \ --disable-mem-cache \ --disable-cache \ --disable-deflate \ --disable-ext-filter \ --disable-case-filter \ --disable-case-filter-in \ --disable-example \ --disable-proxy \ --disable-proxy-connect \ --disable-proxy-ftp \ --disable-proxy-http \ --disable-status \ --disable-asis \ --disable-info \ --disable-imap \ --disable-userdir \ --with-z \ --with-ssl \ --with-suexec
Quoting Joe Orton jorton@redhat.com:
On Mon, Jan 12, 2004 at 04:40:22PM -0500, Dave wrote:
Is anyone having this same issue when compiling Apache 1.3.x or 2.0? The build always ends with these or similar errors depending on which version of Apache. I have Fedora core 1 fully updated.
/lib/libapr-0.la -lrt -lm -lcrypt -lnsl -ldl .libs/logresolve.o(.text+0x195): In function `cgethost': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x1da): In function `cgethost': : undefined reference to `__inet_ntoa' .libs/logresolve.o(.text+0x203): In function `cgethost': : undefined reference to `__h_errno'
No, I haven't seen this. What was your configure line for httpd?
joe
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
David B Hughes NetworkingHQ Linux Systems Administrator webmaster@networkinghq.net
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On Mon, Jan 12, 2004 at 05:22:36PM -0500, Dave Hughes wrote:
I'm building this as a dedicated apache server for ISPMan. As a comparison I also downloaded the update httpd-2.0.48-1.2.src.rpm and made no changes. I used rpmbuild --bb httpd-2.0.48-1.2.src.rpm The same results happened with this "cgethost" issue.
I can't reproduce that here. Maybe check your glibc-devel/glibc-kernheaders etc packages are installed properly?
joe
The problem is now resolved after reloading the system with FC1. I'm sorry for not sticking with it and giving the mailing list a contribution, however I had the option at this point of development to just reload. I should have had more patience and waited for your last message on "glibc-devel/glibc-kernheaders" in regard to correctness. The thought actually came to mind once, especially since I compiled a custom kernel.
Joe I've compiled many kernels in the past with a good success rate, however where do you think I went wrong on this last one? What impact does a custom Fedora kernel have on /usr/include/linux and /usr/include/asm ? Do I need to symlink these directories to the kernel source directories instead of relying on glibc-kernheaders? I'm definitely a little green when it comes to glibc relations to the kernels.
Here's what steps I used before. Makefile compiler flags: HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -mcpu=pentium4 -march=pentium4 -funroll-loops -fomit-frame- pointer CFLAGS=-Wall -Wstrict-prototypes -O2 -mcpu=pentium4 -march=pentium4 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
make mrproper make menuconfig make deps make bzImage make modules_install make install and of course set grub.conf to the custom kernel
Dave
At 05:08 AM 1/13/2004, you wrote:
On Mon, Jan 12, 2004 at 05:22:36PM -0500, Dave Hughes wrote:
I'm building this as a dedicated apache server for ISPMan. As a comparison I also downloaded the update httpd-2.0.48-1.2.src.rpm and made no changes. I used rpmbuild --bb httpd-2.0.48-1.2.src.rpm The same results happened with this "cgethost" issue.
I can't reproduce that here. Maybe check your glibc-devel/glibc-kernheaders etc packages are installed properly?
joe
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list