PKGSRC Packages - Known Issues
This page should list issues encountered when building particular packages using PKGSRC on Solaris and the needed workarounds. Always make note of the exact package versions.
databases/mysql5-client
Problem: The following:
ld: fatal: symbol `my_long_options' in file mysqltest.o: section [3] .data: size 4616: symbol (address 0x10a0, size 2880) lies outside of containing section ld: fatal: File processing errors. No output written to .libs/mysqltest collect2: ld returned 1 exit status gmake[2]: *** [mysqltest] Error 1 gmake[2]: Leaving directory `/opt/pkgsrc/databases/mysql5-client/work/mysql-5.0.45/client' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/opt/pkgsrc/databases/mysql5-client/work/mysql-5.0.45' gmake: *** [all] Error 2 *** Error code 2 Stop. bmake: stopped in /opt/pkgsrc/databases/mysql5-client *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/databases/mysql5-client
Fix:
Download this file to your Accelerator (current directory, doesn’t matter), then run:
ksh -f values.c
mail/php-imap
Problem: The configure part ends with
checking for U8T_CANONICAL... no configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
Workaround:
cp ../imap-uw/work/imap-2006j/c-client/dummy.h ./work/.buildlink/include/c-client/
Assumes you have not run ‘bmake clean’ on mail/imap-uw yet, and are in the package directory of mail/php-imap.
git
Installing git doesn’t work out of the box. It depends on tk, which seems to want X stuff installed, but X ain’t installed on the accelerators. Boo!
Also, you might get this error:
/usr/include/sys/feature_tests.h:353:2: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
If so, edit the Makefile and comment out the LANGUAGE=c99 bit. Then do a bmake clean && bmake.
I’m (Joe Van Dyk) am working on getting a version of pkgsrc available via git that has these problems fixed. See http://forum.textdrive.com/viewtopic.php?id=17568 for details.
ffmpeg
There’s various problems with this package. Not sure what to do.
databases/sqlite
Problem - building fails with
[...] gcc -O -DUINT32_TYPE=u_int32_t -DUINT16_TYPE=u_int16_t -DINTPTR_TYPE=long -I/root/pkgsrc/databases/sqlite/work/.buildlink/include -DOS_UNIX=1 -DOS_WIN=0 -DHAVE_USLEEP=1 -I. -I../sqlite-2.8.16/src -Ino/generic -Ino/unix -c ../sqlite-2.8.16/src/attach.c -fPIC -DPIC -o .libs/attach.o In file included from ../sqlite-2.8.16/src/attach.c:16: ../sqlite-2.8.16/src/sqliteInt.h:122: error: syntax error before "u32" ../sqlite-2.8.16/src/sqliteInt.h:122: warning: data definition has no type or storage class ../sqlite-2.8.16/src/sqliteInt.h:123: error: syntax error before "u16" ../sqlite-2.8.16/src/sqliteInt.h:123: warning: data definition has no type or storage class In file included from ../sqlite-2.8.16/src/attach.c:16: ../sqlite-2.8.16/src/sqliteInt.h:270: error: syntax error before "u16" ../sqlite-2.8.16/src/sqliteInt.h:270: warning: no semicolon at end of struct or union ../sqlite-2.8.16/src/sqliteInt.h:273: error: syntax error before '}' token ../sqlite-2.8.16/src/sqliteInt.h:348: error: field `aDbStatic' has incomplete type [...]
Solution - edit Makefile and replace this:
CFLAGS+= -DUINT32_TYPE=u_int32_t -DUINT16_TYPE=u_int16_t \
-DUINT8_TYPE=u_int8_t -DINTPTR_TYPE=long
with
CFLAGS+= -DINTPTR_TYPE=long