Just install mysql-dev or something because of
"handler_dbslayer.h:34:19: error: mysql.h: No such file or directory"

What distro is it?

Pozdrawiam
Jędrzej Nowak



On Wed, Jan 19, 2011 at 10:50 PM, Anders Omar Bocanegra Mendoza
<[email protected]> wrote:
> This is the error in my installation:
>
>
> libtool: link: /usr/bin/nm -B  .libs/handler_error_redir.o   | sed -n -e
> 's/^.*[       ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[  ][
> ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed
> 's/.* //' | sort | uniq > .libs/libplugin_error_redir.exp
> libtool: link: /bin/grep -E -e "^[^_].*" ".libs/libplugin_error_redir.exp" >
> ".libs/libplugin_error_redir.expT"
> libtool: link: mv -f ".libs/libplugin_error_redir.expT"
> ".libs/libplugin_error_redir.exp"
> libtool: link: echo "{ global:" > .libs/libplugin_error_redir.ver
> libtool: link:  cat .libs/libplugin_error_redir.exp | sed -e "s/\(.*\)/\1;/"
>>> .libs/libplugin_error_redir.ver
> libtool: link:  echo "local: *; };" >> .libs/libplugin_error_redir.ver
> libtool: link:  gcc -shared  -fPIC -DPIC  .libs/handler_error_redir.o
> -lcrypto -ldl  -O2   -Wl,-soname -Wl,libplugin_error_redir.so
> -Wl,-version-script -Wl,.libs/libplugin_error_redir.ver -o
> .libs/libplugin_error_redir.so
> libtool: link: ar cru .libs/libplugin_error_redir.a  handler_error_redir.o
> libtool: link: ranlib .libs/libplugin_error_redir.a
> libtool: link: ( cd ".libs" && rm -f "libplugin_error_redir.la" && ln -s
> "../libplugin_error_redir.la" "libplugin_error_redir.la" )
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H
> -I. -I.. -I.. -D_REENTRANT    -g -O2 -MT levenshtein_distance.lo -MD -MP -MF
> .deps/levenshtein_distance.Tpo -c -o levenshtein_distance.lo
> levenshtein_distance.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT
> -g -O2 -MT levenshtein_distance.lo -MD -MP -MF
> .deps/levenshtein_distance.Tpo -c levenshtein_distance.c  -fPIC -DPIC -o
> .libs/levenshtein_distance.o
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT
> -g -O2 -MT levenshtein_distance.lo -MD -MP -MF
> .deps/levenshtein_distance.Tpo -c levenshtein_distance.c -o
> levenshtein_distance.o >/dev/null 2>&1
> mv -f .deps/levenshtein_distance.Tpo .deps/levenshtein_distance.Plo
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H
> -I. -I.. -I.. -D_REENTRANT    -g -O2 -MT handler_error_nn.lo -MD -MP -MF
> .deps/handler_error_nn.Tpo -c -o handler_error_nn.lo handler_error_nn.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT
> -g -O2 -MT handler_error_nn.lo -MD -MP -MF .deps/handler_error_nn.Tpo -c
> handler_error_nn.c  -fPIC -DPIC -o .libs/handler_error_nn.o
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT
> -g -O2 -MT handler_error_nn.lo -MD -MP -MF .deps/handler_error_nn.Tpo -c
> handler_error_nn.c -o handler_error_nn.o >/dev/null 2>&1
> mv -f .deps/handler_error_nn.Tpo .deps/handler_error_nn.Plo
> /bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99  -g -O2
> -export-symbols-regex "^[^_].*" -module -avoid-version -export-dynamic   -o
> libplugin_error_nn.la -rpath "/usr/lib/cherokee" levenshtein_distance.lo
> handler_error_nn.lo  -lcrypto  -ldl
> libtool: link: /usr/bin/nm -B  .libs/levenshtein_distance.o
> .libs/handler_error_nn.o   | sed -n -e 's/^.*[
> ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][
> ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed
> 's/.* //' | sort | uniq > .libs/libplugin_error_nn.exp
> libtool: link: /bin/grep -E -e "^[^_].*" ".libs/libplugin_error_nn.exp" >
> ".libs/libplugin_error_nn.expT"
> libtool: link: mv -f ".libs/libplugin_error_nn.expT"
> ".libs/libplugin_error_nn.exp"
> libtool: link: echo "{ global:" > .libs/libplugin_error_nn.ver
> libtool: link:  cat .libs/libplugin_error_nn.exp | sed -e "s/\(.*\)/\1;/" >>
> .libs/libplugin_error_nn.ver
> libtool: link:  echo "local: *; };" >> .libs/libplugin_error_nn.ver
> libtool: link:  gcc -shared  -fPIC -DPIC  .libs/levenshtein_distance.o
> .libs/handler_error_nn.o   -lcrypto -ldl  -O2   -Wl,-soname
> -Wl,libplugin_error_nn.so -Wl,-version-script
> -Wl,.libs/libplugin_error_nn.ver -o .libs/libplugin_error_nn.so
> libtool: link: ar cru .libs/libplugin_error_nn.a  levenshtein_distance.o
> handler_error_nn.o
> libtool: link: ranlib .libs/libplugin_error_nn.a
> libtool: link: ( cd ".libs" && rm -f "libplugin_error_nn.la" && ln -s
> "../libplugin_error_nn.la" "libplugin_error_nn.la" )
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H
> -I. -I.. -I.. -D_REENTRANT    -g -O2 -MT handler_common.lo -MD -MP -MF
> .deps/handler_common.Tpo -c -o handler_common.lo handler_common.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT
> -g -O2 -MT handler_common.lo -MD -MP -MF .deps/handler_common.Tpo -c
> handler_common.c  -fPIC -DPIC -o .libs/handler_common.o
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT
> -g -O2 -MT handler_common.lo -MD -MP -MF .deps/handler_common.Tpo -c
> handler_common.c -o handler_common.o >/dev/null 2>&1
> mv -f .deps/handler_common.Tpo .deps/handler_common.Plo
> /bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99  -g -O2
> -export-symbols-regex "^[^_].*" -module -avoid-version -export-dynamic    -o
> libplugin_common.la -rpath "/usr/lib/cherokee" handler_common.lo  -lcrypto
> -ldl
> libtool: link: /usr/bin/nm -B  .libs/handler_common.o   | sed -n -e
> 's/^.*[      ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[        ][
> ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed
> 's/.* //' | sort | uniq > .libs/libplugin_common.exp
> libtool: link: /bin/grep -E -e "^[^_].*" ".libs/libplugin_common.exp" >
> ".libs/libplugin_common.expT"
> libtool: link: mv -f ".libs/libplugin_common.expT"
> ".libs/libplugin_common.exp"
> libtool: link: echo "{ global:" > .libs/libplugin_common.ver
> libtool: link:  cat .libs/libplugin_common.exp | sed -e "s/\(.*\)/\1;/" >>
> .libs/libplugin_common.ver
> libtool: link:  echo "local: *; };" >> .libs/libplugin_common.ver
> libtool: link:  gcc -shared  -fPIC -DPIC  .libs/handler_common.o   -lcrypto
> -ldl  -O2   -Wl,-soname -Wl,libplugin_common.so -Wl,-version-script
> -Wl,.libs/libplugin_common.ver -o .libs/libplugin_common.so
> libtool: link: ar cru .libs/libplugin_common.a  handler_common.o
> libtool: link: ranlib .libs/libplugin_common.a
> libtool: link: ( cd ".libs" && rm -f "libplugin_common.la" && ln -s
> "../libplugin_common.la" "libplugin_common.la" )
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H
> -I. -I.. -I.. -D_REENTRANT   -I/usr/include/mysql  -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 -MT
> libplugin_dbslayer_la-handler_dbslayer.lo -MD -MP -MF
> .deps/libplugin_dbslayer_la-handler_dbslayer.Tpo -c -o
> libplugin_dbslayer_la-handler_dbslayer.lo `test -f 'handler_dbslayer.c' ||
> echo './'`handler_dbslayer.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT
> -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g
> -O2 -MT libplugin_dbslayer_la-handler_dbslayer.lo -MD -MP -MF
> .deps/libplugin_dbslayer_la-handler_dbslayer.Tpo -c handler_dbslayer.c
> -fPIC -DPIC -o .libs/libplugin_dbslayer_la-handler_dbslayer.o
> In file included from handler_dbslayer.c:26:
> handler_dbslayer.h:34:19: error: mysql.h: No such file or directory
> In file included from handler_dbslayer.c:26:
> handler_dbslayer.h:49: error: expected specifier-qualifier-list before
> 'MYSQL'
> handler_dbslayer.c: In function 'connect_to_database':
> handler_dbslayer.c:49: error: 'MYSQL' undeclared (first use in this
> function)
> handler_dbslayer.c:49: error: (Each undeclared identifier is reported only
> once
> handler_dbslayer.c:49: error: for each function it appears in.)
> handler_dbslayer.c:49: error: 'conn' undeclared (first use in this function)
> handler_dbslayer.c:53: warning: implicit declaration of function
> 'mysql_real_connect'
> handler_dbslayer.c:53: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c:60: error: 'CLIENT_MULTI_STATEMENTS' undeclared (first
> use in this function)
> handler_dbslayer.c:60: error: 'CLIENT_MULTI_RESULTS' undeclared (first use
> in this function)
> handler_dbslayer.c: In function 'send_query':
> handler_dbslayer.c:98: warning: implicit declaration of function
> 'mysql_real_query'
> handler_dbslayer.c:98: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c: In function 'cherokee_client_headers':
> handler_dbslayer.c:121: error: 'cherokee_handler_dbslayer_t' has no member
> named 'rollback'
> handler_dbslayer.c: In function 'handle_error':
> handler_dbslayer.c:136: warning: implicit declaration of function
> 'mysql_errno'
> handler_dbslayer.c:136: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c:138: warning: implicit declaration of function
> 'mysql_error'
> handler_dbslayer.c:138: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c:138: warning: cast to pointer from integer of different
> size
> handler_dbslayer.c:143: error: 'cherokee_handler_dbslayer_t' has no member
> named 'rollback'
> handler_dbslayer.c:144: warning: implicit declaration of function
> 'mysql_rollback'
> handler_dbslayer.c:144: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c: In function 'render_empty_result':
> handler_dbslayer.c:221: warning: implicit declaration of function
> 'mysql_affected_rows'
> handler_dbslayer.c:221: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c:222: warning: implicit declaration of function
> 'mysql_insert_id'
> handler_dbslayer.c:222: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c: At top level:
> handler_dbslayer.c:230: error: expected declaration specifiers or '...'
> before 'MYSQL_RES'
> handler_dbslayer.c: In function 'render_result':
> handler_dbslayer.c:234: error: 'MYSQL_ROW' undeclared (first use in this
> function)
> handler_dbslayer.c:234: error: expected ';' before 'row'
> handler_dbslayer.c:235: error: 'MYSQL_FIELD' undeclared (first use in this
> function)
> handler_dbslayer.c:235: error: 'fields' undeclared (first use in this
> function)
> handler_dbslayer.c:266: warning: implicit declaration of function
> 'mysql_num_fields'
> handler_dbslayer.c:266: error: 'result' undeclared (first use in this
> function)
> handler_dbslayer.c:267: warning: implicit declaration of function
> 'mysql_fetch_fields'
> handler_dbslayer.c:276: error: 'MYSQL_TYPE_TINY' undeclared (first use in
> this function)
> handler_dbslayer.c:277: error: 'MYSQL_TYPE_SHORT' undeclared (first use in
> this function)
> handler_dbslayer.c:278: error: 'MYSQL_TYPE_LONG' undeclared (first use in
> this function)
> handler_dbslayer.c:279: error: 'MYSQL_TYPE_INT24' undeclared (first use in
> this function)
> handler_dbslayer.c:280: error: 'MYSQL_TYPE_DECIMAL' undeclared (first use in
> this function)
> handler_dbslayer.c:281: error: 'MYSQL_TYPE_NEWDECIMAL' undeclared (first use
> in this function)
> handler_dbslayer.c:282: error: 'MYSQL_TYPE_DOUBLE' undeclared (first use in
> this function)
> handler_dbslayer.c:283: error: 'MYSQL_TYPE_FLOAT' undeclared (first use in
> this function)
> handler_dbslayer.c:284: error: 'MYSQL_TYPE_LONGLONG' undeclared (first use
> in this function)
> handler_dbslayer.c:285: error: 'MYSQL_TYPE_BIT' undeclared (first use in
> this function)
> handler_dbslayer.c:286: error: 'MYSQL_TYPE_TIMESTAMP' undeclared (first use
> in this function)
> handler_dbslayer.c:287: error: 'MYSQL_TYPE_DATE' undeclared (first use in
> this function)
> handler_dbslayer.c:288: error: 'MYSQL_TYPE_TIME' undeclared (first use in
> this function)
> handler_dbslayer.c:289: error: 'MYSQL_TYPE_DATETIME' undeclared (first use
> in this function)
> handler_dbslayer.c:290: error: 'MYSQL_TYPE_YEAR' undeclared (first use in
> this function)
> handler_dbslayer.c:291: error: 'MYSQL_TYPE_STRING' undeclared (first use in
> this function)
> handler_dbslayer.c:292: error: 'MYSQL_TYPE_VAR_STRING' undeclared (first use
> in this function)
> handler_dbslayer.c:293: error: 'MYSQL_TYPE_NEWDATE' undeclared (first use in
> this function)
> handler_dbslayer.c:294: error: 'MYSQL_TYPE_VARCHAR' undeclared (first use in
> this function)
> handler_dbslayer.c:295: error: 'MYSQL_TYPE_SET' undeclared (first use in
> this function)
> handler_dbslayer.c:296: error: 'MYSQL_TYPE_ENUM' undeclared (first use in
> this function)
> handler_dbslayer.c:297: error: 'MYSQL_TYPE_GEOMETRY' undeclared (first use
> in this function)
> handler_dbslayer.c:298: error: 'MYSQL_TYPE_NULL' undeclared (first use in
> this function)
> handler_dbslayer.c:299: error: 'MYSQL_TYPE_BLOB' undeclared (first use in
> this function)
> handler_dbslayer.c:300: error: 'MYSQL_TYPE_TINY_BLOB' undeclared (first use
> in this function)
> handler_dbslayer.c:301: error: 'MYSQL_TYPE_MEDIUM_BLOB' undeclared (first
> use in this function)
> handler_dbslayer.c:302: error: 'MYSQL_TYPE_LONG_BLOB' undeclared (first use
> in this function)
> handler_dbslayer.c:325: error: 'row' undeclared (first use in this function)
> handler_dbslayer.c:325: warning: implicit declaration of function
> 'mysql_fetch_row'
> handler_dbslayer.c: In function 'dbslayer_step':
> handler_dbslayer.c:398: error: 'MYSQL_RES' undeclared (first use in this
> function)
> handler_dbslayer.c:398: error: 'result' undeclared (first use in this
> function)
> handler_dbslayer.c:408: warning: implicit declaration of function
> 'mysql_store_result'
> handler_dbslayer.c:408: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c:414: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c:421: error: too many arguments to function
> 'render_result'
> handler_dbslayer.c:422: warning: implicit declaration of function
> 'mysql_free_result'
> handler_dbslayer.c:425: warning: implicit declaration of function
> 'mysql_next_result'
> handler_dbslayer.c:425: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c: In function 'dbslayer_free':
> handler_dbslayer.c:441: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c:442: warning: implicit declaration of function
> 'mysql_close'
> handler_dbslayer.c:442: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c: In function 'cherokee_handler_dbslayer_new':
> handler_dbslayer.c:471: error: 'cherokee_handler_dbslayer_t' has no member
> named 'rollback'
> handler_dbslayer.c:474: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> handler_dbslayer.c:474: warning: implicit declaration of function
> 'mysql_init'
> handler_dbslayer.c:475: error: 'cherokee_handler_dbslayer_t' has no member
> named 'conn'
> make[3]: *** [libplugin_dbslayer_la-handler_dbslayer.lo] Error 1
> make[3]: Leaving directory `/tmp/cherokee-1.0.18/cherokee'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/tmp/cherokee-1.0.18/cherokee'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/cherokee-1.0.18'
> make: *** [all] Error 2
>
>
> _______________________________________________
> Cherokee mailing list
> [email protected]
> http://lists.octality.com/listinfo/cherokee
>
>
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to