diff -Nurd net-snmp-5.4.1/configure net-snmp-5.4.1-new/configure
--- net-snmp-5.4.1/configure	2007-07-27 13:04:19.000000000 -0400
+++ net-snmp-5.4.1-new/configure	2008-01-02 12:11:13.000000000 -0500
@@ -31784,7 +31784,7 @@
 if test "x$embed_perl" != "xno" ; then
     echo "$as_me:$LINENO: checking for Perl CFLAGS" >&5
 echo $ECHO_N "checking for Perl CFLAGS... $ECHO_C" >&6
-    perlcflags=`$myperl -MExtUtils::Embed -e ccopts`
+    perlcflags=`$myperl -MExtUtils::Embed -e ccopts | /usr/bin/sed -e 's,-arch [^ ]*,,g'`
     if test "x$perlcflags" != "x" ; then
       echo "$as_me:$LINENO: result: $perlcflags" >&5
 echo "${ECHO_T}$perlcflags" >&6
@@ -31804,7 +31804,7 @@
 if test "x$embed_perl" != "xno" ; then
     echo "$as_me:$LINENO: checking for Perl LDFLAGS" >&5
 echo $ECHO_N "checking for Perl LDFLAGS... $ECHO_C" >&6
-    netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts`
+    netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts | /usr/bin/sed -e 's,-arch [^ ]*,,g'`
     if test "x$netsnmp_perlldopts" != "x" ; then
       echo "$as_me:$LINENO: result: $netsnmp_perlldopts" >&5
 echo "${ECHO_T}$netsnmp_perlldopts" >&6
@@ -31824,7 +31824,7 @@
       echo "$as_me:$LINENO: checking for Perl CCDLFLAGS" >&5
 echo $ECHO_N "checking for Perl CCDLFLAGS... $ECHO_C" >&6
 
-      netsnmp_perlccdlflags=`$myperl -V:ccdlflags | $myperl -n -e 'print $1 '"if (/^\s*ccdlflags='([^']+)';/);"`
+      netsnmp_perlccdlflags=`$myperl -V:ccdlflags | /usr/bin/sed -e 's,-arch [^ ]*,,g' | $myperl -n -e 'print $1 '"if (/^\s*ccdlflags='([^']+)';/);"`
 
       echo "$as_me:$LINENO: result: $netsnmp_perlccdlflags" >&5
 echo "${ECHO_T}$netsnmp_perlccdlflags" >&6
diff -Nurd net-snmp-5.4.1/perl/TrapReceiver/Makefile.PL net-snmp-5.4.1-new/perl/TrapReceiver/Makefile.PL
--- net-snmp-5.4.1/perl/TrapReceiver/Makefile.PL	2007-06-18 10:10:08.000000000 -0400
+++ net-snmp-5.4.1-new/perl/TrapReceiver/Makefile.PL	2008-01-02 12:20:42.000000000 -0500
@@ -108,7 +108,7 @@
     else {
 	$opts = NetSNMPGetOpts();
 	$Params{'LDDLFLAGS'} = "$Config{lddlflags} " . `$opts->{'nsconfig'} --ldflags`;
-	$Params{'LIBS'} = '-lnetsnmptrapd -lnetsnmpagent -lnetsnmp';
+	$Params{'LIBS'} = '-lnetsnmptrapd -lnetsnmpagent -lnetsnmp -lnetsnmpmibs -lnetsnmphelpers ';
 	chomp($Params{'LIBS'});
 	if (!$ENV{'NETSNMP_CCFLAGS'}) {
 	    $Params{'CCFLAGS'} = `$opts->{'nsconfig'} --cflags`;
