Author Topic: FluffOS-2.18 and MySQL - Compile problems  (Read 2070 times)

Offline aziz

  • Acquaintance
  • *
  • Posts: 1
    • View Profile
FluffOS-2.18 and MySQL - Compile problems
« on: January 18, 2010, 02:44:45 PM »
Hey folks.

I run into this little hitch when I try to compile FluffOS with #define PACKAGE_DB and #define USE_MYSQL 2.
Code: [Select]
make[2]: Entering directory `/home/kenneaal/ds2/ds3.0/fluffos-2.18-ds07/packages'
gcc -I../obj -I.. -D__USE_FIXED_PROTOTYPES__ -O2 -o ../obj/dslib.o -c dslib.c
gcc -I../obj -I.. -I/usr/include/mysql -D__USE_FIXED_PROTOTYPES__ -O2 -o ../obj/db.o -c db.c
In file included from db.c:78:
db.h:77: error: expected specifier-qualifier-list before ‚*‚ token
db.c: In function ‚MySQL_cleanup‚:
db.c:603: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:604: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:605: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c: In function ‚MySQL_errormsg‚:
db.c:615: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:615: warning: passing argument 1 of ‚int_string_copy‚ makes pointer from integer without a cast
../macros.h:226: note: expected ‚const char * const‚ but argument is of type ‚int‚
db.c: In function ‚MySQL_close‚:
db.c:620: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:621: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:622: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c: In function ‚MySQL_execute‚:
db.c:629: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:630: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:630: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:631: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:632: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:636: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c: In function ‚MySQL_fetch‚:
db.c:647: error: ‚MYSQL_ROW‚ undeclared (first use in this function)
db.c:647: error: (Each undeclared identifier is reported only once
db.c:647: error: for each function it appears in.)
db.c:647: error: expected ‚;‚ before ‚target_row‚
db.c:650: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:653: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:657: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:663: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:664: error: ‚target_row‚ undeclared (first use in this function)
db.c:664: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:672: error: ‚MYSQL_FIELD‚ undeclared (first use in this function)
db.c:672: error: ‚field‚ undeclared (first use in this function)
db.c:674: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c:677: error: expected expression before ‚)‚ token
db.c:691: error: ‚FIELD_TYPE_TINY‚ undeclared (first use in this function)
db.c:692: error: ‚FIELD_TYPE_SHORT‚ undeclared (first use in this function)
db.c:693: error: ‚FIELD_TYPE_DECIMAL‚ undeclared (first use in this function)
db.c:694: error: ‚FIELD_TYPE_LONG‚ undeclared (first use in this function)
db.c:699: error: ‚FIELD_TYPE_FLOAT‚ undeclared (first use in this function)
db.c:700: error: ‚FIELD_TYPE_DOUBLE‚ undeclared (first use in this function)
db.c:705: error: ‚FIELD_TYPE_TINY_BLOB‚ undeclared (first use in this function)
db.c:706: error: ‚FIELD_TYPE_MEDIUM_BLOB‚ undeclared (first use in this function)
db.c:707: error: ‚FIELD_TYPE_LONG_BLOB‚ undeclared (first use in this function)
db.c:708: error: ‚FIELD_TYPE_BLOB‚ undeclared (first use in this function)
db.c:709: error: ‚FIELD_TYPE_STRING‚ undeclared (first use in this function)
db.c:710: error: ‚FIELD_TYPE_VAR_STRING‚ undeclared (first use in this function)
db.c:711: error: ‚BINARY_FLAG‚ undeclared (first use in this function)
db.c:738: error: ‚struct tmp_mysql‚ has no member named ‚results‚
db.c: In function ‚MySQL_connect‚:
db.c:749: error: ‚tmp‚ undeclared (first use in this function)
db.c:751: error: expected expression before ‚)‚ token
db.c:754: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:756: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:757: warning: passing argument 2 of ‚strncpy‚ makes pointer from integer without a cast
/usr/include/bits/string3.h:119: note: expected ‚const char * __restrict__‚ but argument is of type ‚int‚
db.c:763: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:765: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:765: warning: passing argument 2 of ‚strncpy‚ makes pointer from integer without a cast
/usr/include/bits/string3.h:119: note: expected ‚const char * __restrict__‚ but argument is of type ‚int‚
db.c:767: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:768: error: ‚struct tmp_mysql‚ has no member named ‚handle‚
db.c:773: error: ‚struct tmp_mysql‚ has no member named ‚results‚
make[2]: *** [../obj/db.o] Error 1
make[2]: Leaving directory `/home/kenneaal/ds2/ds3.0/fluffos-2.18-ds07/packages'
make[1]: *** [packages/packages.a] Error 2
make[1]: Leaving directory `/home/kenneaal/ds2/ds3.0/fluffos-2.18-ds07'
make: *** [main_build] Error 2
kenneaal@odin:~/ds2/ds3.0/fluffos-2.18-ds07$

Changed portion of local_options
Code: [Select]
/* If PACKAGE_DB is defined above, you must pick ONE of the following supported
 * databases
 */
#ifdef PACKAGE_DB
#undef USE_MSQL
#undef MSQL
#define USE_MYSQL 2
#define MY_SQL
#endif

MySQL 5.0.83, headers in /usr/include/mysql and client libraries installed in /usr/lib/mysql.

Halp?
« Last Edit: January 18, 2010, 02:48:56 PM by aziz »