squidclamav make issues on OpenBSD 4.0 sparc64 (*** Error code 1)

2007-01-21 Thread openbsd neophyte
i've followed the following tutorial verbatim:

http://www.kernel-panic.it/openbsd/proxy/proxy6.html

i've tried using squidclamav 2.4 because any newer version doesn't have the
regex lib, and i've also tried squidclamav 3.0 and skipped the regex
section, but with both options, i get the following error:

i tried copying curl.h into a separate curl directory within the squidclamav
directory, but that doesn't seem to fix anything.

this is an Ultra 5 running OpenBSD 4.0.

below is the make output:

# make
gcc -c squidclamav.c-O3 -Wall -funroll-loops -fno-builtin-log
squidclamav.c: In function `load_in_buff':
squidclamav.c:110: warning: int format, different type arg (arg 3)
gcc -c main.c   -O3 -Wall -funroll-loops -fno-builtin-log
main.c:67:23: curl/curl.h: No such file or directory
main.c: In function `main':
main.c:157: error: `CURL' undeclared (first use in this function)
main.c:157: error: (Each undeclared identifier is reported only once
main.c:157: error: for each function it appears in.)
main.c:157: error: `eh' undeclared (first use in this function)
main.c:160: error: `CURL_ERROR_SIZE' undeclared (first use in this function)
main.c:231: warning: implicit declaration of function `curl_global_init'
main.c:231: error: `CURL_GLOBAL_ALL' undeclared (first use in this function)
main.c:233: warning: implicit declaration of function `curl_easy_init'
main.c:236: warning: implicit declaration of function `curl_global_cleanup'
main.c:243: warning: implicit declaration of function `curl_easy_setopt'
main.c:243: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in this
function)
main.c:245: error: `CURLOPT_ERRORBUFFER' undeclared (first use in this
function)
main.c:247: error: `CURLOPT_TIMEOUT' undeclared (first use in this function)
main.c:249: error: `CURLOPT_NOSIGNAL' undeclared (first use in this
function)
main.c:251: error: `CURL_HTTP_VERSION_1_0' undeclared (first use in this
function)
main.c:256: error: `CURLOPT_FAILONERROR' undeclared (first use in this
function)
main.c:261: error: `CURLOPT_FOLLOWLOCATION' undeclared (first use in this
function)
main.c:263: error: `CURLOPT_MAXREDIRS' undeclared (first use in this
function)
main.c:319: error: `CURLOPT_PROXY' undeclared (first use in this function)
main.c:321: error: `CURLOPT_URL' undeclared (first use in this function)
main.c:323: error: `CURLOPT_NOBODY' undeclared (first use in this function)
main.c:326: warning: implicit declaration of function `curl_easy_perform'
main.c:342: warning: implicit declaration of function `curl_easy_getinfo'
main.c:342: error: `CURLINFO_CONTENT_LENGTH_DOWNLOAD' undeclared (first use
in this function)
main.c:343: error: `CURLE_OK' undeclared (first use in this function)
main.c:356: error: `CURLINFO_CONTENT_TYPE' undeclared (first use in this
function)
main.c:472: error: `CURLOPT_HTTPGET' undeclared (first use in this function)
main.c:160: warning: unused variable `err'
*** Error code 1



Re: squidclamav make issues on OpenBSD 4.0 sparc64 (*** Error code 1)

2007-01-21 Thread J.C. Roberts
On Sunday 21 January 2007 04:38, openbsd neophyte wrote:
 i've followed the following tutorial verbatim:

 http://www.kernel-panic.it/openbsd/proxy/proxy6.html

 i've tried using squidclamav 2.4 because any newer version doesn't
 have the regex lib, and i've also tried squidclamav 3.0 and skipped
 the regex section, but with both options, i get the following error:

 i tried copying curl.h into a separate curl directory within the
 squidclamav directory, but that doesn't seem to fix anything.

 this is an Ultra 5 running OpenBSD 4.0.

 below is the make output:

 # make
 gcc -c squidclamav.c-O3 -Wall -funroll-loops
 -fno-builtin-log squidclamav.c: In function `load_in_buff':
 squidclamav.c:110: warning: int format, different type arg (arg 3)
 gcc -c main.c   -O3 -Wall -funroll-loops -fno-builtin-log
 main.c:67:23: curl/curl.h: No such file or directory
 main.c: In function `main':
 main.c:157: error: `CURL' undeclared (first use in this function)
 main.c:157: error: (Each undeclared identifier is reported only once
 main.c:157: error: for each function it appears in.)
 main.c:157: error: `eh' undeclared (first use in this function)
 main.c:160: error: `CURL_ERROR_SIZE' undeclared (first use in this
 function) main.c:231: warning: implicit declaration of function
 `curl_global_init' main.c:231: error: `CURL_GLOBAL_ALL' undeclared
 (first use in this function) main.c:233: warning: implicit
 declaration of function `curl_easy_init' main.c:236: warning:
 implicit declaration of function `curl_global_cleanup' main.c:243:
 warning: implicit declaration of function `curl_easy_setopt'
 main.c:243: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in
 this function)
 main.c:245: error: `CURLOPT_ERRORBUFFER' undeclared (first use in
 this function)
 main.c:247: error: `CURLOPT_TIMEOUT' undeclared (first use in this
 function) main.c:249: error: `CURLOPT_NOSIGNAL' undeclared (first use
 in this function)
 main.c:251: error: `CURL_HTTP_VERSION_1_0' undeclared (first use in
 this function)
 main.c:256: error: `CURLOPT_FAILONERROR' undeclared (first use in
 this function)
 main.c:261: error: `CURLOPT_FOLLOWLOCATION' undeclared (first use in
 this function)
 main.c:263: error: `CURLOPT_MAXREDIRS' undeclared (first use in this
 function)
 main.c:319: error: `CURLOPT_PROXY' undeclared (first use in this
 function) main.c:321: error: `CURLOPT_URL' undeclared (first use in
 this function) main.c:323: error: `CURLOPT_NOBODY' undeclared (first
 use in this function) main.c:326: warning: implicit declaration of
 function `curl_easy_perform' main.c:342: warning: implicit
 declaration of function `curl_easy_getinfo' main.c:342: error:
 `CURLINFO_CONTENT_LENGTH_DOWNLOAD' undeclared (first use in this
 function)
 main.c:343: error: `CURLE_OK' undeclared (first use in this function)
 main.c:356: error: `CURLINFO_CONTENT_TYPE' undeclared (first use in
 this function)
 main.c:472: error: `CURLOPT_HTTPGET' undeclared (first use in this
 function) main.c:160: warning: unused variable `err'
 *** Error code 1

curl will normally install into /usr/local, which means it's header 
files (including curl.h) will normall go into /usr/local/include/curl

If you don't have a /usr/local/include/curl directory with the requested 
header file, then you did not install it or it failed to install 
properly.

The ./configure process of autotools should figure out where to look 
for headers (i.e. /usr/include, /usr/local/include, and so on). It will 
create the needed -I statements so the compiler knows where to look 
for included files.


-- 
cd ~.   -Almost Home



Re: OpenBSD 4.0 sparc64

2006-11-16 Thread Ikmal Ahmad

Hi,

Thanks all for help.  I change the method to use network boot and it works.
Here the method I have use for it.

OpenBSD Sparc64 Network install
=

1 - Add MAC address for which machine will be the client.
# vi /etc/ethers
--- add ---
00:03:ba:08:53:1b   sparc64
--- done ---

2 - Set client host IP.
# vi /etc/hosts
--- add ---
10.1.1.36   sparc64
--- done ---

3 - Configure tftpboot
# mkdir /tftpboot   (If the directory is not there)
# chmod -R 555 /tftpboot
# cp bsd.rd /tftpboot
# cd /home/cpt2iah/sparc64
# cp ofwboot.net /tftpboot/inetboot.sparc64.OpenBSD_40
# chmod 755 /tftpboot/inetboot.sparc64.OpenBSD_40
# cd /tftpboot
# ln -s inetboot.sparc64.OpenBSD_40 0A010124

