Problem compiling php5 fro ports

2009-11-20 Thread Thomas Vogt
Hello

Maybe someone can help me. I try to compile several php5 extensions from the 
ports. php5 compiles fine but every extension fails with the same error.

Example: php5-mcrypt

In file included from /usr/local/include/php/main/../main/php_config.h:2827,
 from /usr/local/include/php/Zend/zend_config.h:1,
 from /usr/local/include/php/Zend/zend.h:53,
 from /usr/local/include/php/main/php.h:34,
 from 
/usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
/usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/../main/php_config.h:2827,
 from /usr/local/include/php/TSRM/tsrm_config.h:1,
 from /usr/local/include/php/Zend/../TSRM/TSRM.h:20,
 from /usr/local/include/php/Zend/zend_alloc.h:27,
 from /usr/local/include/php/Zend/zend.h:242,
 from /usr/local/include/php/main/php.h:34,
 from 
/usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
/usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php_config.h:2827,
 from /usr/local/include/php/main/php_syslog.h:27,
 from /usr/local/include/php/Zend/zend.h:689,
 from /usr/local/include/php/main/php.h:34,
 from 
/usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
/usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php_config.h:2827,
 from /usr/local/include/php/main/php_compat.h:27,
 from /usr/local/include/php/main/php.h:36,
 from 
/usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
/usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'file'
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
 from /usr/local/include/php/Zend/zend_API.h:26,
 from /usr/local/include/php/main/php.h:38,


Another example:

===  Building for pecl-pdflib-2.1.6_1
/bin/sh /usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/libtool --mode=compile 
cc  -I. -I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6 -DPHP_ATOM_INC 
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/include 
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/main 
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6 -I/usr/local/include/php 
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM 
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext 
-I/usr/local/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  
-O2 -fno-strict-aliasing -pipe   -c 
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c -o pdf.lo
mkdir .libs
 cc -I. -I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6 -DPHP_ATOM_INC 
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/include 
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/main 
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6 -I/usr/local/include/php 
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM 
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext 
-I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 
-fno-strict-aliasing -pipe -c 
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c  -fPIC -DPIC -o .libs/pdf.o
In file included from /usr/local/include/php/main/../main/php_config.h:2827,
 from /usr/local/include/php/Zend/zend_config.h:1,
 from /usr/local/include/php/Zend/zend.h:53,
 from /usr/local/include/php/main/php.h:34,
 from /usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/../main/php_config.h:2827,
 from /usr/local/include/php/TSRM/tsrm_config.h:1,
 from /usr/local/include/php/Zend/../TSRM/TSRM.h:20,
 from /usr/local/include/php/Zend/zend_alloc.h:27,
 from /usr/local/include/php/Zend/zend.h:242,
 from /usr/local/include/php/main/php.h:34,
 from /usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php_config.h:2827,
 from /usr/local/include/php/main/php_syslog.h:27,
 from /usr/local/include/php/Zend/zend.h:689,
 from /usr/local/include/php/main/php.h:34,
 from 

Re: Problem compiling php5 fro ports

2009-11-20 Thread Thomas Vogt
Hi

Am 20.11.2009 um 13:07 schrieb Mel Flynn:

 On Fri, 20 Nov 2009 12:13:39 +0100, Thomas Vogt freebsdli...@bsdunix.ch
 wrote:
 Hello
 
 Maybe someone can help me. I try to compile several php5 extensions from
 the ports. php5 compiles fine but every extension fails with the same
 error.
 
 Example: php5-mcrypt
 
 In file included from
 /usr/local/include/php/main/../main/php_config.h:2827,
 from /usr/local/include/php/Zend/zend_config.h:1,
 from /usr/local/include/php/Zend/zend.h:53,
 from /usr/local/include/php/main/php.h:34,
 from
 
 /usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
 /usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';',
 'asm' or '__attribute__' before 'file'
 
 There shouldn't be anything declared there. What is line 1 of that file?

