Problem installing webalizer on Solaris 9 (sparc 64)

  • Follow


Hello,

I'm having some problem in installing Webalizer on our Solaris 9
(sparc)

I installed all the needed packages using pkgadd but I couldn't find a
binary fo webalizer higher then solaris 8,
so I downloaded the source code and I tried...
but I get the following error
can anyone help?

dse01:/software/webalizer-2.01-10 root# ./configure
--with-language=italian    
loading cache ./config.cache
checking for gcc... (cached) gcc0 root# ./configure
--with-language=italian --en 
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether ln -s works... (cached) yes
checking for a BSD compatible install... (cached)
/opt/sfw/bin/ginstall -c
checking how to run the C preprocessor... (cached) gcc -E
checking whether char is unsigned... (cached) no
checking for main in -l44bsd... (cached) no
checking for main in -lm... (cached) yes
checking for main in -lz... (cached) yes
checking for gzrewind in -lz... (cached) yes
checking for main in -lpng... (cached) yes
checking for gdImagePng in -lgd... (cached) no
checking for libgd.a... (cached) /usr/local/lib
checking for gd.h... (cached) /usr/local/include
checking for getopt.h... (cached) no
checking for math.h... (cached) yes
checking default config dir... (cached) /etc
checking for language file... yes - italian
creating ./config.status
creating Makefile
linking ./lang/webalizer_lang.italian to webalizer_lang.h
dse01:/software/webalizer-2.01-10 root# make
gcc -L/usr/local/lib -o webalizer webalizer.o hashtab.o linklist.o
preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm
Undefined                       first referenced
 symbol                             in file
libiconv_close                      /usr/local/lib/libgd.so
libiconv_open                       /usr/local/lib/libgd.so
libiconv                            /usr/local/lib/libgd.so
ld: fatal: Symbol referencing errors. No output written to webalizer
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `webalizer'
dse01:/software/webalizer-2.01-10 root# 
0
Reply Sirius 11/24/2005 7:48:32 AM

Sirius Black  wrote:

> I'm having some problem in installing Webalizer on our Solaris 9
> (sparc)
> libiconv_close                      /usr/local/lib/libgd.so
> libiconv_open                       /usr/local/lib/libgd.so
> libiconv                            /usr/local/lib/libgd.so
> ld: fatal: Symbol referencing errors. No output written to webalizer
> collect2: ld returned 1 exit status
> *** Error code 1

Why does everybody use libiconv?

Well now you will need:
setenv LDFLAGS '-L/usr/local/lib -R/usr/local/lib -liconv'
(or the equivalent syntax in a better shell)
then run "make distclean" (if it accepts to run) and rerun configure.

But the point here is that your libgd was badly linked.
0
Reply Marc 11/24/2005 8:45:58 AM


Thank you for your answer... I'm still need some help

>Why does everybody use libiconv?
because I don't understand half of the command I type... 
they usually do he job...

>Well now you will need:
>setenv LDFLAGS '-L/usr/local/lib -R/usr/local/lib -liconv'

dse01:/software/webalizer-2.01-10 root# setenv LDFLAGS
'-L/usr/local/lib -R /usr/local/lib -liconv'
bash: setenv: command not found

:-(((((

well at least now I understand I little bit more
thanks a lot
0
Reply Sirius 11/24/2005 1:26:45 PM

Sirius Black  wrote:

>>Well now you will need:
>>setenv LDFLAGS '-L/usr/local/lib -R/usr/local/lib -liconv'
> dse01:/software/webalizer-2.01-10 root# setenv LDFLAGS
> '-L/usr/local/lib -R /usr/local/lib -liconv'
> bash: setenv: command not found

Ok, then you are using one of the better shells I was mentionning. Try:

LDFLAGS='-L/usr/local/lib -R/usr/local/lib -liconv'
export LDFLAGS

instead of the setenv line. You can then follow the rest of what I was
saying in my previous post.

It would actually be best if you reinstalled libgd using the same LDFLAGS
technique, or you will need to do this for every new library or program
that uses libgd.
0
Reply Marc 11/24/2005 1:41:33 PM

In <morao15mffem7gkd5apviss386kqc5o0a2@4ax.com> Sirius Black <lucam72@hotmail.com> writes:

>I'm having some problem in installing Webalizer on our Solaris 9
>(sparc)

>I installed all the needed packages using pkgadd but I couldn't find a
>binary fo webalizer higher then solaris 8,

Did the Solaris 8 version not work?  It should have.  Solaris
guarantees upward compatibility.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-
0
Reply Gary 11/24/2005 2:31:49 PM

In <dm3uk6$n1n$1@nef.ens.fr> Marc <marc.glisse@gmail.com> writes:

>Sirius Black  wrote:

>> libiconv_close                      /usr/local/lib/libgd.so
>> libiconv_open                       /usr/local/lib/libgd.so
>> libiconv                            /usr/local/lib/libgd.so
>> ld: fatal: Symbol referencing errors. No output written to webalizer

>Why does everybody use libiconv?

That's why I think that Solaris should include a dummy version
of libiconv.  Otherwise, people will persist in installing a
software package that only duplicates what's already there.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-
0
Reply Gary 11/24/2005 3:28:43 PM

IT WORKS

thank you so very much...

I've been trying for over two weeks looking everywhere in the internet

thank you thank you thank you

Luca
0
Reply Sirius 11/24/2005 4:54:48 PM

6 Replies
46329 Views

(page loaded in 0.405 seconds)

Similiar Articles:













7/23/2012 2:27:44 AM


Reply: