From owner-freebsd-questions@FreeBSD.ORG Tue Mar 15 21:39:45 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 890FF16A4CE for ; Tue, 15 Mar 2005 21:39:45 +0000 (GMT) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92A0543D2F for ; Tue, 15 Mar 2005 21:39:44 +0000 (GMT) (envelope-from alex.shaw@bulletonline.com) Received: from zaphod.icarix.net ([12.7.93.4]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Tue, 15 Mar 2005 21:40:19 +0000 Date: Tue, 15 Mar 2005 13:38:34 +0000 From: Alex Shaw To: freebsd-questions@freebsd.org Message-ID: <20050315133834.6c4fa792@zaphod.icarix.net> Organization: BulletOnline X-Mailer: Sylpheed-Claws 1.0.0 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Mar 2005 21:40:19.0912 (UTC) FILETIME=[95C80C80:01C529A7] Subject: libxml2 complier X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 21:39:45 -0000 Hi, I have a problem compiling libxml2 from the ports. the error is this: cc -O -pipe -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o .libs/xpath1 xpath1.o -L/usr/local/lib ../../.libs/libxml2.so -lz -liconv -lm -Wl,--rpath -Wl,/usr/local/lib ../../.libs/libxml2.so: undefined reference to `__signbit' gmake[3]: *** [xpath1] Error 1 gmake[3]: Leaving directory `/usr/ports/textproc/libxml2/work/libxml2-2.6.18/doc/examples' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/textproc/libxml2/work/libxml2-2.6.18/doc' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/textproc/libxml2/work/libxml2-2.6.18' gmake: *** [all] Error 2 *** Error code 2 Ive tried compiling several different versions of libxml all produce the same error. I contacted the xml list for libxml2 and have been directed towards os help with the compiler, apperntly the compiler includes are not in sync with the installed libc. I know compat4x was installed recently and dont know if this has and relation. I have included the text of the conversation on the libxml list for reference, Ideally I need to get this back up so i can get php-xml to run. Any suggestions here would be useful as I am out of my depth when it come to compilers and how they work. unfortuantly rebuilding the box is out of the question, im away on a busiessness trip about 10000 miles from the server :(, so any solution that might be a temporary fix till i can get back next week would be a start Also worth noting I complied a "hello world" app to test gcc and it worked.... dont know how much this will help. Regards Alex -- Alex Shaw > Hi, im trying to install libxml2-2.6.18 from the FreeBSD ports, there is a problem with the compile on the system i am using. I have tried several versions of libxml2 and they all return the same error, which means its probably not an issue involved with libxml, but I cant pin down where the error is coming from, or what is causing the problem to occur. I was hoping someone on this list would be able to point me in the direction of what is causing this. > > The error is: > cc -O -pipe -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o .libs/xpath1 xpath1.o -L/usr/local/lib ../../.libs/libxml2.so -lz -liconv -lm -Wl,--rpath -Wl,/usr/local/lib > ../../.libs/libxml2.so: undefined reference to `__signbit' paphio:~/XML -> grep __signbit *.c paphio:~/XML -> grep __signbit *.c include/libxml/*.h paphio:~/XML -> Somehow your system or compiler includes are not in synch with your installed libc, sounds bad, but you're right it doesn't sound like a libxml2 problem. The great thing about those systems where everybody recompiles locally is that you don't have the same system as your neighbour, this is also its main drawback, you're on your own to debug the problem...