I didn't see it the first time. There was a comment on line 1. Maybe from the 
last freebsd-update procedure.
First line:
Binary file /usr/local/include/php/ext/php_config.h.orig matches

I removed it and now it works.

Thanks
Tom




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


pxe bootable freebsd rescue system?

2008-07-25 Thread Thomas Vogt

Hello

I try to setup a FreeBSD PXE bootable rescue image.
I'm aware of the rescue mode on Disc1 on every FreeBSD CD. My goal is to 
setup a non interactive session.


Boot via PXE, set a root password depends on the mac address, start ssh 
and allow remote login.


Adrian Steinmann showed something similar at the Eurobsdcon 2005 in 
Basel with Single User Secure Shell, Installing small systems with 
FreeBSD using the Secure Shell RAMdisk environment


He uses a ssh key, where i have to set the root password during the 
boot, depending on the mac adress.


This is not a big issue with linux systems, where most rescue systems 
allow you to set password=xxx during the pxe boot.


Maybe someone has already done this and wants to share some information 
with me :)


Regards,
Thomas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


bcwipe doesn't wipe any block device

2007-03-14 Thread Thomas Vogt
Hello

Has someone ever tried to wipe a block device on freebsd 6.2 with
bcwipe?

I tried
bcwipe -bvmd /dev/aacd1

I get:
Writing to /dev/aacd1: Invalid argument
I tried slices too but it i got the same error.

dd can overwrite my disk several times but perhaps someone can give me a
hint how to wipe a disk with bcwipe.

Regards,
Thomas
-- 
Terry Lambert:
It is not unix's job to stop you from shooting your foot. If you so
choose to do so, then it is UNIX's job to deliver Mr. Bullet to Mr Foot
in the most efficient way it knows.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


aaccli doesn't work with AOC-LPZCR2 (Supermicro)

2007-03-13 Thread Thomas Vogt
Hello

