[Clamav-users] RE: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-28 Thread Kaplan, Andrew H.
To the people who helped me in getting ClamAV upgraded on my system, listed
below are the modifications that needed to be done to get version 0.88 to
install

on the server in question. I appreciate the help that was given, and hopefully
this information will be useful to anyone who may be confronted with a similar
case.

 

Files changed in clamav

 

manager.c -- located in the freshclam directory

dns.c  -- located in the freshclam directory -



 

manager.c

Modify the lines that read: 

switch(h_errno) 

To read the following:

switch(errno)

 

NOTE: There are two instances of this line occurring in manager.c

 

dns.c

Locate the section of the file that has the following three lines:

#ifndef PACKETSZ

#define PACKETSZ 512

#endif

 

Add the following lines to the above three:

#ifndef INT16SZ

#define INT16SZ 2

#endif

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-28 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:
[snip]
 manager.c
 
 Modify the lines that read: 
 
 switch(h_errno) 
 
 To read the following:
 
 switch(errno)

It's not the same functionality.  You bypassed the problem but the result will
not work as intended.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkQEt1cACgkQL3NNweKTRgy+PgCg62bZMLtkL8Ir9eJlICRcm/V3
EtIAn21b4wkuChVDMICjBtUJzZGsm3UV
=eB3g
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-10 Thread Kaplan, Andrew H.
Hi there -

 

One of my colleagues, who is a first-rate programmer, was able to compile a
build of version 0.88 on the HP-UX box in question.

He stated in his e-mail that he needed to modify the code in order for it to
work due to some 'issues' with this version an the OS. 

I've asked him to elaborate further on what he had done, and as soon as I get
the information, I will post it, if permitted, via e-mail.

 

I just wanted to take the opportunity to thank everyone for their help, and to
also apologize for this problematic issue. 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread Kaplan, Andrew H.
 OK Andrew, you'll have to repeat the build with:

 

 CFLAGS=-D_XOPEN_SOURCE ./configure

 make

 

I ran the above command using the following syntax:

 

CFLAGS=-D_XOPEN_SOURCE  ./configure

 

As has happened before, the configure script appeared to complete without
difficulty. The make command resulted in

Error exit code 1. The gcc line preceding the error is as follows:

 

gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I../shared -I../libclamav
-I/usr/local/include -D_XOPEN_SOURCE= -c manager.c

 

The h_errno text appeared shortly afterwards in the following manner:

 

manager.c:503: 'h_errno' undeclared (first use in this function)

manager.c:503: (Each undeclared identifier is reported only once

manager.c:503: for each function it appears in.)

 

The Error exit code 1 (three lines total) then appears. 

 

Also, at the suggestion of another mail list member, I tried the following with
the configure script:

 

./configure (YOUR SETTINGS) CFLAGS=-D_XOPEN_SOURCE EXTENDED
-I/usr/tools/gcc3/include LDFLAGS=-L/usr/tools/gcc3/lib

 

The end-result was the configure script failing with the error message:

 

checking for C compiler default output file name--- configure: error: C compiler
cannot create executables. See 'config.log' for more details.

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

OK Andrew, you'll have to repeat the build with:
CFLAGS=-D_XOPEN_SOURCE ./configure

My mistake here, see below.

make
 
 I ran the above command using the following syntax:
 
 CFLAGS=-D_XOPEN_SOURCE  ./configure
[snip]

The configure line should be:

CFLAGS=-D_XOPEN_SOURCE_EXTENDED ./configure

(there is an underscore before EXTENDED).

That should work, but you are not finished, you'll have to check how the shared
libraries are set up in the resulting executables.

But let's do one thing at a time, just configure and make.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPrYmsACgkQL3NNweKTRgyQMwCcCPqwiDX16fxRH0/5XwwqssXc
tEAAoJwHh67gKIPpgp3JLxUFNo1q5HX6
=gs2N
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread Kaplan, Andrew H.
 The configure line should be:

   CFLAGS=-D_XOPEN_SOURCE_EXTENDED ./configure

 (there is an underscore before EXTENDED).

 That should work, but you are not finished, you'll have to check how the
shared
 libraries are set up in the resulting executables.
 
 But let's do one thing at a time, just configure and make.

I entered the command shown above verbatum, but got the following error message:

CFLAGS=-D_XOPEN+SOURCE_EXTENDED: Command not found.

When I reentered the above command using the syntax:

./configure CFLAGS=-D_XOPEN+SOURCE_EXTENDED

the configure script ran without a problem.

The make command continues to give me an Error exit code 1 message. While the
gcc line that precedes the message read as follows:

gcc -D_XOPEN_SOURCE_EXTENDED -o clamscan output.o geptopt.o memory.o
cfgparser.o misc.o clamscan.o options.o others.o manager.o treewalk.o
-L/usr/local/lib ../libclamav/.libs/libclamav.a.a -lz -lbz2
/usr/local/lib/libgmp.sl -Wl,+b -Wl,/usr/local/lib

This was followed by the lines:

/usr/ccs/bin/ld: Unsatisfied symbols:
ntohl (code)
collect2: ld returned 1 exit status

Followed by the Error exit code 1 lines. 


___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:
[snip]
   CFLAGS=-D_XOPEN+SOURCE_EXTENDED: Command not found.

My mistake, I'm using sh/bash syntax while you are using csh.

 When I reentered the above command using the syntax:
 
   ./configure CFLAGS=-D_XOPEN+SOURCE_EXTENDED
 
 the configure script ran without a problem.
 
 The make command continues to give me an Error exit code 1 message. While the
 gcc line that precedes the message read as follows:
   
   gcc -D_XOPEN_SOURCE_EXTENDED -o clamscan output.o geptopt.o memory.o
 cfgparser.o misc.o clamscan.o options.o others.o manager.o treewalk.o
   -L/usr/local/lib ../libclamav/.libs/libclamav.a.a -lz -lbz2
 /usr/local/lib/libgmp.sl -Wl,+b -Wl,/usr/local/lib
   /usr/ccs/bin/ld: Unsatisfied symbols:
   ntohl (code)
   collect2: ld returned 1 exit status

OK, this is normal, we are missing some libraries in the link command.  Easy to
correct:

./configure CFLAGS=-D_XOPEN+SOURCE_EXTENDED LDFLAGS=-lsocket -lnls

Let's see what jumps next ;-)
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPrdyMACgkQL3NNweKTRgyErQCgg51kVWN8QJEDRYo7LltY8qTG
KlcAn14qve9Rk48VpmgPf6siJUjE6w5s
=7dWD
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread Kaplan, Andrew H.
 OK, this is normal, we are missing some libraries in the link command.  Easy
to

 correct:

 

 ./configure CFLAGS=-D_XOPEN+SOURCE_EXTENDED LDFLAGS=-lsocket -lnls

 

When I ran the above command, the configure script failed and displayed the
following message:

 

