Opened 6 years ago

Closed 3 years ago

#10465 closed defect (moved_to_github)

Mysql missing crypt.h

Reported by: slarew@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Backfire 10.03.1 RC6
Keywords: mysql Cc:


I did a fresh checkout of the packages feed today and found that there was a bug when attempting to compile mysql. It complains that crypt.h could not be found:

make package/feeds/packages/mysql/compile V=99
make  -C "/Volumes/OpenWRT/backfire_10.03.1-RC6/build_dir/target-mips_r2_uClibc-" CC="g++" CFLAGS="-O2 -I/Volumes/OpenWRT/backfire_10.03.1-RC6/staging_dir/host/include" CPPFLAGS="-O2 -I/Volumes/OpenWRT/backfire_10.03.1-RC6/staging_dir/host/include" LDFLAGS="-L/Volumes/OpenWRT/backfire_10.03.1-RC6/staging_dir/host/lib" conf_to_src
g++ -DDEFAULT_CHARSET_HOME="\"/usr\"" -DMYSQL_DATADIR="\"/var\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/etc\"" -DSHAREDIR="\"/usr/share/mysql\"" -DMYSQL_CLIENT_NO_THREADS -DDONT_USE_RAID  -I. -I../include -I../include -I../include    -O2 -I/Volumes/OpenWRT/backfire_10.03.1-RC6/staging_dir/host/include  -O2 -I/Volumes/OpenWRT/backfire_10.03.1-RC6/staging_dir/host/include -MT conf_to_src.o -MD -MP -MF .deps/conf_to_src.Tpo -c -o conf_to_src.o conf_to_src.c
In file included from conf_to_src.c:23:
../include/my_global.h:468:19: error: crypt.h: No such file or directory
../include/my_global.h:894:1: warning: "isnan" redefined
In file included from /usr/include/math.h:28,
                 from ../include/my_global.h:424,
                 from conf_to_src.c:23:
/usr/include/architecture/i386/math.h:153:1: warning: this is the location of the previous definition
make[3]: *** [conf_to_src.o] Error 1
make[2]: *** [/Volumes/OpenWRT/backfire_10.03.1-RC6/build_dir/target-mips_r2_uClibc-] Error 2
make[2]: Leaving directory `/Volumes/OpenWRT/backfire_10.03.1-RC6/feeds/packages/libs/mysql'
make[1]: *** [package/feeds/packages/mysql/compile] Error 2
make[1]: Leaving directory `/Volumes/OpenWRT/backfire_10.03.1-RC6'
make: *** [package/feeds/packages/mysql/compile] Error 2

It would appear that, at least on my system (OS X 10.7, Xcode 4.2.1), commenting out the #include <crypt.h> line in include/my_global.h fixes the problem. However, I suspect this would break the build on other systems? I have attached the patch I made to make mysql compile but I have only tested that this works on my system.

For your reference, I was using branches/packages_10.03.1/libs/mysql/ at revision 29254.

Attachments (1)

550-fix_crypt_h_include.patch (295 bytes) - added by slarew@… 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by slarew@…

comment:1 Changed 5 years ago by Stephan Guhl

I have the same with OSX 10.8.2, xcode 4.5.2 and openwrt trunk 34122, so all recent
versions of software. Was that patch included in trunk?
Best regards,

comment:2 Changed 5 years ago by mefdada@…

I am having the same issue trying to compile Openwrt sources for Carambola2 ( )

I'm on OSX 10.8.3 but I'm getting a whole bunch more errors than just the missing crypt. Make is also complaining
"error: 'ulong' has not been declared"
in various files.

how can i rectify this?

Any help would be greatly appreciated!

comment:3 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

comment:4 Changed 3 years ago by jogo

  • Resolution set to moved_to_github
  • Status changed from new to closed

mysql has been moved to If this is still an issue, please open a ticket there.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.