barebones config file

Mark Brethen mark.brethen at gmail.com
Wed Nov 25 22:58:19 PST 2015


> On Nov 25, 2015, at 2:36 PM, Mark Brethen <mark.brethen at gmail.com> wrote:
> 
> 
>> On Nov 23, 2015, at 1:48 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
>> 
>> 
>>> On Nov 22, 2015, at 11:23 PM, Mark Brethen <mark.brethen at gmail.com> wrote:
>>> 
>>>> 
>>>> On Nov 22, 2015, at 10:36 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>>>> 
>>>> 
>>>>> On Nov 22, 2015, at 10:35 PM, Mark Brethen <mark.brethen at gmail.com> wrote:
>>>>> 
>>>>> 
>>>>>> On Nov 22, 2015, at 10:26 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>>>>>> 
>>>>>> 
>>>>>> Ok, so you have overridden the configure phase. Why? 
>>>>>> 
>>>>>> configure {
>>>>>> system -W ${worksrcpath}/src "${configure.cmd}"
>>>>>> }
>>>>>> 
>>>>>> I'd instead use the default configure phase, just changing it to suit your needs. For example, use:
>>>>>> 
>>>>>> configure.dir ${worksrcpath}/src
>>>>>> 
>>>>>> If this configure script doesn't understand --prefix=${prefix}, use:
>>>>>> 
>>>>>> configure.pre_args
>>>>>> 
>>>>>> If this configure script doesn't understand --disable-dependency-tracking, use:
>>>>>> 
>>>>>> configure.universal_args
>>>>>> 
>>>>>> Also, you should use the github portgroup, since this software is hosted at github.
>>>>>> 
>>>>>> 
>>>>> 
>>>>> It fails with the message:
>>>>> 
>>>>> :info:configure sh: ./configure: No such file or directory
>>>>> :info:configure Command failed:  cd "/opt/local/var/macports/build/_Users_marbre_ports_devel_elkhound/elkhound/work/elkhound-20140803" && ./configure --prefix=/opt/local 
>>>> 
>>>> That doesn't look like you've changed configure.dir to ${worksrcpath}/src
>>>> 
>>>> 
>>> 
>>> Yeah, I had that in their but took it out when I overrode configure. Still fails with unknown option:
>>> 
>>> :debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_Users_marbre_ports_devel_elkhound/elkhound/work/elkhound-20140803/src" && ./configure --prefix=/opt/local'
>>> :debug:configure Executing command line:  cd "/opt/local/var/macports/build/_Users_marbre_ports_devel_elkhound/elkhound/work/elkhound-20140803/src" && ./configure --prefix=/opt/local 
>>> :info:configure unknown option: prefix
>>> :info:configure Command failed:  cd "/opt/local/var/macports/build/_Users_marbre_ports_devel_elkhound/elkhound/work/elkhound-20140803/src" && ./configure --prefix=/opt/local 
>>> :info:configure Exit code: 2
>>> :error:configure org.macports.configure for port elkhound returned: configure failure: command execution failed
>> 
>> You didn't clear configure.pre_args as I showed above.
>> 
>> 
>> 
>> On Nov 23, 2015, at 12:46 AM, Mark Brethen <mark.brethen at gmail.com> wrote:
>> 
>>> 
>>> I added the github portgroup and github.tarball_from releases. It attempts to fetch from https://github.com/WeiDUorg/elkhound/releases/download/2014-08-03, but its located in https://github.com/WeiDUorg/elkhound/archive/2014-08-03.
>> 
>> 
>> elkhound doesn't have any releases. They only have tags. Remove "github.tarball_from releases".
>> 
>> 
> 
> The portfile is running much nicer, thank you. I patched ast which had YYPARSER calls that were changed in bison 2, but haven’t figured out the error reporting function yyerror. I sent a question the help-bison list but haven’t received a response. Is it very active? Anyone know bison?
> 
> <Portfile><patch-ast-agrampar.h.diff><patch-ast-agrampar.y.diff><main.log>
> 
> Mark
> 

I'm getting the following error during compilation:

:info:build /usr/bin/clang++ -o astgen gramlex.o agrampar.tab.o ccsstr.o agramlex.yy.o reporterr.o embedded.o ast.hand.o asthelp.o xmlhelp.o agrampar.o astgen.o -g -Wall -Werror ../smbase/libsmbase.a
:info:build Undefined symbols for architecture x86_64:
:info:build   "agrampar_yyerror(void*, char const*)", referenced from:
:info:build       agrampar_yyparse(void*) in agrampar.tab.o
:info:build   "StringTable::add(char const*)", referenced from:
:info:build       GrammarLexer::yylexInc() in gramlex.o
:info:build       GrammarLexer::curFuncBody() const in gramlex.o
:info:build       GrammarLexer::curToken() const in gramlex.o
:info:build       GrammarLexer::addString(char*, int) const in gramlex.o
:info:build       GrammarLexer::curDeclName() const in gramlex.o
:info:build   "StringTable::StringTable()", referenced from:
:info:build       __GLOBAL__sub_I_agrampar.cc in agrampar.o
:info:build   "StringTable::~StringTable()", referenced from:
:info:build       __GLOBAL__sub_I_agrampar.cc in agrampar.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [astgen] Error 1

I understand the problem is to do with the linker not finding the astgen library, right? How do I tell the compiler where that is?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log
Type: application/octet-stream
Size: 22157 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20151126/f2c78978/attachment-0001.obj>
-------------- next part --------------

Mark






More information about the macports-dev mailing list