checking for C compiler default output file name... configure: error: C compiler
cannot create executables

See 'config.log' for more details. Enclosed in this e-mail is the config.log
file. 

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure CFLAGS=-D_XOPEN_SOURCE_EXTENDED LDFLAGS=-lsocket -lnls

## - ##
## Platform. ##
## - ##

hostname = hadron.mgh.harvard.edu
uname -m = 9000/777
uname -r = B.10.20
uname -s = HP-UX
uname -v = A

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/tools/gcc3/bin
PATH: /usr/bin
PATH: /usr/ccs/bin
PATH: /usr/contrib/bin
PATH: /opt/nettladm/bin
PATH: /opt/pd/bin
PATH: /usr/bin/X11
PATH: /usr/contrib/bin/X11
PATH: /opt/upgrade/bin
PATH: /opt/vnc
PATH: /opt/ignite/bin
PATH: /opt/cfg2html


## --- ##
## Core tests. ##
## --- ##

configure:1531: checking build system type
configure:1549: result: hppa1.1-hp-hpux10.20
configure:1557: checking host system type
configure:1571: result: hppa1.1-hp-hpux10.20
configure:1579: checking target system type
configure:1593: result: hppa1.1-hp-hpux10.20
configure:1664: result: creating target.h - canonical system defines
configure:1808: checking for a BSD-compatible install
configure:1863: result: ./install-sh -c
configure:1874: checking whether build environment is sane
configure:1917: result: yes
configure:1982: checking for gawk
configure:2011: result: no
configure:1982: checking for mawk
configure:2011: result: no
configure:1982: checking for nawk
configure:2011: result: no
configure:1982: checking for awk
configure:1998: found /usr/bin/awk
configure:2008: result: awk
configure:2018: checking whether make sets $(MAKE)
configure:2038: result: yes
configure:2219: checking for gawk
configure:2245: result: awk
configure:2301: checking for gcc
configure:2317: found /usr/tools/gcc3/bin/gcc
configure:2327: result: gcc
configure:2571: checking for C compiler version
configure:2574: gcc --version /dev/null 5
gcc (GCC) 3.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2577: $? = 0
configure:2579: gcc -v /dev/null 5
Reading specs from /usr/tools/gcc3/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.1/specs
Configured with: ../configure --prefix=/usr/tools/gcc3 
--with-as=/usr/tools/gnu/bin/as
Thread model: single
gcc version 3.1
configure:2582: $? = 0
configure:2584: gcc -V /dev/null 5
gcc: argument to `-V' is missing
configure:2587: $? = 1
configure:2610: checking for C compiler default output file name
configure:2613: gcc -D_XOPEN_SOURCE_EXTENDED  -lsocket -lnls conftest.c  5
/usr/ccs/bin/ld: Can't find library for -lsocket
collect2: ld returned 1 exit status
configure:2616: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| #define PACKAGE clamav
| #define VERSION 0.88
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2654: error: C compiler cannot create executables
See `config.log' for more details.

##  ##
## Cache variables. ##
##  ##

ac_cv_build=hppa1.1-hp-hpux10.20
ac_cv_build_alias=hppa1.1-hp-hpux10.20
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-D_XOPEN_SOURCE_EXTENDED
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-lsocket -lnls'
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=hppa1.1-hp-hpux10.20
ac_cv_host_alias=hppa1.1-hp-hpux10.20
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=hppa1.1-hp-hpux10.20
ac_cv_target_alias=hppa1.1-hp-hpux10.20

## - ##
## Output variables. ##
## - ##

ACLOCAL='${SHELL} /home/kaplan/clamav-0.88/missing --run aclocal-1.9'
ADDITIONAL_LIBS=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/kaplan/clamav-0.88/missing --run tar'
AUTOCONF='${SHELL} 

