Solaris 10 (x86) does not have strsep (used in sql/sql_show.cc)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona patches |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Compiling on Solaris 10 x86 using gcc fails at sql/sql_show.cc due to lack of strsep on Solaris.
gmake[3]: Entering directory `/home/
/usr/sfw/bin/gcc -DMYSQL_SERVER -DDEFAULT_
sql_show.cc: In function `bool show_status_
sql_show.cc:2295: warning: cast from pointer to integer of different size
sql_show.cc: In function `int fill_schema_
sql_show.cc:2650: error: `strsep' undeclared (first use this function)
sql_show.cc:2650: error: (Each undeclared identifier is reported only once for each function it appears in.)
sql_show.cc: In function `int fill_schema_
sql_show.cc:2693: error: `strsep' undeclared (first use this function)
gmake[3]: *** [sql_show.o] Error 1
gmake[3]: Leaving directory `/home/
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/
gmake: *** [all-recursive] Error 1
Results from google indicate that strsep does not exist on Solaris.
I am chasing a couple of options, if I get something to work I'll post a follow-up with the solution. The most promising seems to be to provide a replacement strsep.
For clarification:
This appears a problem with Solaris 10. It seems OpenSolaris probably has it now (see http:// blogs.sun. com/vlad/ entry/strsep_ in_libc).