Re: problems installing mysql-python

2006-10-27 Thread Patrick McNamee
On Fri, Oct 27, 2006 at 05:25:50PM +0200, Joerg Zinke wrote:

> mysql-python is in ports/packages.

When I tried to install the package, it wanted a newer version of MySQL.


> i assume you want to install or have already installed all this versions
> from source on 3.9? a bleeding edge python version vs. a historic mysql-
> version, why?

I like MySQL 3.23.58. It's easy to use, fast, and meets my needs.

> why did you not take the versions from ports in -current or the
> packages from 3.9?

I wanted the newest Python and mysql-python.



problems installing mysql-python

2006-10-26 Thread Patrick McNamee
Hi all,

I've been unable to successfully install mysql-python. 

Here are the details:


##
# versions:
##
OpenBSD 3.9 stable
Python 2.5
MySQL 3.23.58
MySQL-python-1.2.1_p2


##
# build results:
##
% python setup.py build
running build
running build_py
creating build
creating build/lib.openbsd-3.9-i386-2.5
copying _mysql_exceptions.py -> build/lib.openbsd-3.9-i386-2.5
creating build/lib.openbsd-3.9-i386-2.5/MySQLdb
copying MySQLdb/__init__.py -> build/lib.openbsd-3.9-i386-2.5/MySQLdb
copying MySQLdb/converters.py -> build/lib.openbsd-3.9-i386-2.5/MySQLdb
copying MySQLdb/connections.py -> build/lib.openbsd-3.9-i386-2.5/MySQLdb
copying MySQLdb/cursors.py -> build/lib.openbsd-3.9-i386-2.5/MySQLdb
copying MySQLdb/release.py -> build/lib.openbsd-3.9-i386-2.5/MySQLdb
copying MySQLdb/times.py -> build/lib.openbsd-3.9-i386-2.5/MySQLdb
creating build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/__init__.py ->
build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/CR.py ->
build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py ->
build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/ER.py ->
build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/FLAG.py ->
build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py ->
build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py ->
build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.openbsd-3.9-i386-2.5
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-I/usr/local/include/mysql -I/usr/local/include/python2.5 -c _mysql.c -o
build/temp.openbsd-3.9-i386-2.5/_mysql.o
-Dversion_info="(1,2,1,'final',2)" -D__version__="1.2.1_p2"
_mysql.c: In function `_mysql_server_init':
_mysql.c:222: warning: unused variable `s'
_mysql.c:223: warning: unused variable `cmd_argc'
_mysql.c:223: warning: unused variable `i'
_mysql.c:223: warning: unused variable `groupc'
_mysql.c:224: warning: unused variable `item'
_mysql.c:298: warning: label `finish' defined but not used
_mysql.c: In function `_mysql_escape_dict':
_mysql.c:1132: warning: passing arg 2 of `PyDict_Next' from incompatible
pointer type
gcc -shared -fPIC build/temp.openbsd-3.9-i386-2.5/_mysql.o
-L/usr/local/lib/mysql -lmysqlclient -lz -lm -o
build/lib.openbsd-3.9-i386-2.5/_mysql.so


##
# install results:
##
[root]# python setup.py install
running install
running build
running build_py
copying MySQLdb/release.py -> build/lib.openbsd-3.9-i386-2.5/MySQLdb
running build_ext
running install_lib
copying build/lib.openbsd-3.9-i386-2.5/_mysql_exceptions.py ->
/usr/local/lib/python2.5/site-packages
creating /usr/local/lib/python2.5/site-packages/MySQLdb
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/__init__.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/converters.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/connections.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/cursors.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/release.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/times.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb
creating /usr/local/lib/python2.5/site-packages/MySQLdb/constants
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants/__init__.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb/constants
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants/CR.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb/constants
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants/FIELD_TYPE.py
-> /usr/local/lib/python2.5/site-packages/MySQLdb/constants
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants/ER.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb/constants
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants/FLAG.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb/constants
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants/REFRESH.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb/constants
copying build/lib.openbsd-3.9-i386-2.5/MySQLdb/constants/CLIENT.py ->
/usr/local/lib/python2.5/site-packages/MySQLdb/constants
copying build/lib.openbsd-3.9-i386-2.5/_mysql.so ->
/usr/local/lib/python2.5/site-packages
byte-compiling
/usr/local/lib/python2.5/site-packages/_mysql_exceptions.py to
_mysql_exceptions.pyc
byte-compiling
/usr/local/lib/python2.5/site-packages/MySQLdb/__init__.py to
__init__.pyc
byte-compiling
/usr/local/lib/python2.5/site-packages/MySQLdb/converters.py to
converters.pyc
byte-compiling
/usr/local/lib/python2.5/site-packages/MySQLdb/connections.py to
connections.pyc
byte-compiling /usr/local/lib/python2.5/site-pa

problems configuring and making nmap 4.11 on OpenBSD 3.9 stable

2006-07-05 Thread Patrick McNamee
I'm running OpenBSD 3.9 stable, arch i386. Also
autoconf-2.59. I'd install the nmap package, but 
it's an older version.

When I run ./configure --with-openssl=/usr/sbin/ I get a
number of warnings like the following:

configure: WARNING: net/if.h: present but cannot be compiled
configure: WARNING: net/if.h: check for missing
prerequisite headers?
configure: WARNING: net/if.h: see the Autoconf documentation
configure: WARNING: net/if.h: section "Present But
Cannot Be Compiled"
configure: WARNING: net/if.h: proceeding with the
preprocessor's result
configure: WARNING: net/if.h: in the future, the compiler
will take precedence
configure: WARNING: ##
-- ##
configure: WARNING: ## Report this to the
AC_PACKAGE_NAME lists.  ##
configure: WARNING: ##
-- ##

This happens for several files: net/if.h, sys/sysctl.h, 
net/if_arp.h, net/fpvar.h, net/route.h, and
netinet/in_var.h. 

Then when I run make I get:

"Makefile", line 1: Need an operator
"Makefile", line 14: Need an operator
"Makefile", line 15: Need an operator
"Makefile", line 21: Need an operator
"Makefile", line 38: Need an operator
"Makefile", line 49: Need an operator
"Makefile", line 51: Need an operator
"Makefile", line 190: Could not find makefile.dep
Fatal errors encountered -- cannot continue

I can provide the contents of my config.log file if
necessary.

TIA for help.