Bug 1896 - Problems compiling with mysql support
Problems compiling with mysql support
Product: Samba 3.0
Classification: Unclassified
Component: winbind
All Linux
: P3 normal
: none
Assigned To: Jelmer Vernooij
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-10-08 18:52 UTC by Jonathan Will
Modified: 2005-04-30 08:09 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Will 2004-10-08 18:52:45 UTC
I compiled it, with no extra configure arguments, and it worked.

When i used : ./configure --with-mysql-prefix=/usr/local/mysql --with-mysql-
exec-prefix=/usr/local/mysql --with-expsam=mysql

I got the following error:
Compiling nsswitch/wb_common.c
nsswitch/wb_common.c: In function `winbind_named_pipe_sock':
nsswitch/wb_common.c:172: error: storage size of `sunaddr' isn't known
make: *** [nsswitch/wb_common.o] Error 1

The Fix: 
  I added:
    #include <sys/un.h> 
    to the top of nsswitch/wb_common.c, and it got past that area

The next bug:
Compiling passdb/pdb_mysql.c with -fPIC
passdb/pdb_mysql.c:21:50: mysql/mysql.h: No such file or directory
passdb/pdb_mysql.c:35: error: parse error before "MYSQL"

The fix:
  I changed the path to full reference : /usr/local/mysql/include/mysql.h

Comment 1 Jelmer Vernooij 2005-01-17 07:30:50 UTC
Can you please post your config.log?
Comment 2 Jelmer Vernooij 2005-04-30 08:09:03 UTC
No reaction on request for additional data from original poster, closing bugreport.