Bug 152374 - /usr/ports/net-mgmt/py-yapsnmp fails
Summary: /usr/ports/net-mgmt/py-yapsnmp fails
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tilman Keskinoz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-18 18:20 UTC by Steve Cochran
Modified: 2011-02-13 15:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Cochran 2010-11-18 18:20:08 UTC
This port fails to build. ./configure fails, with a message in config.log that symbol __stack_chk_fail_local was not found.  I Googled for this and found mention of other ports being broken in a similar way, apparently related to ProPolice.

Incidentally, I also have access to an amd64 box (also 8.1R) and the port compiles on it with no issues.

Fix: 

I added -fstack-protector to the CPPFLAGS in /usr/ports/net-mgmt/py-yapsnmp/Makefile.  It compiled fine at that point.

..
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${PYTHON_INCLUDEDIR} -fstack-protector"  \
                LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
..
How-To-Repeat: On an 8.1R i386 system:

cd /usr/ports/net-mgmt/py-yapsnmp
make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-18 18:20:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->arved

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2010-11-19 12:23:18 UTC
Responsible Changed
From-To: arved->sylvio

Hello Sylvio, 

The error message 
/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local' 

looks to me, as if there is something wrong with libnetsnmp on i386. 
Can you take a look at this?
Comment 3 Sylvio César Teixeira Amorim 2010-11-26 11:25:07 UTC
Hi,

   Sorry, but I have not how to test it, because I'm without box FreeBSD.

Regards,

Sylvio

2010/11/19  <arved@freebsd.org>:
> Synopsis: /usr/ports/net-mgmt/py-yapsnmp fails
>
> Responsible-Changed-From-To: arved->sylvio
> Responsible-Changed-By: arved
> Responsible-Changed-When: Fri Nov 19 12:23:18 UTC 2010
> Responsible-Changed-Why:
> Hello Sylvio,
>
> The error message
> /usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_lo=
cal'
>
> looks to me, as if there is something wrong with libnetsnmp on i386.
> Can you take a look at this?
>
>
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D152374
>



--=20
Regards,

Sylvio Cesar=A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 || FreeBSD Committer || Team mul=
timedia@FreeBSD.org
sylvio@FreeBSD.org=A0 || http://people.freebsd.org/~sylvio ||
http://www.scjamorim.org || http://www.freebsd.org

"Tenho posto o Senhor continuamente diante de mim; porque Ele est=E1 =E0
minha m=E3o direita, n=E3o vacilarei. Portanto, alegre est=E1 o meu
cora=E7=E3o". (Salmos 16:8)

"Os olhos do SENHOR est=E3o sobre os justos, e os seus ouvidos atentos
ao seu clamor". (Salmos 34:15)
Comment 4 Sylvio Cesar Teixeira freebsd_committer freebsd_triage 2011-02-10 12:37:40 UTC
State Changed
From-To: open->closed

Some patchs was update. Please test it.
Comment 5 Tilman Keskinoz freebsd_committer freebsd_triage 2011-02-10 12:44:45 UTC
State Changed
From-To: closed->feedback

Which patches are you referring too? 

I checked net-snmp and py-yapsnmp and could not see any patches. 
I tried to today, and the bug is still reproducible. 

I suggest disabling stack smash protection.
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2011-02-10 14:29:20 UTC
State Changed
From-To: feedback->analyzed

Ok, i will look into this. 




Comment 7 Tilman Keskinoz freebsd_committer freebsd_triage 2011-02-10 14:29:20 UTC
Responsible Changed
From-To: sylvio->arved
Comment 8 dfilter service freebsd_committer freebsd_triage 2011-02-13 15:45:18 UTC
arved       2011-02-13 15:45:13 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/py-yapsnmp  Makefile 
  Log:
  Add -fstack-protector to CPPFLAGS on i386/8.x to fix build.
  
  PR:             152374
  Submitted by:   sylvio
  
  Revision  Changes    Path
  1.17      +7 -1      ports/net-mgmt/py-yapsnmp/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 9 Tilman Keskinoz freebsd_committer freebsd_triage 2011-02-13 15:46:14 UTC
State Changed
From-To: analyzed->closed

I committed the suggestion from sylvio, though i still think the root of the  
problem is somewhere else