I've a new Supermicro Raid controller AOC-LPZCR2
(http://www.supermicro.com/products/accessories/addon/AOC-LPZCR2.cfm)

It's a Adaptec 2020ZCR
Controller Monitor 5.1-0[8454]
Controller Kernel  5.1-0[8454] 

[EMAIL PROTECTED]:1:0:  class=0x010400 card=0x028a9005 chip=0x02859005 rev=0x02
hdr=0x00
vendor   = 'Adaptec Inc'
device   = 'AAC-RAID RAID Controller'
class= mass storage
subclass = RAID

FreeBSD (6.2 and Current) boots and works perfectly. Only the storage
control program from port/sysutils/aaccli doesn't work with this
controller. 

aaccli open aac0:
Command Error: The current AFAAPI.DLL is too old to work with the
current controller software.

Is there a way to check the status from the Raid without it? Perhaps
with the linux aaccli? I doubt that adaptec is releasing a new aaccli
for freebsd soon.

Cheers,
Thomas


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apache, gd and mod_perl2 problem

2007-02-16 Thread Thomas Vogt
Hello

I've a strange problem with apache2.0, gd2 and mod_perl2.
I wrote a small test script which creates a png file in my /tmp
directory.

This perl script works fine if I run it localy on a shell, it works also
as normal cgi script but it doesn't work with apache2 and mod_perl2. It
crashes with: print HF $im-png; (see the whole script below)

httpd-error.log message (debug enabled)
[Tue Feb 13 09:41:34 2007] [notice] child pid 24480 exit signal Abort
trap (6)
t/www in free(): error: pointer to wrong page

The script I'm talking about:
cat buttontest.html

#!/usr/bin/perl
use GD;

# create a new image
$im = new GD::Image(100, 100);

# allocate some colors
$white = $im-colorAllocate(255,255,255);
$black = $im-colorAllocate(0,0,0);
$red = $im-colorAllocate(255,0,0);
$blue = $im-colorAllocate(0,0,255);

# make the background transparent and interlaced
$im-transparent($white);
$im-interlaced('true');
# Put a black frame around the picture
$im-rectangle(0,0,99,99,$black);

# Draw a blue oval
$im-arc(50,50,95,75,0,360,$blue);

# And fill it with red
$im-fill(50,50,$red);

print Content-type: text/html\n\n; 
print h1Hello world/h1;  

# make sure we are writing to a binary stream
open HF, /tmp/file.png;
binmode HF;

# Convert the image to PNG and print it on standard output
# here it crashes with apache
print HF $im-png; 
close HF;
print pFoobar;


my httpd.conf:
LoadModule perl_module libexec/apache2/mod_perl.so

PerlModule Apache2::Reload
Location /perl
   # -- mod_perl stuff
  SetHandler perl-script
  PerlResponseHandler ModPerl::RegistryPrefork 
  PerlInitHandler Apache2::Reload
  Options +ExecCGI
  AddHandler cgi-script html png
  PerlOptions +ParseHeaders
  PerlSetVar StatINCDebug On
/Location

My System:
6.2-RELEASE-p1  (i386)

Packets I use:
apache-2.0.59
png-1.2.12_1
perl-5.8.8
p5-GD-2.35
mod_perl2-2.0.3_
gd-2.0.33_4,11,3
freetype2-2.2.1_1

I compiled everything with -DWITHOUT_X11 knob but I also tested it with
X support too. It doesn't work either. I also tried mod_perl2-2.0.2 to
make sure it's not a new 2.0.3 bug.

The same script works fine on an Ubuntu Linux Server with apache2.0.x,
mod_perl2 and gd.

Any idea?

Regards,
Thomas
-- 
Terry Lambert:
It is not unix's job to stop you from shooting your foot. If you so
choose to do so, then it is UNIX's job to deliver Mr. Bullet to Mr Foot
in the most efficient way it knows.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PHP new vulnarabilities

2006-10-15 Thread Thomas Vogt


Paul Schmehl schrieb:
 --On October 15, 2006 4:31:48 PM -0400 DAve [EMAIL PROTECTED]
 wrote:

 That is a bit extreme. I have a full workload, I put in about 60 hours a
 week (I work a lot of weekends, I'm working now). I have servers running
 all different version of apps. I can't go around upgrading everything at
 the drop of a hat. I would be divorced within a month.

 If you read the security alerts carefully you will find many require a
 shell (We don't offer them to clients), some require a specific app to
 be running that you may not need (rm -f /usr/local/bin/vulnerable_app),
 and sometimes a simple code audit will tell you if you are vulnerable.
 It is also not uncommon that a security alert is issued for a problem
 that has not be proven in the wild.

 There are plenty of reasons to not follow a security alert, many of them
 quite valid. Upgrading mission critical systems without throughly
 understanding the implications just because someone screamed SECURITY!,
 now that is foolhardy.

 That wasn't the situation here.
 
 Look, there are several possible scenarios where installing a vulnerable
 app is less of a risk than not installing the app at all.  Business
 functionality *is* important.  However, to arbitrarily say Use
 DISABLE_VULNERABILITIES is the answer to an app that won't install is
 always a wrong answer.  *At a minimum* it should come with a warning of
 the possible risks.  Furthermore *upgrading* from a non-vulnerabile app
 to a vulnerable app simply because it's the latest is foolhardy in the
 extreme.
 
 I don't think my statement was any more extreme than Just use
 DISABLE_VULNERABILITIES and you can install the app with no warning of
 the risks.  *Especially* when the app is as highly scrutinized as php is
 (not to mention how vulnerabilities are being found in it all the time.)


Does DISABLE_VULNERABILITIES not say enough?
When he tried to install php he already got the vulnerabilities message
including a web link.

I think this knob was made for a reason.

Cheers,
Thomas
-- 
Terry Lambert:
It is not unix's job to stop you from shooting your foot. If you so
choose to do so, then it is UNIX's job to deliver Mr. Bullet to Mr Foot
in the most efficient way it knows.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Howto measure packets per seconds

2005-01-25 Thread Thomas Vogt
Hello

I try to do a benchmark with freebsd 5.x. It's for a routing project.
So i'm only interessted in max pps for the integrated GigE interface. 

I tried netperf. But netperf don't show me the max. limit of pps for
4kbyte packets (only interessted in small udp packets).
netstat -w 1 is not really usefull, because it doesn't show the real
limit.

Is there a way to measure the pps limit? Perhaps with netperf?

Regards,
Thomas

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make.conf and ntpd

2004-10-07 Thread Thomas Vogt
Hi 

I've to compile ntp in /usr/src/contrib/ntp with --enable-NMEA. It works
fine. But I want to add this configure option permanently. So that it'll
also work after a cvsup src upgrade. Can I put this option
into /etc/make.conf? If yes what exactly I've to add?

regards
Thomas Vogt

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sucon 04

2004-07-28 Thread Thomas Vogt
Dear list members,
The registration for the anual Swiss Unix Conference has been
opened. The online registration form can be found at:
   https://www.suug.ch/sucon/04/register.html
If you register before August 9 you can benefit from early bird
registration discounts and save 40% on all fees and additionaly
get the chance to win O'Reilly books.
SUCON'04 - 2nd Swiss Unix Conference
September 2-4, 2004
Technopark, Zurich
http://www.sucon.ch/
Some BSD highlights:
   Poul-Henning Kamp
  Old mistakes repeated (but you do get the source code now):
 UNIX is the best operating system ever designed so
 everybody is running UNIX on their computer, right ?
 This presentation takes a partisan looks a why UNIX
 never became a big success in the eighties, failed to
 win the market in the nineties, and still struggles in
 the market in the new millenium. Poul-Henning will take
 a critical look at the mistakes of the past and the
 mistakes of the present and try to make it really clear
 what needs to happen for UNIX to become a real success.
   Hubert Feyrer
  NetBSD Status Report Fall 2004
 As a follower of the Berkeley 4.4BSD Unix operating
 system, NetBSD is the oldest Open Source operating
 system project under development today. With it's focus
 on portability to a wide range of hardware, NetBSD is
 equally good for running on desktop PCs, various server
 hardware as well as a wide range of contemporaty
 handheld and embedded devices. A lot has happened since
 the project started, and with finally reaching the
 NetBSD 2.0 release after more than 10 years, this talk
 will give an overview of the past events from both
 technical and project administrative point of view,
 introduce where the NetBSD project stands today and what
 some of the plans for the future are.
   Henning Brauer
  A Secure BGP Implementation
 The Border Gateway Protocol, BGP, is the standard
 protocol to exchange routing information. So-called full
 mesh BGP peers build up a table describing the entire
 Internet. When something goes wrong with bgp, such as
 loosing tcp session(s) or the bgp daemon dieing, the
 affected router is loosing all its routes and the
 affected site may disappear from the internet until the
 problem is fixed. If an attacker is able to insert
 routes remotely the implications are even worse. The
 basics of the BGP protocol are going to be looked at
 from a security point of view, especially taking care
 about the tcp session, and what has been done in OpenBSD
 and the included bgpd to secure BGP.
And many other *BSD related talks. See 
http://www.suug.ch/sucon/04/programme_f.html

Hope to see you at the conference!
Best Regards
   Thomas Vogt
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sucon 04 with *bsd talks

2004-07-28 Thread Thomas Vogt
Dear list members,
The registration for the anual Swiss Unix Conference has been
opened. The online registration form can be found at:
   https://www.suug.ch/sucon/04/register.html
If you register before August 9 you can benefit from early bird
registration discounts and save 40% on all fees and additionaly
get the chance to win O'Reilly books.
SUCON'04 - 2nd Swiss Unix Conference
September 2-4, 2004
Technopark, Zurich
http://www.sucon.ch/
Some BSD highlights:
   Poul-Henning Kamp
  Old mistakes repeated (but you do get the source code now):
 UNIX is the best operating system ever designed so
 everybody is running UNIX on their computer, right ?
 This presentation takes a partisan looks a why UNIX
 never became a big success in the eighties, failed to
 win the market in the nineties, and still struggles in
 the market in the new millenium. Poul-Henning will take
 a critical look at the mistakes of the past and the
 mistakes of the present and try to make it really clear
 what needs to happen for UNIX to become a real success.
   Hubert Feyrer
  NetBSD Status Report Fall 2004
 As a follower of the Berkeley 4.4BSD Unix operating
 system, NetBSD is the oldest Open Source operating
 system project under development today. With it's focus
 on portability to a wide range of hardware, NetBSD is
 equally good for running on desktop PCs, various server
 hardware as well as a wide range of contemporaty
 handheld and embedded devices. A lot has happened since
 the project started, and with finally reaching the
 NetBSD 2.0 release after more than 10 years, this talk
 will give an overview of the past events from both
 technical and project administrative point of view,
 introduce where the NetBSD project stands today and what
 some of the plans for the future are.
   Henning Brauer
  A Secure BGP Implementation
 The Border Gateway Protocol, BGP, is the standard
 protocol to exchange routing information. So-called full
 mesh BGP peers build up a table describing the entire
 Internet. When something goes wrong with bgp, such as
 loosing tcp session(s) or the bgp daemon dieing, the
 affected router is loosing all its routes and the
 affected site may disappear from the internet until the
 problem is fixed. If an attacker is able to insert
 routes remotely the implications are even worse. The
 basics of the BGP protocol are going to be looked at
 from a security point of view, especially taking care
 about the tcp session, and what has been done in OpenBSD
 and the included bgpd to secure BGP.
And many other *BSD related talks. See 
http://www.suug.ch/sucon/04/programme_f.html

Hope to see you at the conference!
Best Regards
   Thomas Vogt
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPFW question

2004-03-10 Thread Thomas Vogt
Hi

ipfw flush # deletes all
ipfw /etc/ipfw.conf # loads all
regards
Thomas
Nagy Lszl Zsolt wrote:
 Hi!

I'm using my own ip firewall (firewall_type=/etc/ipfw.conf) on my 
FreeBSD 5.2 system. My problem is, how can I reload the whole thing? The 
ipfw command is for creating and deleting individual rules. What I would 
like to do is to create profiles (different config files) and reload the 
whole firewall configuration anytime. Is there a command for this? What 
I do now is that I reboot my box every time I change firewall 
configuration. But of course this is clumsy and very bad. I may start 
services on the server which will not allow me to reboot daily. Thanks 
in advance.

  Laci 2.0

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: boot disk uses the wrong scsi driver

2004-02-25 Thread Thomas Vogt
hay wrote:

No, nothing I see during boot. I have one IDE hard disk, 20Gb Maxtor. We
have CD driver enclosure pc case, if floopy is needed for everything for
what CD was invented? 5.2 booting iso image has problem? I dont know if
there is a problem or I dont know nothing about bootable CD writing...
Well we don't have any cd-rom in our servers. But I guess I've figured 
out the right solution for my problem. boot -c should help me. Next time 
I should read the man page more carefully.

regards
Thomas Vogt
- Original Message -
From: Thomas Vogt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 2:09 AM
Subject: boot disk uses the wrong scsi driver


Hi

I try to boot Fbsd 5.2.1 release from a floppy disk in order to make a
net installation. The boot disk uses always the wrong SCSI driver. It
loads every time the adv SCSI driver. But I need the asr driver. So
the systems hangs all the time. Is there a possibility to send a
paramater during the boot session to defines the SCSI right driver?
Something like set hint.asr.enable=1?
regards
Thomas Vogt


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]