Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2005 14:00:17 -0800
From:      Kent Stewart <kstewart@owt.com>
To:        freebsd-questions@freebsd.org
Cc:        Alex Shaw <alex.shaw@bulletonline.com>
Subject:   Re: libxml2 complier
Message-ID:  <200503151400.17350.kstewart@owt.com>
In-Reply-To: <20050315133834.6c4fa792@zaphod.icarix.net>
References:  <20050315133834.6c4fa792@zaphod.icarix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 15 March 2005 05:38 am, Alex Shaw wrote:
> 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.

FWIW, I have rebuilt in on 4-stable and 5-stable and didn't see your 
problem. I would suspect that you have a dependancy out of date. I 
don't think a "portugrade -Rf libxml2" would take long. IF it fails, it 
will leave the old version installed.

Kent

>
> Regards
>
> Alex

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503151400.17350.kstewart>