Home › Forums › OS X Server and Client Discussion › Questions and Answers › ProFTPD with mod_sql: compile error
- This topic has 4 replies, 3 voices, and was last updated 22 years, 6 months ago by
Anonymous.
-
AuthorPosts
-
April 23, 2003 at 9:56 am #355519
Anonymous
ParticipantHi all,
Trying to compile ProFTPD with mod_sql according to [url]https://www.afp548.com/Articles/Jaguar/proftpd.html[/url]. I like to use MySQL for authentication. But got an error:
gcc -DDARWIN6_5 -DDARWIN6 -I.. -I../include -I/usr/local/include -O2 -Wall -Wno-long-double -c mod_log.c
gcc -DDARWIN6_5 -DDARWIN6 -I.. -I../include -I/usr/local/include -O2 -Wall -Wno-long-double -c mod_site.c
gcc -DDARWIN6_5 -DDARWIN6 -I.. -I../include -I/usr/local/include -O2 -Wall -Wno-long-double -c mod_auth_pam.c
gcc -DDARWIN6_5 -DDARWIN6 -I.. -I../include -I/usr/local/include -O2 -Wall -Wno-long-double -c mod_sql.c
mod_sql.c:47: header file ‘fs.h’ not found
mod_sql.c:106: undefined type, found `response_t’
mod_sql.c:1357: undefined type, found `response_t’
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[1]: *** [mod_sql.o] Error 1
make: *** [modules] Error 2[b]Anyone got any idea’s. Using Jaguar 10.2.5, DevTools July 2002
April 27, 2003 at 7:56 am #355530Lukas
ParticipantHi!
Version 1.28 of ProFTPd is out. I tried this one without downloading mod_msql (i.e. using the one enclosed with the source) and everything went well.
Lukas
November 12, 2003 at 4:42 am #356818brossow
Participant[quote:37d1ce9a0b=”Lukas”]Hi!
Version 1.28 of ProFTPd is out. I tried this one without downloading mod_msql (i.e. using the one enclosed with the source) and everything went well.
Lukas[/quote:37d1ce9a0b]
Just tried this with 1.2.9 on my server (running OSXS 10.2.8 and latest dev tools) and ‘make’ dies with the following:
[code:1:37d1ce9a0b]mod_sql_mysql.c:137: header file ‘mysql.h’ not found
mod_sql_mysql.c:164: undefined type, found `MYSQL’
mod_sql_mysql.c:344: undefined type, found `MYSQL’
mod_sql_mysql.c:345: undefined type, found `MYSQL_RES’
mod_sql_mysql.c:346: undefined type, found `MYSQL_ROW’
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[1]: *** [mod_sql_mysql.o] Error 1
make: *** [modules] Error 2[/code:1:37d1ce9a0b]Anyone have any luck? I installed 1.2.7 about a year ago and don’t recall having any problems, but this upgrade to 1.2.9 is going nowhere.
November 12, 2003 at 5:08 am #356819brossow
ParticipantI solved the problem on my system by using the following configure command:
[code:1:385416a0c6]./configure –with-modules=mod_sql:mod_sql_mysql –with-includes=/usr/include/mysql –with-libraries=/usr/lib/mysql[/code:1:385416a0c6]
The command suggested in the article on this site doesn’t point to the correct includes location, at least on my system. *shrug* Posting this in the hope that it helps someone else. 🙂
December 2, 2003 at 10:03 pm #357004Anonymous
ParticipantThis is just what I think. I am NOT proficient in this area.
If you are like me, you probably installed your mySql with the new packaged installer.
If you did this, the installer is “kind” enough to keep mysql in a compact single location. So to use this you must use the following:
./configure –with-modules=mod_sql:mod_sql_mysql –with-includes=/usr/local/mysql/include –with-libraries=/usr/local/mysql/lib
I tried the configure in the article and the one suggested above, neither worked for me. This one did!
I also used the mod_sql that came with proftpd 1.2.9 (included in 1.2.8+), that worked when the downloaded one didn’t.
I don’t know if it is right, but it did work. If anyone knows why this may be wrong PLEASE let me know, otherwise this is the solution that worked for me.
Hope this helps,
David Kassa
[email protected] -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed