[debian-mysql] Bug#424276: Bug#424276: libmysqlclient15-dev: depends on removed kernel header asm/atomic.h

Monty Taylor mtaylor at mysql.com
Tue May 15 22:46:19 UTC 2007


I've put this in the MySQL bug system - but #28456. I'll try to ride on
it and see what feedback I can get from the build team.

Monty

Steve Langasek wrote:
> Package: libmysqlclient15-dev
> Version: 5.0.38-1
> Severity: serious
> Tags: sid lenny
> 
> Hi guys,
> 
> Packages build-depending on libmysqlclient15-dev will fail to build in
> unstable on (at least) amd64 systems using the new linux-libc-dev package in
> place of the obsoleted linux-kernel-headers, because my_global.h has a
> dependency on asm/atomic.h:
> 
>  gcc -DHAVE_CONFIG_H -I. -I. -I. -D_REENTRANT -D_GNU_SOURCE -I/usr/include -O3 -DDBUG_OFF -I/usr/include/mysql -DBIG_JOINS=1 -g -Wall -O2 -MT libmyodbc3_la-catalog.lo -MD -MP -MF .deps/libmyodbc3_la-catalog.Tpo -c catalog.c  -fPIC -DPIC -o .libs/libmyodbc3_la-catalog.o
> In file included from ../MYODBC_MYSQL.h:11,
>                  from myodbc3.h:37,
>                  from catalog.c:44:
> /usr/include/mysql/my_global.h:353:24: error: asm/atomic.h: No such file or directory
> make[3]: *** [libmyodbc3_la-catalog.lo] Error 1
> 
> According to kernel upstream[1], asm/atomic.h is not an appropriate header
> for inclusion from userspace; and indeed, on some architectures such as
> i386, libmysqlclient works fine without HAVE_ATOMIC_ADD being defined.
> 
> I suspect that a simple rebuild (i.e., binNMU) of mysql-dfsg-5.0 against
> linux-libc-dev would be enough to fix the symptoms of this bug, but I'm
> filing a sourceful bug report instead for two reasons:
> 
> - not all buildds have linux-libc-dev installed yet, and this won't be
>   enforced for some time, making it difficult to get this issue covered for
>   all archs in a timely manner through binNMUs
> - even if asm/atomic.h is present on the system, it is still an error for
>   libmysqlclient15-dev to depend on it, and this is a bug in the source
>   package which should be fixed by hard-disabling the check.
> 
> Please fix this bug ASAP so that developing against libmysqlclient on
> amd64/unstable works again.
> 
> Thanks,


-- 
Monty Taylor
Senior Consultant
MySQL Inc., www.mysql.com
Get More with MySQL!  www.mysql.com/consulting




More information about the pkg-mysql-maint mailing list