opensips (master) fails to compile

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

opensips (master) fails to compile

Ovidiu Sas
Compiling cfg.tab.c
cfg.y: In function ‘yyparse’:
cfg.y:775:4: error: ‘event_pkg_threshold’ undeclared (first use in
this function)
    event_pkg_threshold=$3;
    ^
cfg.y:775:4: note: each undeclared identifier is reported only once
for each function it appears in
make: *** [cfg.tab.o] Error 1


-ovidiu

--
VoIP Embedded, Inc.
http://www.voipembedded.com

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
Reply | Threaded
Open this post in threaded view
|

Re: opensips (master) fails to compile

Răzvan Crainea-2
Hi, Ovidiu!

Can you please compile with the CC_EXTRA_OPTS=-E flags:

$ CC_EXTRA_OPTS=-E make
Compiling cfg.tab.c
Linking opensips
cfg.tab.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status

It won't be able to generate the binary, because will stop each object
file after the preprocessing step. Therefore you will be able to get a
readable cfg.tab.o. Can you post its content on pastebin?

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 02/07/2017 06:57 AM, Ovidiu Sas wrote:

> Compiling cfg.tab.c
> cfg.y: In function ‘yyparse’:
> cfg.y:775:4: error: ‘event_pkg_threshold’ undeclared (first use in
> this function)
>      event_pkg_threshold=$3;
>      ^
> cfg.y:775:4: note: each undeclared identifier is reported only once
> for each function it appears in
> make: *** [cfg.tab.o] Error 1
>
>
> -ovidiu
>


_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
Reply | Threaded
Open this post in threaded view
|

Re: opensips (master) fails to compile

Ovidiu Sas
In the end it was a Makefile.conf issue: missing DPKG_MALLOC option.
Thanks for your help in troubleshooting this!

-ovidiu

On Tue, Feb 7, 2017 at 5:09 AM, Răzvan Crainea <[hidden email]> wrote:

> Hi, Ovidiu!
>
> Can you please compile with the CC_EXTRA_OPTS=-E flags:
>
> $ CC_EXTRA_OPTS=-E make
> Compiling cfg.tab.c
> Linking opensips
> cfg.tab.o: file not recognized: File format not recognized
> collect2: error: ld returned 1 exit status
>
> It won't be able to generate the binary, because will stop each object file
> after the preprocessing step. Therefore you will be able to get a readable
> cfg.tab.o. Can you post its content on pastebin?
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutions
> www.opensips-solutions.com
>
> On 02/07/2017 06:57 AM, Ovidiu Sas wrote:
>>
>> Compiling cfg.tab.c
>> cfg.y: In function ‘yyparse’:
>> cfg.y:775:4: error: ‘event_pkg_threshold’ undeclared (first use in
>> this function)
>>      event_pkg_threshold=$3;
>>      ^
>> cfg.y:775:4: note: each undeclared identifier is reported only once
>> for each function it appears in
>> make: *** [cfg.tab.o] Error 1
>>
>>
>> -ovidiu
>>
>
>
> _______________________________________________
> Devel mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel



--
VoIP Embedded, Inc.
http://www.voipembedded.com

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel