Summary: | net-mail/ezmlm-idx-mysql-0.40-r2 fails to compile w/ gcc-4.x | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Evil Compile Person <bugs> |
Component: | [OLD] GCC Porting | Assignee: | Gentoo TreeCleaner Project <treecleaner> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-porting, jabapi, maik, maintainer-needed, qmail-bugs+disabled, xxx |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Other | ||
Whiteboard: | Vote | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 117482 |
Description
Evil Compile Person
2006-10-23 03:49:14 UTC
*** Bug 152636 has been marked as a duplicate of this bug. *** At opensql.c:95: error: invalid lvalue in assignment try if (!(psql = (void *)mysql_init((MYSQL *) 0))) which is the same line in the original tgz file. At some point it gets changed to if (!((MYSQL *)psql = mysql_init((MYSQL *) 0))) which does not compile. I am having difficulty getting the system installed knowing that this is the required change. Any help would be greatly appreciated. Possible corrective action to complete installation. emerge ezmlm-idx-mysql This will set up the work folder and process the emerge to the point of compile failure at opensql. nano /var/tmp/portage/ezmlm-idx-mysql-0.40-r2/work/ezmlm-0.53/opensql.c change if (!((MYSQL *) psql = mysql_init((MYSQL *) 0))) to if (!(psql = (void *)mysql_init((MYSQL *) 0))) cd /usr/portage/net-mail/ezmlm-idx-mysql ebuild ezmlm-idx-mysql-0.40-r2.ebuild compile This will complete the compile sequence. ebuild ezmlm-idx-mysql-0.40-r2.ebuild install This will complete the installation sequence. Whether this works or not we shall shortly see. I have been working with the correction noted yesterday and though there are several email installation problems to work on, mysql access from the apps appears to be working well. Linux version 2.6.18-gentoo-r6 (root@livecd) (gcc version 4.1.1 (Gentoo 4.1.1)) #1 SMP Fri Jan 26 14:38:41 MST 2007 Dual-Core AMD Opteron(tm) Processor 2220 SE Apparently noone gives a damn; treecleans please vote. 6.0.0 in cvs |