4 - Enable tftpd in /etc/inetd.conf
--- set ---
tftp dgram udp wait root /usr/sbin/tcpd in.tftpd /tftpboot
--- done ---

5 - Configure entry in /etc/bootparams
--- add ---
sparc64 root=sol9ad:/tmp/openbsd/root swap=sol9ad:/tmp/openbsd/swap
--- done ---

6 - Setting up space for swap.
# /tmp/openbsd
# dd if=/dev/zero of=swap bs=1024000 count=120

7 -  Setting up environment for diskless installation.
# cd /home/cpt2iah/sparc64
# cp base40.tgz etc40.tgz /tmp/openbsd/root
# cd /tmp/openbsd/root
# gunzip base40.tgz
# gunzip etc40.tgz
# tar -xvf base40.tar
# tar -xvf etc40.tar
# mv base40.tar etc40.tar ../
# cd etc/
# vi hosts
  --- add ---
  10.1.1.17   sol9ad
  10.1.1.36   sparc64
  --- done ---

# vi myname
  --- change to ---
  sparc64
  --- done ---

# vi fstab
  --- add ---
  sol9ad:/tmp/openbsd/root  /   nfs rw  0 0
  sol9ad:/tmp/openbsd/swap  noneswapsw,nfsmntpt=/swap
  sol9ad:/tmp/openbsd/root/usr  /usrnfs rw,nodev0 0
  sol9ad:/tmp/openbsd/root/var  /varnfs rw,nosuid,nodev 0 0
  --- done ---

8 - Add nfs entry.
vi /etc/dfs/dfstab
--- add ---
# OpenBSD sparc64.
share -F nfs -o rw,root=10.1.1.36 /tmp/openbsd/root
--- done ---

9 - Disable system autoboot.
Press Stop+A
ok setenv auto-boot? false
ok reset-all

10 - Boot the client
ok boot net bsd.rd

11 - Proceed with OpenBSD installation.
   http://www.openbsd.org/faq/faq4.html#Install

12 - Once done.  Try to boot from disk.
ok boot disk

13 - Enable system autoboot.
ok setenv auto-boot? true

or can get it at:
http://root.justdied.com/howto/english/openbsd_net_install.php

On 11/11/06, Daniel Ouellet [EMAIL PROTECTED] wrote:

 Hi all,

 Based on http://www.openbsd.org.my/sparc64.html, seem that OpenBSD can
 install on Sun Blade 100/150 machine.  I have this problem when do
 disk installation on Blade 100.  Below is the error.

 ok boot disk /bsd
 Boot device: /[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0  File 
and args: /bsd
ERROR: Last Trap: Fast Data Access MMU Miss

This may help you, assuming the blade 100 have LOM, or similar stuff. If
not, then discard this as I never had a blade 100, or even seen one, so
I may talk stupid here, but hopefully it would help you. I know I need
to do this time to time on some Sun gear that pass in my hands to get
them going as many things something is broken with them and put them a side.

Getting the error Fast Data Access MMU Miss when trying to do a
probe-scsi, (even if your hardware doesn't have SCSI device).
probe-scsi-all works but just for the external tape drive, cdrom, etc
then returns the MMU error again. I know this is a catch all error
message and hard to troubleshoot at times.

So, some OBP Errors are caused by just halting the OS and run a OBP Command.

Please follow this procedure:

init 0
ok setenv auto-boot? false
#depending on which Hardware and OBP Version you are running it is
either or ( I do both in order to be sure on my SunFire)
ok reset
ok reset-all

when the OBP is back you can run eg
ok probe-scsi-all

do not forget to set auto-boot? variable to the value you set before
testing (usually it is set to true)

Some time, the error data mmu miss error's are bad cpus, but I don't
think it's your problem here.

Hope this help you, if not, then forget about it and sorry for the noise.

Daniel





--
Thanks  Regards,
Ikmal aka EvoIVGSR

http://www.leakage.org/
http://root.justdied.com/mylife/
http://www.openbsd.org.my/
http://mirrors.mybsd.org.my/



Re: OpenBSD 4.0 sparc64

2006-11-10 Thread Allie D.
I'm running a Blade 150 that I recently upgraded and have no complaints.
You need to make a bootable install disk or boot into bsd.rd to get the
install going.
-- 
~Allie D.


On Thu, November 9, 2006 23:42, Ikmal Ahmad wrote:
 Hi all,

 Based on http://www.openbsd.org.my/sparc64.html, seem that OpenBSD can
 install on Sun Blade 100/150 machine.  I have this problem when do
 disk installation on Blade 100.  Below is the error.

 ok boot disk /bsd
 Boot device: /[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0  File 
 and args: /bsd
 ERROR: Last Trap: Fast Data Access MMU Miss

 Error -256
 ERROR: Last Trap: Fast Data Access MMU Miss

 Error -256
 ok

 I have upgrade OBP to the latest  version.  Here the OBP info:

 Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 OpenBoot 4.17.1, 256 MB memory installed,

 Any idea how to solve this problem.

 --
 Thanks  Regards,
 Ikmal aka EvoIVGSR

 http://www.leakage.org/
 http://root.justdied.com/mylife/
 http://www.openbsd.org.my/
 http://mirrors.mybsd.org.my/



Re: OpenBSD 4.0 sparc64

2006-11-10 Thread Ralph Gessner
Ikmal Ahmad schrieb:
 Hi all,
 
 Based on http://www.openbsd.org.my/sparc64.html, seem that OpenBSD can
 install on Sun Blade 100/150 machine.  I have this problem when do
 disk installation on Blade 100.  Below is the error.
 
 ok boot disk /bsd
 Boot device: /[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0  File 
 and args: /bsd
ERROR: Last Trap: Fast Data Access MMU Miss

Looks like there is nothing usefull on your disk...

What do you mean with disk installation?

Booting for an installation FROM a disk?
Then copy miniroot40.fs with dd(1) to the disk.
(http://www.openbsd.org/sparc64.html#install)

Or better(usually a Blade 100 has a cdrom drive) boot from cdrom.
To get a boot-cd, you can buy a CD-Set (preferred) or take cd40.iso from
 a ftp-server.



Ralph



Re: OpenBSD 4.0 sparc64

2006-11-10 Thread Matthew R. Dempsky
On Fri, Nov 10, 2006 at 03:42:41PM +0800, Ikmal Ahmad wrote:
 Based on http://www.openbsd.org.my/sparc64.html, seem that OpenBSD can
 install on Sun Blade 100/150 machine.  I have this problem when do
 disk installation on Blade 100.  Below is the error.

Funny you should mention this.  I just installed OpenBSD 4.0 without
any problem (other than I had never used OpenBoot before in my life)
on two Sun Blade 100s earlier this week.

 ok boot disk /bsd
 Boot device: /[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0  File 
 and args: /bsd
ERROR: Last Trap: Fast Data Access MMU Miss
 
 Error -256
ERROR: Last Trap: Fast Data Access MMU Miss
 
 Error -256
 ok

The only boot commands I needed were ``boot cdrom'' to boot off the
cd40.iso image to get the installer going and ``boot disk:a'' to boot
off the hard disk after the install.  (I tried using ``boot floppy
bsd'' to boot from a floppy disk at first, but it would not even touch
the floppy drive before returning an error.)



Re: OpenBSD 4.0 sparc64

2006-11-10 Thread Daniel Ouellet

Hi all,

Based on http://www.openbsd.org.my/sparc64.html, seem that OpenBSD can
install on Sun Blade 100/150 machine.  I have this problem when do
disk installation on Blade 100.  Below is the error.

ok boot disk /bsd
Boot device: /[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0  File 
and args: /bsd
   ERROR: Last Trap: Fast Data Access MMU Miss


This may help you, assuming the blade 100 have LOM, or similar stuff. If 
not, then discard this as I never had a blade 100, or even seen one, so 
I may talk stupid here, but hopefully it would help you. I know I need 
to do this time to time on some Sun gear that pass in my hands to get 
them going as many things something is broken with them and put them a side.


Getting the error Fast Data Access MMU Miss when trying to do a 
probe-scsi, (even if your hardware doesn't have SCSI device). 
probe-scsi-all works but just for the external tape drive, cdrom, etc 
then returns the MMU error again. I know this is a catch all error 
message and hard to troubleshoot at times.


So, some OBP Errors are caused by just halting the OS and run a OBP Command.

Please follow this procedure:

init 0
ok setenv auto-boot? false
#depending on which Hardware and OBP Version you are running it is 
either or ( I do both in order to be sure on my SunFire)

ok reset
ok reset-all

when the OBP is back you can run eg
ok probe-scsi-all

do not forget to set auto-boot? variable to the value you set before 
testing (usually it is set to true)


Some time, the error data mmu miss error's are bad cpus, but I don't 
think it's your problem here.


Hope this help you, if not, then forget about it and sorry for the noise.

Daniel



OpenBSD 4.0 sparc64

2006-11-09 Thread Ikmal Ahmad

Hi all,

Based on http://www.openbsd.org.my/sparc64.html, seem that OpenBSD can
install on Sun Blade 100/150 machine.  I have this problem when do
disk installation on Blade 100.  Below is the error.

ok boot disk /bsd
Boot device: /[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0  File 
and args: /bsd
   ERROR: Last Trap: Fast Data Access MMU Miss

Error -256
   ERROR: Last Trap: Fast Data Access MMU Miss

Error -256
ok

I have upgrade OBP to the latest  version.  Here the OBP info:

Sun Blade 100 (UltraSPARC-IIe), Keyboard Present
Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.17.1, 256 MB memory installed,

Any idea how to solve this problem.

--
Thanks  Regards,
Ikmal aka EvoIVGSR

http://www.leakage.org/
http://root.justdied.com/mylife/
http://www.openbsd.org.my/
http://mirrors.mybsd.org.my/



Can't compile X11R6.9.0 on OpenBSD 4.0 (sparc64)

2006-08-29 Thread Gary B.

It seems the install of X11R6.9.0 on OpenBSD 4.0 doesn't include the
sunffb driver, which I'm
trying to use to get the Creator 3D card working with X.  I pulled
down the source from xorg,
but I'm running into a problem getting the error message
/usr/bin/ld: cannot find -lresolv

I see that the libresolv library has been removed from OBSD3.9, so I'm
not really sure how I
can get X11R6.9.0 to compile.  Also, maybe I'm just blind, but I don't
see X11R6 in the ports
either, so I'm at a loss of what to do for the sunffb driver.

Any ideas / suggestions would be appreciated.  Also note that the
on-board ATI graphics card
isn't an option (it's a Sun Ultra 10, btw), as it doesn't support a
high enough graphics
resolution.



Re: Can't compile X11R6.9.0 on OpenBSD 4.0 (sparc64)

2006-08-29 Thread ddp
On 8/29/06, Gary B. [EMAIL PROTECTED] wrote:

 It seems the install of X11R6.9.0 on OpenBSD 4.0 doesn't include the
 sunffb driver, which I'm
 trying to use to get the Creator 3D card working with X.  I pulled
 down the source from xorg,
 but I'm running into a problem getting the error message
 /usr/bin/ld: cannot find -lresolv

 I see that the libresolv library has been removed from OBSD3.9, so I'm
 not really sure how I
 can get X11R6.9.0 to compile.  Also, maybe I'm just blind, but I don't
 see X11R6 in the ports
 either, so I'm at a loss of what to do for the sunffb driver.

 Any ideas / suggestions would be appreciated.  Also note that the
 on-board ATI graphics card
 isn't an option (it's a Sun Ultra 10, btw), as it doesn't support a
 high enough graphics
 resolution.

 You could try installing the x*.tgz install sets.  It's not in ports.
Unfortunately this may apply (from http://www.openbsd.org/sparc64.html):

It is possible to use X in frame buffer mode with all supported SBus cards,


as well as the on-board ATI graphics or the UPA Creator, Creator 3D or Elite


3D at the boot resolution/depth using the wsfb(4) driver.


ddp