想請問修改ports底下的source之後 Makefile的寫法 - BBS
By Joe
at 2007-10-24T22:52
at 2007-10-24T22:52
Table of Contents
我手動將proftpd的iconv patch,加到source中相對應的地方
主要的變動是在/usr/ports/ftp/proftpd/work/proftpd-1.3.1/modules底下
多了mod_codeconv.c 和 mod_df.c
現在遇到的問題,是在編譯的時候,會找不到patch中新加入的function
(undefine reference to XXX... )
我嘗試去改/usr/ports/ftp/proftpd/Makefile 但不能解決
似乎還要去改/usr/ports/ftp/proftpd/work/proftpd-1.3.1/modules/Makefile
不知道有沒有對Makefile比較熟的能指點一下?
--
下面是錯誤訊息
test -z """" || (cd locale/ && gmake locale)
/bin/sh ./libtool --mode=link gcc -L./lib -o proftpd src/main.o
src/timers.o src/sets.o src/pool.o src/table.o src/regexp.o src/dirtree.o
src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o
src/lastlog.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/display.o src/auth.o src/fsio.o src/mkhome.o
src/ctrls.o src/event.o src/var.o src/trace.o src/utf8.o src/proctitle.o
src/pidfile.o src/env.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_delay.o
modules/mod_auth_pam.o modules/module_glue.o modules/mod_codeconv.o
modules/mod_ls.o -lpam -lsupp -lcrypt -lutil
gcc -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/table.o
src/regexp.o src/dirtree.o src/support.o src/netaddr.o src/inet.o src/child.o
src/parser.o src/log.o src/lastlog.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/display.o src/auth.o
src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o src/trace.o
src/utf8.o src/proctitle.o src/pidfile.o src/env.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_delay.o modules/mod_auth_pam.o modules/module_glue.o
modules/mod_codeconv.o modules/mod_ls.o
-L/usr/ports/ftp/proftpd/work/proftpd-1.3.1/lib -lpam -lsupp -lcrypt -lutil
modules/mod_ls.o(.data+0x0): multiple definition of `ls_module'
modules/mod_ls.o(.data+0x0): first defined here
modules/mod_codeconv.o(.text+0x73): In function `remote2local':
: undefined reference to `libiconv_open'
modules/mod_codeconv.o(.text+0x94): In function `remote2local':
: undefined reference to `libiconv'
modules/mod_codeconv.o(.text+0xe6): In function `remote2local':
: undefined reference to `libiconv'
modules/mod_codeconv.o(.text+0x102): In function `remote2local':
: undefined reference to `libiconv_close'
modules/mod_codeconv.o(.text+0x194): In function `local2remote':
: undefined reference to `libiconv_open'
modules/mod_codeconv.o(.text+0x1b5): In function `local2remote':
: undefined reference to `libiconv'
modules/mod_codeconv.o(.text+0x20a): In function `local2remote':
: undefined reference to `libiconv'
modules/mod_codeconv.o(.text+0x226): In function `local2remote':
: undefined reference to `libiconv_close'
gmake: *** [proftpd] Error 1
*** Error code 2
Stop in /usr/ports/ftp/proftpd.
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
--
主要的變動是在/usr/ports/ftp/proftpd/work/proftpd-1.3.1/modules底下
多了mod_codeconv.c 和 mod_df.c
現在遇到的問題,是在編譯的時候,會找不到patch中新加入的function
(undefine reference to XXX... )
我嘗試去改/usr/ports/ftp/proftpd/Makefile 但不能解決
似乎還要去改/usr/ports/ftp/proftpd/work/proftpd-1.3.1/modules/Makefile
不知道有沒有對Makefile比較熟的能指點一下?
--
下面是錯誤訊息
test -z """" || (cd locale/ && gmake locale)
/bin/sh ./libtool --mode=link gcc -L./lib -o proftpd src/main.o
src/timers.o src/sets.o src/pool.o src/table.o src/regexp.o src/dirtree.o
src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o
src/lastlog.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/display.o src/auth.o src/fsio.o src/mkhome.o
src/ctrls.o src/event.o src/var.o src/trace.o src/utf8.o src/proctitle.o
src/pidfile.o src/env.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_delay.o
modules/mod_auth_pam.o modules/module_glue.o modules/mod_codeconv.o
modules/mod_ls.o -lpam -lsupp -lcrypt -lutil
gcc -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/table.o
src/regexp.o src/dirtree.o src/support.o src/netaddr.o src/inet.o src/child.o
src/parser.o src/log.o src/lastlog.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/display.o src/auth.o
src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o src/trace.o
src/utf8.o src/proctitle.o src/pidfile.o src/env.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_delay.o modules/mod_auth_pam.o modules/module_glue.o
modules/mod_codeconv.o modules/mod_ls.o
-L/usr/ports/ftp/proftpd/work/proftpd-1.3.1/lib -lpam -lsupp -lcrypt -lutil
modules/mod_ls.o(.data+0x0): multiple definition of `ls_module'
modules/mod_ls.o(.data+0x0): first defined here
modules/mod_codeconv.o(.text+0x73): In function `remote2local':
: undefined reference to `libiconv_open'
modules/mod_codeconv.o(.text+0x94): In function `remote2local':
: undefined reference to `libiconv'
modules/mod_codeconv.o(.text+0xe6): In function `remote2local':
: undefined reference to `libiconv'
modules/mod_codeconv.o(.text+0x102): In function `remote2local':
: undefined reference to `libiconv_close'
modules/mod_codeconv.o(.text+0x194): In function `local2remote':
: undefined reference to `libiconv_open'
modules/mod_codeconv.o(.text+0x1b5): In function `local2remote':
: undefined reference to `libiconv'
modules/mod_codeconv.o(.text+0x20a): In function `local2remote':
: undefined reference to `libiconv'
modules/mod_codeconv.o(.text+0x226): In function `local2remote':
: undefined reference to `libiconv_close'
gmake: *** [proftpd] Error 1
*** Error code 2
Stop in /usr/ports/ftp/proftpd.
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
--
Tags:
BBS
All Comments
Related Posts
編新核心後ppp就跑不起來了
By Emily
at 2007-10-24T08:48
at 2007-10-24T08:48
登入時出現小提示覺得好煩怎麼關閉
By Eden
at 2007-10-23T02:22
at 2007-10-23T02:22
make buildworld
By Lucy
at 2007-10-23T01:29
at 2007-10-23T01:29
關於/etc/issue
By Ophelia
at 2007-10-22T09:42
at 2007-10-22T09:42
關於/etc/issue
By Brianna
at 2007-10-22T07:50
at 2007-10-22T07:50