[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

./configure CFLAGS=-D_XOPEN+SOURCE_EXTENDED LDFLAGS=-lsocket -lnls
- --^
Oops!  The error here is obvious, did I put that? yes, dumb copy/paste.  Sorry.

Correction:

./configure CFLAGS=-D_XOPEN_SOURCE_EXTENDED LDFLAGS=-lsocket -lnls
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPriLYACgkQL3NNweKTRgwKogCcCnuXh0jwQcIRFhRDysCdfZUC
U8sAni0X6uyEGVU2TU3jVR3Y5cL2Oq9d
=28L9
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

René Berber wrote:

 Kaplan, Andrew H. wrote:
 
 
   ./configure CFLAGS=-D_XOPEN+SOURCE_EXTENDED LDFLAGS=-lsocket -lnls
 
 --^
 Oops!  The error here is obvious, did I put that? yes, dumb copy/paste.  
 Sorry.
 
 Correction:
 
   ./configure CFLAGS=-D_XOPEN_SOURCE_EXTENDED LDFLAGS=-lsocket -lnls

More problems, libsocket does not exist, so it's:

./configure CFLAGS=-D_XOPEN_SOURCE_EXTENDED LDFLAGS=-lnls

And let's see if this time I got it right.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPrifsACgkQL3NNweKTRgz/xQCfQXlp/3Mfez8FTAZ0CdOQ2Zgl
rLUAoPZOVo87DSYaVlOQFGJiV+E8NM9q
=MSxu
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

 I saw the typo and automatically corrected it when I entered the command. The
 problems that I mentioned
 
 in the previous e-mail were output from the correct syntax.

Yes, I saw that in the log.

Anyway the LDFLAGS need a correction, just delete the -lsocket part, the log
shows that the socket library doesn't exist.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPrkW0ACgkQL3NNweKTRgwL3ACgualGOCUFIw5NSQREjOK7ji9L
fMAAn3EjxRse2frX3d934B8mg0l2BFmM
=3gpe
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread Kaplan, Andrew H.
 Anyway the LDFLAGS need a correction, just delete the -lsocket part, the log
shows that the socket library doesn't exist.

 

I entered the configure command without -lsocket part, and the script failed
with the same error mentioned in the previous e-mail.

Here is the latest version of the config.log file. 

 

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure CFLAGS=-D_XOPEN_SOURCE_EXTENDED LDFLAGS=-lnls

## - ##
## Platform. ##
## - ##

hostname = hadron.mgh.harvard.edu
uname -m = 9000/777
uname -r = B.10.20
uname -s = HP-UX
uname -v = A

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/tools/gcc3/bin
PATH: /usr/bin
PATH: /usr/ccs/bin
PATH: /usr/contrib/bin
PATH: /opt/nettladm/bin
PATH: /opt/pd/bin
PATH: /usr/bin/X11
PATH: /usr/contrib/bin/X11
PATH: /opt/upgrade/bin
PATH: /opt/vnc
PATH: /opt/ignite/bin
PATH: /opt/cfg2html


## --- ##
## Core tests. ##
## --- ##

configure:1531: checking build system type
configure:1549: result: hppa1.1-hp-hpux10.20
configure:1557: checking host system type
configure:1571: result: hppa1.1-hp-hpux10.20
configure:1579: checking target system type
configure:1593: result: hppa1.1-hp-hpux10.20
configure:1664: result: creating target.h - canonical system defines
configure:1808: checking for a BSD-compatible install
configure:1863: result: ./install-sh -c
configure:1874: checking whether build environment is sane
configure:1917: result: yes
configure:1982: checking for gawk
configure:2011: result: no
configure:1982: checking for mawk
configure:2011: result: no
configure:1982: checking for nawk
configure:2011: result: no
configure:1982: checking for awk
configure:1998: found /usr/bin/awk
configure:2008: result: awk
configure:2018: checking whether make sets $(MAKE)
configure:2038: result: yes
configure:2219: checking for gawk
configure:2245: result: awk
configure:2301: checking for gcc
configure:2317: found /usr/tools/gcc3/bin/gcc
configure:2327: result: gcc
configure:2571: checking for C compiler version
configure:2574: gcc --version /dev/null 5
gcc (GCC) 3.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2577: $? = 0
configure:2579: gcc -v /dev/null 5
Reading specs from /usr/tools/gcc3/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.1/specs
Configured with: ../configure --prefix=/usr/tools/gcc3 
--with-as=/usr/tools/gnu/bin/as
Thread model: single
gcc version 3.1
configure:2582: $? = 0
configure:2584: gcc -V /dev/null 5
gcc: argument to `-V' is missing
configure:2587: $? = 1
configure:2610: checking for C compiler default output file name
configure:2613: gcc -D_XOPEN_SOURCE_EXTENDED  -lnls conftest.c  5
/usr/ccs/bin/ld: Can't find library for -lnls
collect2: ld returned 1 exit status
configure:2616: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| #define PACKAGE clamav
| #define VERSION 0.88
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2654: error: C compiler cannot create executables
See `config.log' for more details.

##  ##
## Cache variables. ##
##  ##

ac_cv_build=hppa1.1-hp-hpux10.20
ac_cv_build_alias=hppa1.1-hp-hpux10.20
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-D_XOPEN_SOURCE_EXTENDED
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-lnls
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=hppa1.1-hp-hpux10.20
ac_cv_host_alias=hppa1.1-hp-hpux10.20
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=hppa1.1-hp-hpux10.20
ac_cv_target_alias=hppa1.1-hp-hpux10.20

## - ##
## Output variables. ##
## - ##

ACLOCAL='${SHELL} /home/kaplan/clamav-0.88/missing --run aclocal-1.9'
ADDITIONAL_LIBS=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/kaplan/clamav-0.88/missing --run tar'
AUTOCONF='${SHELL} /home/kaplan/clamav-0.88/missing --run autoconf'
AUTOHEADER='${SHELL} /home/kaplan/clamav-0.88/missing --run autoheader'
AUTOMAKE='${SHELL} /home/kaplan/clamav-0.88/missing --run 

[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

Anyway the LDFLAGS need a correction, just delete the -lsocket part, the log
 shows that the socket library doesn't exist.  
 
 I entered the configure command without -lsocket part, and the script failed
 with the same error mentioned in the previous e-mail.
 
 Here is the latest version of the config.log file. 
[snip]
 /usr/ccs/bin/ld: Can't find library for -lnls

OK, it gets a bit complicated; well not really.

We need to find in what library is the function ntohl.  Perhaps just doing a
man ntohl will tell, usually in the first page of the manual an example of how
to compile is shown (under SYNOPSIS), the part we need is the -l... parameter
which should be set in LDFLAGS.

I was using the Solaris way of doing this.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPrmJoACgkQL3NNweKTRgxRywCgkvdRAaCsKwHhKXN0Cptt7nO5
PYQAoIz1YEsJqisdy4BNxlLdqAH/t4Nh
=7X5C
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread Kaplan, Andrew H.
Here is an excerpt from the ntohl man page:

 

SYNOPSIS:

#include netinet/in.h

 

_XOPEN_SOURCE_EXTENDED only

#include arpa/inet.h

 

unsigned long htonl (unsigned long hostlong);

unsigned short htons (unsigned short hostshort);

unsigned long ntohl (unsigned long netlong);

unsigned short ntohs (unsigned short netshort);

...

SEE ALSO

gethostent (3N), getservent (3N).

 

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

 Here is an excerpt from the ntohl man page:
 
 SYNOPSIS:
 #include netinet/in.h
 
 _XOPEN_SOURCE_EXTENDED only
 
 #include arpa/inet.h
 
 unsigned long htonl (unsigned long hostlong);
 unsigned short htons (unsigned short hostshort);
 unsigned long ntohl (unsigned long netlong);
 unsigned short ntohs (unsigned short netshort);
 ...

Compare that to Solaris:

Sockets Library Functions  byteorder(3SOCKET)

NAME
 byteorder, htonl,  htons,  ntohl,  ntohs  -  convert  values
 between host and network byte order

SYNOPSIS
 cc [ flag... ] file... -lsocket -lnsl [ library... ]
...

Well, that didn't help.

Let's take a look at /usr/include/netinet/in.h, in there you should find a
define for ntohl, something like:

#ifdef _XOPEN_SOURCE_EXTENDED
/*
* Macros for number representation conversion.
*
* netinet/in.h is another location for these macros
*/
#ifndef ntohl
#define ntohl(x) (x)
#define ntohs(x) (x)
#define htonl(x) (x)
#define htons(x) (x)
#endif
#endif /* _XOPEN_SOURCE_EXTENDED */

If it were like this we would not have a problem, so let's see how is defined.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPrn/0ACgkQL3NNweKTRgwCvwCfSfbDkHqkNSAR2DJdq5Mez7OT
wA8AniltQB8BfLNZzHDNdCaevJyJEKyy
=ls3U
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-09 Thread Jeff Donsbach
On 2/9/06, Kaplan, Andrew H. [EMAIL PROTECTED] wrote:
 Here is an excerpt from the ntohl man page:



 SYNOPSIS:

 #include netinet/in.h



 _XOPEN_SOURCE_EXTENDED only

 #include arpa/inet.h



Since we're building with -D_XOPEN_SOURCE_EXTENDED now (specified in
CFLAGS), message.c will now also need to #include arpa/inet.h .
You'll have to modify the source file.

This is turning into a slippery slope really quickly. Let's back up
once again. Can you somehow send the text for the gethostname man
page from your system?

Jeff D
___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Kaplan, Andrew H.
 There are 3 tests inside configure that use netdb.h and h_errno, they seem to
be testing to see what variant of gethostbyname_r does the system  have.  You
should have the result in config.log, look for lines that say checking for
gethostbyname_r and everything below that should be 

 interesting, but we are really looking for something like result: yes, and it
takes 5 arguments about 9 lines below.

 

 What we are trying to do is see what is causing the build failure.  In theory
configure should have catched any problem.

 

I checked the config.log file for the text you had mentioned: and the line reads
configure:13334: result: yes, and it takes 5 arguments

Do you need me to send you a copy of the log file?

 

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:
[snip]
 I checked the config.log file for the text you had mentioned: and the line 
 reads
 configure:13334: result: yes, and it takes 5 arguments
 
 Do you need me to send you a copy of the log file?

No, not really.

OK, that means that configure is able to use h_errno and related stuff, which is
good news.

Now look in the log about 8 lines above (and just below the checking for
gethostbyname_r), how was the test compiled?

I have gcc -c -g -O2  conftest.c 5, does your log show more parameters to 
gcc?

BTW try to use the installed gcc (2.95.2), if you use the newer one you'll have
to install it later so that libgcc is somewhere permanent.  Perhaps starting
with no environment variables set will help.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqBIkACgkQL3NNweKTRgzv8ACgx80q4kfjA8DZUYZvv2loqXWx
mz0An1qV5ovm0l9j9ygrYUA1+PyVLTfY
=8Q80
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Kaplan, Andrew H.
 OK, that means that configure is able to use h_errno and related stuff, which
is good news.

 

 Now look in the log about 8 lines above (and just below the checking for
gethostbyname_r), how was the test compiled?

 

 I have gcc -c -g -O2  conftest.c 5, does your log show more parameters to
gcc?

 

The line in question reads as follows:configure:13162: gcc -c -g 02
-I/usr/local/include conftest.c 5

The following text appears immediately after:   cc1: warning: changing search
order for system directory /usr/local/include

cc1: warning: as it has already
been specified as a non-system directory

 

 BTW try to use the installed gcc (2.95.2), if you use the newer one you'll
have to install it later so that libgcc is somewhere permanent.  

 Perhaps starting with no environment variables set will help.

 

I contacted the administrator, who has since left the company, of this system,
and asked him about the locally installed gcc (2.95.2). Here is an excerpt from
the e-mail he sent in reply:

 

The Makefile looks ok.  I think the problem is the gcc version.  You will have
to mount /usr/tools and use the gcc installed on that to compile ClamAV.  The
one under /usr/contrib is no good.

 

 

 

 

 

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:
[snip]
 The line in question reads as follows:configure:13162: gcc -c -g 02
 -I/usr/local/include conftest.c 5
 
 The following text appears immediately after:   cc1: warning: changing search
 order for system directory /usr/local/include
 cc1: warning: as it has 
 already
 been specified as a non-system directory

The warnings mean that /usr/local/include is searched before /usr/include and
any other system directory.

BTW try to use the installed gcc (2.95.2), if you use the newer one you'll
 have to install it later so that libgcc is somewhere permanent.  
Perhaps starting with no environment variables set will help.
 
 I contacted the administrator, who has since left the company, of this system,
 and asked him about the locally installed gcc (2.95.2). Here is an excerpt 
 from
 the e-mail he sent in reply:
 
 The Makefile looks ok.  I think the problem is the gcc version.  You will have
 to mount /usr/tools and use the gcc installed on that to compile ClamAV.  The
 one under /usr/contrib is no good.

Strange, if the above log was produced with gcc 2.95.2 it means that it works
fine, at least the compile part, we don't know about the link part yet.

Anyway it could be made to work with either, your choice.

I suggest to start with a minimal set of well defined environment variables
(PATH, CC, CFLAGS, LDFLAGS, nothing else), run configure, see any complaints
there, add the required parameters to configure (the defaults install everything
under /usr/local, I use --sysconfdir=/etc --enable-id-check --without-libcurl
- --with-dbdir=/usr/local/share/clamav) and run make.

- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqFg4ACgkQL3NNweKTRgyowQCgjTP33JJ//BCTVD82kGk9pj8L
iJ4AoM1QERe3D6Y4CS8yNrJ8u5ft3B8r
=Cqhl
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Kaplan, Andrew H.
 I suggest to start with a minimal set of well defined environment variables
(PATH, CC, CFLAGS, LDFLAGS, nothing else), run configure, see any 

 complaints there, add the required parameters to configure (the defaults
install everything under /usr/local, 

 I use --sysconfdir=/etc --enable-id- check --without-libcurl
--with-dbdir=/usr/local/share/clamav) and run make.

 

I defined the environment variables to use by entering the following at the
command prompt:

  setenv CFLAGS -I/usr/tools/gcc3/include

  setenv LDFLAGS -L/usr/tools/gcc3/lib

  setenv CPPFLAGS -L/usr/tools/gcc3/include

 

I then went ran the configure script. I checked for the result: yes, and it
takes 5 arguments line, and it was there. The other important line,

gcc -c -I/usr/tools/gcc3/include -L/usr/tools/gcc3/include -I/usr/local/include
conftest.c 5 was also there. 

 

Unfortunately, the same error messages appeared. 

 

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

[snip]
 I defined the environment variables to use by entering the following at the
 command prompt:
 
   setenv CFLAGS -I/usr/tools/gcc3/include
   setenv LDFLAGS -L/usr/tools/gcc3/lib
   setenv CPPFLAGS -L/usr/tools/gcc3/include

This last one is wrong, cpp is the pre-processor it doesn't have anything to do
with libraries so -L is a no-op.

 I then went ran the configure script. I checked for the result: yes, and it
 takes 5 arguments line, and it was there. The other important line,
 
 gcc -c -I/usr/tools/gcc3/include -L/usr/tools/gcc3/include 
 -I/usr/local/include
 conftest.c 5 was also there. 
 
 Unfortunately, the same error messages appeared. 

This was a ./configure followed by make?

What's the exact gcc line before the error message? it's important that it looks
like the one in conf.log, same order of -I's.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqJ1IACgkQL3NNweKTRgx/qACg65DydDdFhPX4Baka+8N0AGVB
WXMAoOLWU+d+u/CX50nlFwYDJqORTuD1
=ctPJ
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Jeff Donsbach
Andrew,

Let's step back for a minute once again. On your 10.20, system, go and
look at /usr/include/netdb.h . Find the section where it defines
h_errno which is a macro that will be defined to either a function
call or an external variable depending on if the macro _REENTRANT is
defined at compile time. (On 11.11, it is right at the end of the
file).

What do the definitions for h_errno look like on 10.20?

Jeff D
___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Kaplan, Andrew H.
 Let's step back for a minute once again. On your 10.20, system, go and look at
/usr/include/netdb.h . Find the section where it defines h_errno 

 which is a macro that will be defined to either a function call or an external
variable depending on if the macro _REENTRANT is defined at compile 

 time. (On 11.11, it is right at the end of the file).

 

 What do the definitions for h_errno look like on 10.20?

 

 

The following text in the netdb.h file is what references h_errno:

 

/*

* Error return codes from gethostbyname() and gethostbyaddr()

* (left in extern int h_errno).

 

#ifdef  _XOPEN_SOURCE EXTENDED

extern int h_errno;

#endif

 

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Kaplan, Andrew H.
 setenv CFLAGS -I/usr/tools/gcc3/include

 setenv LDFLAGS -L/usr/tools/gcc3/lib

 setenv CPPFLAGS -L/usr/tools/gcc3/include

 This last one is wrong, cpp is the pre-processor it doesn't have anything to
do with libraries so -L is a no-op.

 

I can try running the configure and make script again using only the first two
setenv options and see if that makes a difference.

 

 This was a ./configure followed by make?

 

That is correct. The configure script is run, and then is immediately followed
by the make script. There are no other configuration

settings made in the interim.

 

 What's the exact gcc line before the error message? it's important that it
looks like the one in conf.log, same order of -I's.

 

The gcc line before the error message is the following:

  gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I.. -I../shared
-I../libclamav   -L/usr/tools/gcc3/include -I/usr/local/include 

-I/usr/tools/gcc3/include -c manager.c

 

 

 

 

 

 

 

 

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Jeff Donsbach
On 2/8/06, Kaplan, Andrew H. [EMAIL PROTECTED] wrote:

 The following text in the netdb.h file is what references h_errno:

 /*

 * Error return codes from gethostbyname() and gethostbyaddr()

 * (left in extern int h_errno).



 #ifdef  _XOPEN_SOURCE EXTENDED

 extern int h_errno;

 #endif


Try adding -D_XOPEN_SOURCE EXTENDED to your CFLAGS.

Jeff D
___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Kaplan, Andrew H.
 Try adding -D_XOPEN_SOURCE EXTENDED to your CFLAGS.

 

I entered the setenv command three times using the following syntax:

 

  setenv CFLAGS -I/usr/tools/gcc3/include

  setenv LDFLAGS -L/usr/tools/gcc3/lib

  setenv CFLAGS -D_XOPEN_SOURCE EXTENDED

 

After that, I ran the configure script, and it returned with the error message
shown below:

 

  error: C compiler cannot create executables

See `config.log' for more details.

 

I've included the log file in this e-mail.  

 

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure 

## - ##
## Platform. ##
## - ##

hostname = hadron.mgh.harvard.edu
uname -m = 9000/777
uname -r = B.10.20
uname -s = HP-UX
uname -v = A

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/tools/gcc3/bin
PATH: /usr/bin
PATH: /usr/ccs/bin
PATH: /usr/contrib/bin
PATH: /opt/nettladm/bin
PATH: /opt/pd/bin
PATH: /usr/bin/X11
PATH: /usr/contrib/bin/X11
PATH: /opt/upgrade/bin
PATH: /opt/vnc
PATH: /opt/ignite/bin
PATH: /opt/cfg2html


## --- ##
## Core tests. ##
## --- ##

configure:1531: checking build system type
configure:1549: result: hppa1.1-hp-hpux10.20
configure:1557: checking host system type
configure:1571: result: hppa1.1-hp-hpux10.20
configure:1579: checking target system type
configure:1593: result: hppa1.1-hp-hpux10.20
configure:1664: result: creating target.h - canonical system defines
configure:1808: checking for a BSD-compatible install
configure:1863: result: ./install-sh -c
configure:1874: checking whether build environment is sane
configure:1917: result: yes
configure:1982: checking for gawk
configure:2011: result: no
configure:1982: checking for mawk
configure:2011: result: no
configure:1982: checking for nawk
configure:2011: result: no
configure:1982: checking for awk
configure:1998: found /usr/bin/awk
configure:2008: result: awk
configure:2018: checking whether make sets $(MAKE)
configure:2038: result: yes
configure:2219: checking for gawk
configure:2245: result: awk
configure:2301: checking for gcc
configure:2317: found /usr/tools/gcc3/bin/gcc
configure:2327: result: gcc
configure:2571: checking for C compiler version
configure:2574: gcc --version /dev/null 5
gcc (GCC) 3.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2577: $? = 0
configure:2579: gcc -v /dev/null 5
Reading specs from /usr/tools/gcc3/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.1/specs
Configured with: ../configure --prefix=/usr/tools/gcc3 
--with-as=/usr/tools/gnu/bin/as
Thread model: single
gcc version 3.1
configure:2582: $? = 0
configure:2584: gcc -V /dev/null 5
gcc: argument to `-V' is missing
configure:2587: $? = 1
configure:2610: checking for C compiler default output file name
configure:2613: gcc -D_XOPEN_SOURCE EXTENDED  -L/usr/tools/gcc3/lib conftest.c  
5
gcc: EXTENDED: No such file or directory
configure:2616: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| #define PACKAGE clamav
| #define VERSION 0.88
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2654: error: C compiler cannot create executables
See `config.log' for more details.

##  ##
## Cache variables. ##
##  ##

ac_cv_build=hppa1.1-hp-hpux10.20
ac_cv_build_alias=hppa1.1-hp-hpux10.20
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-D_XOPEN_SOURCE EXTENDED'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L/usr/tools/gcc3/lib
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=hppa1.1-hp-hpux10.20
ac_cv_host_alias=hppa1.1-hp-hpux10.20
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=hppa1.1-hp-hpux10.20
ac_cv_target_alias=hppa1.1-hp-hpux10.20

## - ##
## Output variables. ##
## - ##

ACLOCAL='${SHELL} /home/kaplan/clamav-0.88/missing --run aclocal-1.9'
ADDITIONAL_LIBS=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/kaplan/clamav-0.88/missing --run tar'
AUTOCONF='${SHELL} /home/kaplan/clamav-0.88/missing --run 

[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:
[snip]
 The gcc line before the error message is the following:
 
   gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I.. -I../shared
 -I../libclamav   -L/usr/tools/gcc3/include -I/usr/local/include 
 -I/usr/tools/gcc3/include -c manager.c

And that is different from the:

 The line in question reads as follows:configure:13162: gcc -c -g 02
 -I/usr/local/include conftest.c 5

shown earlier and strange, what is LDFLAGS doing in a compilation only command?

Try unsetting all variables except PATH (i.e. no CLFAGS, no LDFLAGS), does
configure work as before? does make work?
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqSe0ACgkQL3NNweKTRgyGWACfY9k2IP9ZaPPYfJuguSV2Te8K
JD4AoJ2HGRneWBjy4hjmySEb/8FkkCCY
=U28N
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Kaplan, Andrew H.
 Try unsetting all variables except PATH (i.e. no CLFAGS, no LDFLAGS), does
configure work as before? does make work?

 

Which PATH statement(s) are you referring to?

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

Try unsetting all variables except PATH (i.e. no CLFAGS, no LDFLAGS), does
 configure work as before? does make work?

 Which PATH statement(s) are you referring to?

The one called PATH (as in `echo $PATH` for bash).  The one you must be using
for configure to find gcc, or do you have CC defined?

- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqW0oACgkQL3NNweKTRgxmggCgzgLOTCB8jgXGP4EupnUrLnNk
gqAAniQmH4t6jX+y5A230G23k3VDTCxj
=h1QR
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Kaplan, Andrew H.
 Try unsetting all variables except PATH (i.e. no CLFAGS, no LDFLAGS), does
configure work as before? does make work?

 

I ran the unsetenv command on the CFLAGS and LDFLAGS variables. After that, I
ran configure and make. Configure worked as before,

but make still gives an Error 1 message.

 

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Dale Walsh


On Feb 8, 2006, at 14:42 , Kaplan, Andrew H. wrote:


Try adding -D_XOPEN_SOURCE EXTENDED to your CFLAGS.




I entered the setenv command three times using the following syntax:



  setenv CFLAGS -I/usr/tools/gcc3/include

  setenv LDFLAGS -L/usr/tools/gcc3/lib

  setenv CFLAGS -D_XOPEN_SOURCE EXTENDED


LOL

./configure (YOUR SETTINGS) \
 CFLAGS=-D_XOPEN_SOURCE EXTENDED -I/usr/tools/gcc3/include \
 LDFLAGS=-L/usr/tools/gcc3/lib




After that, I ran the configure script, and it returned with the  
error message

shown below:



  error: C compiler cannot create executables

See `config.log' for more details.



I've included the log file in this e-mail.



This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure 

## - ##
## Platform. ##
## - ##

hostname = hadron.mgh.harvard.edu
uname -m = 9000/777
uname -r = B.10.20
uname -s = HP-UX
uname -v = A

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/tools/gcc3/bin
PATH: /usr/bin
PATH: /usr/ccs/bin
PATH: /usr/contrib/bin
PATH: /opt/nettladm/bin
PATH: /opt/pd/bin
PATH: /usr/bin/X11
PATH: /usr/contrib/bin/X11
PATH: /opt/upgrade/bin
PATH: /opt/vnc
PATH: /opt/ignite/bin
PATH: /opt/cfg2html


## --- ##
## Core tests. ##
## --- ##

configure:1531: checking build system type
configure:1549: result: hppa1.1-hp-hpux10.20
configure:1557: checking host system type
configure:1571: result: hppa1.1-hp-hpux10.20
configure:1579: checking target system type
configure:1593: result: hppa1.1-hp-hpux10.20
configure:1664: result: creating target.h - canonical system defines
configure:1808: checking for a BSD-compatible install
configure:1863: result: ./install-sh -c
configure:1874: checking whether build environment is sane
configure:1917: result: yes
configure:1982: checking for gawk
configure:2011: result: no
configure:1982: checking for mawk
configure:2011: result: no
configure:1982: checking for nawk
configure:2011: result: no
configure:1982: checking for awk
configure:1998: found /usr/bin/awk
configure:2008: result: awk
configure:2018: checking whether make sets $(MAKE)
configure:2038: result: yes
configure:2219: checking for gawk
configure:2245: result: awk
configure:2301: checking for gcc
configure:2317: found /usr/tools/gcc3/bin/gcc
configure:2327: result: gcc
configure:2571: checking for C compiler version
configure:2574: gcc --version /dev/null 5
gcc (GCC) 3.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2577: $? = 0
configure:2579: gcc -v /dev/null 5
Reading specs from /usr/tools/gcc3/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.1/specs
Configured with: ../configure --prefix=/usr/tools/gcc3 
--with-as=/usr/tools/gnu/bin/as
Thread model: single
gcc version 3.1
configure:2582: $? = 0
configure:2584: gcc -V /dev/null 5
gcc: argument to `-V' is missing
configure:2587: $? = 1
configure:2610: checking for C compiler default output file name
configure:2613: gcc -D_XOPEN_SOURCE EXTENDED  -L/usr/tools/gcc3/lib conftest.c  
5
gcc: EXTENDED: No such file or directory
configure:2616: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| #define PACKAGE clamav
| #define VERSION 0.88
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2654: error: C compiler cannot create executables
See `config.log' for more details.

##  ##
## Cache variables. ##
##  ##

ac_cv_build=hppa1.1-hp-hpux10.20
ac_cv_build_alias=hppa1.1-hp-hpux10.20
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-D_XOPEN_SOURCE EXTENDED'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L/usr/tools/gcc3/lib
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=hppa1.1-hp-hpux10.20
ac_cv_host_alias=hppa1.1-hp-hpux10.20
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=hppa1.1-hp-hpux10.20
ac_cv_target_alias=hppa1.1-hp-hpux10.20

## - ##
## Output variables. ##
## - ##

ACLOCAL='${SHELL} /home/kaplan/clamav-0.88/missing --run aclocal-1.9'

[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

 I ran the unsetenv command on the CFLAGS and LDFLAGS variables. After that, I
 ran configure and make. Configure worked as before,
 
 but make still gives an Error 1 message.

You keep sending just bits and pieces of the puzzle.

Is it the same error message?

Is it the same gcc compile command?

And on the other messages, people are not pointing out that -D_XOPEN_SOURCE
EXTENDED is invalid syntax just as the #define _XOPEN_SOURCE EXTENDED that
prompted that course of action.  You can use -D_XOPEN_SOURCE but if configure
didn't need that I don't see the point.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqfxMACgkQL3NNweKTRgzQIwCePYlGD2RVCgu84pI6K4g8DG+5
yWYAnij9lAxQ8Knir1I+iLNuhkcr1yeu
=+28Q
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Jeff Donsbach
On 2/8/06, René Berber [EMAIL PROTECTED] wrote:
  You can use -D_XOPEN_SOURCE but if configure
  didn't need that I don't see the point.

That assumes configure is working correctly with regards to this on
hp-ux 10.20. I wouldn't necessarily make that assumption. I see checks
in configure for gethostbyname variants, but nothing looking for
h_error support explicitly.

Jeff D
___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeff Donsbach wrote:

 You can use -D_XOPEN_SOURCE but if configure
 didn't need that I don't see the point.
 
 That assumes configure is working correctly with regards to this on
 hp-ux 10.20. I wouldn't necessarily make that assumption. I see checks
 in configure for gethostbyname variants, but nothing looking for
 h_error support explicitly.

I read the log and configure, the check is like this:

#include sys/types.h
#include netdb.h

int
main ()
{

struct hostent *hp;
struct hostent h;
char *name;
char buffer[10];
int  h_errno;
hp = gethostbyname_r(name, h, buffer, 10, h_errno);

  ;
  return 0;
}

I would say that is very explicit use of h_errno.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqimwACgkQL3NNweKTRgyKXACfR8/SELBOaWpWIhJoXU+Ok+FV
iHQAoNAzL6iaS5dMSQ/d5i0LmUIeTqHs
=t13t
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeff Donsbach wrote:

 Yes, but not the same as how ClamAV uses it. In this case, h_error is
 a local variable, so of course the symbol resolves correctly. In real
 code such as ClamAV, h_error is defined in system header files as an
 external variable or a function.
 
 That test is perfectly ok for testing how many arguments
 gethostbyname_r() takes, however.

Yes, I see you are correct.  freshclam/manager.c depends on the external value,
which is not being defined in HP-UX unless, following your sugestion
CFLAGS='-D_XOPEN_SOURCE' is used.

OK Andrew, you'll have to repeat the build with:

CFLAGS=-D_XOPEN_SOURCE ./configure
make

- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqj7QACgkQL3NNweKTRgwY9QCdEIPd9k6bdQSaD3IoBjlQ97PY
BrEAn292QfrfXVbSOC0gqE3YXtgf8rsf
=9KaT
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread Jeff Donsbach
On 2/8/06, René Berber [EMAIL PROTECTED] wrote:

 Yes, I see you are correct.  freshclam/manager.c depends on the external 
 value,
 which is not being defined in HP-UX unless, following your sugestion
 CFLAGS='-D_XOPEN_SOURCE' is used.

 OK Andrew, you'll have to repeat the build with:

 CFLAGS=-D_XOPEN_SOURCE ./configure
 make


I believe the value should be -D_XOPEN_SOURCE_EXTENDED, which was
the standard way to invoke UNIX95 namespace compatibility/compliance.
Note here that we are talking about an OS version released in 1996.

Note that on current versions of HP-UX (11i v1  v2, aka 11.11 and
11.23), that -D flag is not necessary to add to CFLAGS. I don't know
about 11.0; I haven't found a system to look at yet.

Jeff D
___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-08 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeff Donsbach wrote:

CFLAGS=-D_XOPEN_SOURCE ./configure
make

 
 
 I believe the value should be -D_XOPEN_SOURCE_EXTENDED, which was
 the standard way to invoke UNIX95 namespace compatibility/compliance.
 Note here that we are talking about an OS version released in 1996.

Right again.  The macro looked wrong but I didn't saw what the mistake was.

 Note that on current versions of HP-UX (11i v1  v2, aka 11.11 and
 11.23), that -D flag is not necessary to add to CFLAGS. I don't know
 about 11.0; I haven't found a system to look at yet.

So its:

CFLAGS=-D_XOPEN_SOURCE_EXTENDED ./configure
make

that way configure will record the flags used to the makefiles.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPqtpMACgkQL3NNweKTRgzK/gCg0eTFz7YGj1WQMTJP8q0ASxwk
yWsAnjhEdGUluSXJ1to3AWV4edxk927a
=rZiW
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] RE: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread Kaplan, Andrew H.
Hi there --

 

I mounted an NFS directory that has a newer version of gcc/ I then mounted tthe
following lines to my .cshrc file:

 

 setenv GCC_PATH /usr/tools/gcc3

 setenv PATH ${GCC_PATH}/bin:${PATH}

 setenv LD_LIBRARY_PATH ${GCC_PATH}/lib

 

 alias gcc /usr/tools/gcc3/

 

After the changes were made, I ran source .cshrc to have them go into effect.

 

I then went through the motions of running the configure script and then the
make command. I encountered an Exit Status 1 error, although the cause of the
error seems different than before. 

 

I've included it in this e-mail as an attachment. Is there something else I need
to do? Thanks. 

 

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] RE: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread Jeff Donsbach
Unless you know what version of HP-UX that version of gcc 3 was built
on, I wouldn't trust that it will run on your 10.20 machine. If the
compiler you are trying to use was built on 11.0 or later, don't count
on it working at all.

You know how old HP-UX 10.20 is, right? HP has not supported 10.20 in
more than 3 years. I have access to lots of HP-UX machines, but no
10.20 machines.

Jeff D

On 2/7/06, Kaplan, Andrew H. [EMAIL PROTECTED] wrote:
 Hi there --



 I mounted an NFS directory that has a newer version of gcc/ I then mounted 
 tthe
 following lines to my .cshrc file:



  setenv GCC_PATH /usr/tools/gcc3

  setenv PATH ${GCC_PATH}/bin:${PATH}

  setenv LD_LIBRARY_PATH ${GCC_PATH}/lib



  alias gcc /usr/tools/gcc3/



 After the changes were made, I ran source .cshrc to have them go into effect.



 I then went through the motions of running the configure script and then the
 make command. I encountered an Exit Status 1 error, although the cause of the
 error seems different than before.



 I've included it in this e-mail as an attachment. Is there something else I 
 need
 to do? Thanks.

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

 I mounted an NFS directory that has a newer version of gcc/ I then mounted 
 tthe
 following lines to my .cshrc file:
 
  setenv GCC_PATH /usr/tools/gcc3
  setenv PATH ${GCC_PATH}/bin:${PATH}

This far is OK.

  setenv LD_LIBRARY_PATH ${GCC_PATH}/lib

This won't work, get rid of it.

  alias gcc /usr/tools/gcc3/

What's this for?  Don't use this, first check if changing your path gives you
the new gcc: `which gcc` and `gcc --version`

 After the changes were made, I ran source .cshrc to have them go into effect.

You can do this if you have a cc on the PATH:

CC=gcc ./configure ...

Or to avoid the older gcc:

CC=/usr/tools/gcc3/bin/gcc ./configure ...

 I then went through the motions of running the configure script and then the
 make command. I encountered an Exit Status 1 error, although the cause of the
 error seems different than before. 
 
 I've included it in this e-mail as an attachment. Is there something else I 
 need
 to do? Thanks. 

No attachment.  But first correct the part with LD_LIBRARY_PATH above.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPo3yAACgkQL3NNweKTRgwYtACeNBxCyfrR8l4H4Gc5cDeY6ndQ
99EAniJtQslvHCZVlEBGdwEdwYYF04TE
=E5of
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread Jeff Donsbach
On 2/7/06, René Berber [EMAIL PROTECTED] wrote:
 But first correct the part with LD_LIBRARY_PATH above.

René is right. I missed that. On 10.20, LD_LIBRARY_PATH is not what
you want. SHLIB_PATH is the environment variable. That still assumes
the binary was linked to allow searches for the shared libraries
though.

Jeff D
___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread Kaplan, Andrew H.
I made the changes you had suggested to the .cshrc file.

 

  setenv LD_LIBRARY_PATH ${GCC_PATH}/lib

  This won't work, get rid of it.

 

I commented out that line.

 

  alias gcc /usr/tools/gcc3/

 What's this for?  Don't use this, first check if changing your path gives you
the new gcc: `which gcc` and `gcc --version`

 

I commented out that line as well, ran source .cshrc and then ran which gcc and
gcc --version. The which gcc command gave me

the following output: gcc: aliased to /usr/tools/gcc3/. When I ran the gcc
--version command, I got the following message: 

/usr/tools/gcc3/: Permission denied. When I ran the gcc --version command as
sudo user, the following appeared onscreen: 

Gcc (GCC) 3.1

 

 You can do this if you have a cc on the PATH:

 CC=gcc ./configure ...

 Or to avoid the older gcc:

 CC=/usr/tools/gcc3/bin/gcc ./configure ...

 

I didn't make changes to the PATH as of yet.

 

When I ran the make command as sudo and a regular user, the following error
message appeared:

Cc1: warning: changing search order for system directory /usr/local/include

Cc1: warning: as it has already been specified as a non-system directory

Manager.c: In function 'wwwconnect':

Manager.c:503: 'h_errno' undeclared (first use in this function)

Manager.c:503: (each undeclared identifier is reported only once

Manager.c:503: for each function it appears in.)

*** Error exit code 1

 

Stop

*** Error exit code 1

 

Stop

*** Error exit code 1

 

Stop.

 

Let me know if you need me to send you the attachment.

 

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

 I made the changes you had suggested to the .cshrc file.
[snip]
 I commented out that line as well, ran source .cshrc and then ran which gcc 
 and
 gcc --version. The which gcc command gave me
 
 the following output: gcc: aliased to /usr/tools/gcc3/.

The alias is still in effect.

 When I ran the gcc --version command, I got the following message: 
 
 /usr/tools/gcc3/: Permission denied. When I ran the gcc --version command as
 sudo user, the following appeared onscreen: 
 
 Gcc (GCC) 3.1

Good, but by using sudo what really happened is that you got rid of the alias.
It was easier to use alias gcc= (at least that is the way to do it in bash,
defined as empty).

[snip]
 I didn't make changes to the PATH as of yet.
 
 When I ran the make command as sudo and a regular user, the following error
 message appeared:
 
 Cc1: warning: changing search order for system directory /usr/local/include
 Cc1: warning: as it has already been specified as a non-system directory

This is normal, but did you cleaned up before configure (i.e. make distclean);
we need configure to find and use the new compiler.

 Manager.c: In function 'wwwconnect':
 Manager.c:503: 'h_errno' undeclared (first use in this function)

Back to the original problem.

h_errno is declared in /usr/include/netdb.h; there's something wrong with the
environment gcc is using... you could see the output of gcc -print-search-dirs
but that won't say where the headers are searched for.

Perhaps setting the header path explicitly, as in:

CFLAGS=-I/usr/include ./configure ...

 Manager.c:503: (each undeclared identifier is reported only once
 Manager.c:503: for each function it appears in.)
 *** Error exit code 1
 Stop
 *** Error exit code 1
 Stop
 *** Error exit code 1
 Stop.
 
 Let me know if you need me to send you the attachment.

No, no need for that.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPo9ewACgkQL3NNweKTRgyomACggPBCxfy+9KdswB7DDloBXOxS
EcAAniiSUIiNKlIjKbpkosfZ+a72WGaP
=RWTs
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread Kaplan, Andrew H.
 Perhaps setting the header path explicitly, as in:

 

 CFLAGS=-I/usr/include ./configure ...

 

I don't know into which file the CFLAGS line goes, or if it gets executed from
the command prompt. 

When I ran the make script as a regular user, I got an error 1 message due to a
permission denied error.

 

I also tried adding the SHLIB_PATH variable to the .cshrc file. The results were
the same if I tried to 

compile as a regular or sudo user. 

 

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

Perhaps setting the header path explicitly, as in:
CFLAGS=-I/usr/include ./configure ...
 
 I don't know into which file the CFLAGS line goes, or if it gets executed from
 the command prompt.

No file, the above is the command typed on a terminal to configure the package.
 It may be different under csh, but you can use 'setenv CFLAGS -I/usr/include'
before running ./configure

 When I ran the make script as a regular user, I got an error 1 message due to 
 a
 permission denied error.

I have a question: did you execute configure just before make?

There may be left over temporary files wich belong to root and no regular user
can delete.  I think that's the reason for the permission denied message.

 I also tried adding the SHLIB_PATH variable to the .cshrc file. The results 
 were
 the same if I tried to 

I wouldn't set SHLIB_PATH or any library path; the reason is that you were
setting it to the mounted directory and it's better to leave the path pointing
to the regular libraries which won't dissapear when you unmount the directory.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPpD6EACgkQL3NNweKTRgw+sACfaJoJsuMYVQDPM37XnSbPQlZq
1W4An2vEC5nggHFU1XCOtosbrbDyZdLG
=kAmb
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread Kaplan, Andrew H.
 No file, the above is the command typed on a terminal to configure the
package.

 It may be different under csh, but you can use 'setenv CFLAGS
-I/usr/include'

 before running ./configure

 

I ran the command setenv CFLAGS -I/usr/include as a regular user and it seemed
to accept the command.

When I did the same thing as root, I needed to include the full pathname to the
setenv binary.

 

 I have a question: did you execute configure just before make?

 There may be left over temporary files wich belong to root and no regular user
can delete.  I think that's the reason for the permission denied  message.

 

I did execute configure just before make, but that was after I ran the make
distclean command. That should have taken care of all files, unless there is
another directory involved in the compilation procedure.

 

 I wouldn't set SHLIB_PATH or any library path; the reason is that you were
setting it to the mounted directory and it's better to leave the path  pointing
to the regular libraries which won't dissapear when you unmount the directory.

 

I removed the SHLIB_PATH command from the .cshrc file, and tried the procedure
again, without success...I am at a loss here.

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:
[snip]
 I removed the SHLIB_PATH command from the .cshrc file, and tried the procedure
 again, without success...I am at a loss here.

Same message about h_errno?
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPpJIAACgkQL3NNweKTRgxTjgCgsDvV30/aBKqkCl2FDngpW57U
DOMAn1UZvoeFzD9iaS/+TetfyrvSLxO9
=5beC
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread Kaplan, Andrew H.
 Same message about h_errno?
 
Yes -- the message is the same.
___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] Re: Problem Upgrading ClamAV on HP-UX 10.20

2006-02-07 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

Same message about h_errno?
 
 Yes -- the message is the same.

OK, let's analyze the output of running configure.

There are 3 tests inside configure that use netdb.h and h_errno, they seem to be
testing to see what variant of gethostbyname_r does the system have.  You should
have the result in config.log, look for lines that say checking for
gethostbyname_r and everything below that should be interesting, but we are
really looking for something like result: yes, and it takes 5 arguments about
9 lines below.

What we are trying to do is see what is causing the build failure.  In theory
configure should have catched any problem.
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkPpTksACgkQL3NNweKTRgwzSACg3Muej+tfVdWj0Hj1N/oGUflo
cl4AoLoFpNjwnbb85WdUEfVDAgj5bgSW
=q/Xs
-END PGP SIGNATURE-

___
http://lurker.clamav.net/list/clamav-users.html