When building databases/py3-mysqlclient via poudriere I get this error. I am building with mariadb 10.2 instead of mysql, if that makes a difference. make.conf settings: DEFAULT_VERSIONS+=bdb=5 perl5=5.24 pgsql=10 php=7.1 python=3.6 mysql=10.2m =======================<phase: build >============================ ===> Building for py36-mysqlclient-1.3.8 running build running build_py creating build creating build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6 copying _mysql_exceptions.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6 creating build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb copying MySQLdb/__init__.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb copying MySQLdb/compat.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb copying MySQLdb/converters.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb copying MySQLdb/connections.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb copying MySQLdb/cursors.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb copying MySQLdb/release.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb copying MySQLdb/times.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb creating build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants copying MySQLdb/constants/REFRESH.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.freebsd-11.1-RELEASE-p1-amd64-3.6/MySQLdb/constants running build_ext building '_mysql' extension creating build/temp.freebsd-11.1-RELEASE-p1-amd64-3.6 cc -DNDEBUG -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -Dversion_info=(1,3,8,'final',1) -D__version__=1.3.8 -I/usr/local/include/mysql -I/usr/local/include/mysql/.. -I/usr/local/include/python3.6m -c _mysql.c -o build/temp.freebsd-11.1-RELEASE-p1-amd64-3.6/_mysql.o _mysql.c:29:10: fatal error: 'my_config.h' file not found #include "my_config.h" ^~~~~~~~~~~~~ 1 error generated. error: command 'cc' failed with exit status 1 *** Error code 1 Stop. make: stopped in /usr/ports/databases/py3-mysqlclient ====>> Cleaning up wrkdir ===> Cleaning for py36-mysqlclient-1.3.8 build of databases/py3-mysqlclient ended at Thu Oct 12 14:06:02 CDT 2017 build time: 00:00:12 !!! build failure encountered !!!
I also got the same error on my part. I have a patch to update databases/py-mysqlclient to 1.3.12 and fix this error in bug 222983.
This was actually a problem with databases/mariadb102*. The update to version 10.2.9 removed headers that are required by other ports, one of which being my_config.h. r452143 should fix this issue.
Correct resolution (duplicate) *** This bug has been marked as a duplicate of bug 222825 ***
Assign to resolver of duplicated issue
Actually, scratch that. Depend on the resolved (root cause) issue instead. This issue should be closed when bug 222825 is closed/confirmed
After trying to build again with the latest updates to mariadb 10.2 I'm now getting a new build error. Should I start a new report or post it here?
Is this still relevant?