Henri Bergius | 1 Feb 02:07
Picon
Picon
Favicon
Gravatar

MySQL linking issues with mod_midgard on OS X

Greetings!

I'm having issues with getting Midgard to work on OS X. I saw chregu do a 
similar installation in Zurich last week, and I've tried to follow his steps 
but something is still wrong.

When I try to start Apache with mod_midgard loaded, it gives the following 
error:

dyld: /usr/local/apache/sbin/httpd Undefined symbols:
_mysql_close
_mysql_errno
_mysql_error
_mysql_fetch_field_direct
_mysql_fetch_fields
_mysql_fetch_row
_mysql_free_result
_mysql_init
_mysql_insert_id
_mysql_num_fields
_mysql_num_rows
_mysql_query
_mysql_real_connect
_mysql_select_db
_mysql_stat
_mysql_store_result

However, looking at mod_midgard, it should have the correct linkings in 
place:

(Continue reading)

Henri Bergius | 1 Feb 02:11
Picon
Picon
Favicon
Gravatar

Re: MySQL linking issues with mod_midgard on OS X

I've attached my installation notes, should those be useful.
Installing Midgard 1.5.0 on Mac OS X 10.3 (Panther)

The default MySQL and Apache packages for OS X are a bit troublesome, as they don't seem to support dynamic
libraries properly. Because of this we decided to install Apache from sources and MySQL from the Fink packages.

Compiling applications on Mac OS X requires the Xcode development tools to be installed. They can be found
from the Applications/Developer Tools/ in file Developer.mpkg. Double click this file to install the package.

Download glib from http://www.serverlogistics.com/downloads-x11.php#gtk
and install it using the provided Mac OS X installer

Download the fink package management tools from http://fink.sourceforge.net/download/index.php
and install fink following the installer package provided.

Install mysql via fink
$ export PATH=$PATH:/sw/bin
$ sudo /sw/bin/apt-get update
$ sudo /sw/bin/apt-get install mysql
$ sudo /sw/bin/apt-get install mysql12-dev
$ sudo /sw/bin/mysqld_safe &

Download expat from http://sourceforge.net/projects/expat/

Compile expat:
$ cd expat-1.95.7
$ ./configure
$ make
(Continue reading)

Henri Bergius | 1 Feb 11:23
Picon
Picon
Favicon
Gravatar

Re: MySQL linking issues with mod_midgard on OS X

Quoting Christian Stocker <chregu@...>:
> Hi

Greetings!

> First of all, why do you install mysql by yourself again after 
> installing it via fink? You should have everything you need from fink.

I just tried if installing it from sources would help. But you're right, the 
fink package works just fine.

> Second, check if really all programs are dynamically linked against the 
> same mysql library. For example, PHP is compiled with mysql support by 
> default and it takes the built in by default (AFAIK). Sorry, didn't 
> realize that yesterday... Therefore you should compile php with 
> "--with-mysql=/sw/"

Thanks, this solved it!! :-)

Updated install instructions attached. I will add stuff about MidCOM and 
Aegir when I install those, probably in the plane.

> By the way, expat can also be taken from fink, no need to compile it by 
> yourself

Jep, but I didn't have fink installed then.

Again, thanks for helping with the install!

> chregu
(Continue reading)

Henri Bergius | 1 Feb 12:05
Picon
Picon
Favicon
Gravatar

Re: MySQL linking issues with mod_midgard on OS X

Quoting Christian Stocker <chregu@...>:
> Hi Henri

Greetings!

Looks like my system goes through the same problems yours had:
i can't get the PHP iconv extension to compile:

checking for iconv support... yes, shared
configure: error: Please reinstall the iconv library.

I've tried with three separate iconv installations, the one in OS X 
developer tools, fink package, and source install from gnu.org

Do you remember the solution to this one?

