www# cd /usr/ports/distfiles/proftpd-1.2.10/
www# ./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-includes=/usr/local/psa/mysql/include/mysql --with-libraries=/usr/local/psa/mysql/lib/mysql
www# make
cd lib/ && make lib
cd src/ && make src
cd modules/ && make modules
gcc -Llib -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/regexp.o src/dirtree.o src/support.o src/netaddr.o src/inet.o src/child.o src/log.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/response.o src/ident.o src/data.o src/modules.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_auth_pam.o modules/mod_quotatab_sql.o modules/mod_quotatab.o modules/mod_sql_mysql.o modules/mod_sql.o modules/module_glue.o -L/usr/local/psa/mysql/lib/mysql -lsupp -lcrypt -lutil -lm -lz -lmysqlclient -lpam
/usr/local/psa/mysql/lib/mysql/libmysqlclient.a(getopt.o)(.data+0x4): multiple definition of `optind'
lib/libsupp.a(getopt.o)(.data+0x0): first defined here
/usr/local/psa/mysql/lib/mysql/libmysqlclient.a(getopt.o)(.data+0x8): multiple definition of `opterr'
lib/libsupp.a(getopt.o)(.data+0x4): first defined here
/usr/local/psa/mysql/lib/mysql/libmysqlclient.a(getopt.o)(.data+0xc): multiple definition of `optopt'
lib/libsupp.a(getopt.o)(.data+0x8): first defined here
/usr/local/psa/mysql/lib/mysql/libmysqlclient.a(getopt.o): In function `_getopt_internal':
getopt.o(.text+0x0): multiple definition of `_getopt_internal'
lib/libsupp.a(getopt.o)(.text+0x174): first defined here
/usr/libexec/elf/ld: Warning: size of symbol `_getopt_internal' changed from 2406 to 2427 in /usr/local/psa/mysql/lib/mysql/libmysqlclient.a(getopt.o)
/usr/local/psa/mysql/lib/mysql/libmysqlclient.a(getopt.o): In function `getopt':
getopt.o(.text+0x97c): multiple definition of `getopt'
lib/libsupp.a(getopt.o)(.text+0xadc): first defined here
/usr/libexec/elf/ld: Warning: size of symbol `getopt' changed from 31 to 39 in /usr/local/psa/mysql/lib/mysql/libmysqlclient.a(getopt.o)
*** Error code 1
Stop in /usr/ports/distfiles/proftpd-1.2.10.
www# |