> Try NeoOffice (http://www.neooffice.org/).

Looks interesting. However, their FTP server supports only to
simultaneous uses so I can't get it downloaded now.

> chregu

/Bergie
Alexey Zakhlestine | 2 Feb 12:29
Picon

Re: [nadmin-dev] M-P issues

Greetings!

I just checked our CVS - we have proposal/requirements section there. It 
is very closely related to current situation.
Can someone take care of updating it?
Henri Bergius | 3 Feb 01:14
Picon
Picon
Favicon
Gravatar

Lots of bugs on Mac OS X or with MidCOM

Greetings!

This has been quite a bug finding day here in Pretoria. We tried to get a server
box running Midgard reliably.
The first attempt was with my Mac OS X system, where two issues at first
prevented usage:
  * iconv PHP extension can't be compiled as a loadable module ->
    compile it statically into PHP instead
  * Style engine on mod_midgard-preparse is broken on Mac OS X -> use
    regular mod_midgard instead

----------
Midgard-PHP broken on Mandrake?

While the fight with the OS X installation didn't seem to proceed we tried
installing Midgard on a Mandrake 9.2 box. The installation went well, but trying
to use the admin interfaces we noticed that midgard-php is broken and returns
only partial objects. For example, with mgd_get_article we get title and content
but not abstract (based on what Old Admin shows).
the database itself was intact, and duplicating Midgard's queries on mysql
prompt provided correct results, so this has to be somewhere between midgard-php
or php.
I've seen this once before. Does anybody remember the fix?
As a symptom, the tabs on the left-hand side of Aegir show:
1
2
3
etc. instead of their correct labels.

After a while we had to give up with that and get OS X working, so that is the
(Continue reading)

Torben Nehmer | 3 Feb 20:22
Gravatar

Re: Are you aware that downloads are broken? (fwd)


Hi Henri,

--On 19.01.2004 15:43 +0200 Henri Bergius wrote:

> Anyway, the issue seems to have been MidCOM cache corruption. When
> I invalidated the cache I got all files down without problems.
> Irritating!

Perhaps we should find a way to migrate the MidCOM Cache into the
Database.

Live long and prosper!
Torben Nehmer

--

-- 
Torben Nehmer, Guenzburg, Bavaria, Germany
http://www.nathan-syntronics.de, mailto:torben@...
PGP Public Key: https://www.link-m.de/pgp/t.nehmer.asc
Henri Bergius | 5 Feb 14:39
Picon
Picon
Favicon
Gravatar

Re: Lots of bugs on Mac OS X or with MidCOM

Quoting Henri Bergius <henri.bergius@...>:
> Midgard-PHP broken on Mandrake?

Apparently Mandrake 9.2 is quite buggy. This was fixed by downgrading to
Mandrake 9.1

/Bergie
Alexander Bokovoy | 14 Feb 17:39

Repligard and filetemplates as prior art for recent Microsoft patent on XML?

Greetings!

Microsoft has recently been granted a patent 6,687,897 by USPTO on
2004/02/03. While looking at

http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=/netahtml/search-adv.htm&r=9&p=1&f=G&l=50&d=ptxt&S1=Microsoft.ASNM.&OS=AN/Microsoft&RS=AN/Microsoft

I found that it was filed on December 1st, 2000. The patent itself looks
very similar to what is implemented in Midgard as Repligard file format
and FileTemplates, two features which were developed in 2000 by Midgard
developers Emiliano Heyns and myself.

Filetemplates were added into CVS on 2000/07/17 and Repligard
implementation is first mentioned in the lib/ChangeLog on 2000/07/05 while
discussions of the format and operation dated early 2000 -- we even had
test implementation by Jukka Zitting early in February, 2000.

Move of Repligard into lib-midgard was done by me on 2000/11/28.

We need to be careful here but it looks like some of their claims in that
patent do have prior art in our own work for Midgard.
--

-- 
/ Alexander Bokovoy
Samba Team                      http://www.samba.org/
ALT Linux Team                  http://www.altlinux.org/
Midgard Project Ry              http://www.midgard-project.org/
Marcin Soltysiak | 14 Feb 17:47
Picon
Gravatar

Re: Repligard and filetemplates as prior art for recent Microsoft patent on XML?

> Microsoft has recently been granted a patent 6,687,897 by USPTO on
> 2004/02/03.
> I found that it was filed on December 1st, 2000. The patent itself looks
> very similar to what is implemented in Midgard as Repligard file format
> and FileTemplates, two features which were developed in 2000 by Midgard
> developers Emiliano Heyns and myself.
>
> Filetemplates were added into CVS on 2000/07/17 and Repligard
> implementation is first mentioned in the lib/ChangeLog on 2000/07/05 while
> discussions of the format and operation dated early 2000 -- we even had
> test implementation by Jukka Zitting early in February, 2000.
>
> Move of Repligard into lib-midgard was done by me on 2000/11/28.
>
> We need to be careful here but it looks like some of their claims in that
> patent do have prior art in our own work for Midgard.

But what does it mean for Midgard? Can they bannish us from using Repligard
of FileTempaltes format or make us pay for it? Can we act legally to defend
Midgard?

I am not geek in law and every such news make a thrill on my skin.

Solt

Gmane