Bug 141131 - www/libxul: compiler error in dsa.c
Summary: www/libxul: compiler error in dsa.c
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: Beat Gaetzi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-03 09:40 UTC by O. Hartmann
Modified: 2009-12-28 11:30 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 O. Hartmann 2009-12-03 09:40:00 UTC
Trying to install www/libxul (according to update www/xulrunner-1.8.0.4_6 to new version instroduced yesterday) ends up in this error after using

portmaster -dav

Manual compilation/installation of www/libxul also ends with the following error message:


cc -o FreeBSD8.0_64_OPT.OBJ/FreeBSD_SINGLE_SHLIB/dsa.o -c -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX  DSHLIB_SUFFIX=\"so\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_T READ_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -DNSS_USE_64 -DMP_API_COMPATIBLE -I/usr/local/include -I/usr/local/include/nspr -I/u r/ports/www/libxul/work/mozilla/dist/include -I../../../../dist/public/nss -I../../../../dist/private/nss -I../../../../dist/include  -Impi -Iec   dsa.c
dsa.c: In function 'FIPS186Change_ReduceModQForDSA':
dsa.c:75: error: 'mp_int' undeclared (first use in this function)
dsa.c:75: error: (Each undeclared identifier is reported only once
dsa.c:75: error: for each function it appears in.)
dsa.c:75: error: expected ';' before 'W'
dsa.c:76: error: 'mp_err' undeclared (first use in this function)
dsa.c:76: error: expected ';' before 'err'
dsa.c:80: warning: implicit declaration of function 'MP_DIGITS'
dsa.c:80: error: 'W' undeclared (first use in this function)
dsa.c:80: error: lvalue required as left operand of assignment
dsa.c:81: error: 'Q' undeclared (first use in this function)
dsa.c:81: error: lvalue required as left operand of assignment
dsa.c:82: error: 'Xj' undeclared (first use in this function)
dsa.c:82: error: lvalue required as left operand of assignment
dsa.c:83: error: 'MP_OKAY' undeclared (first use in this function)
dsa.c:83: error: 'err' undeclared (first use in this function)
dsa.c:83: warning: implicit declaration of function 'mp_init'
dsa.c:89: warning: implicit declaration of function 'mp_read_unsigned_octets'
dsa.c:96: warning: implicit declaration of function 'mp_mod'
dsa.c:97: warning: implicit declaration of function 'mp_to_fixlen_octets'
dsa.c:99: warning: implicit declaration of function 'mp_clear'
dsa.c:103: error: 'MP_MEM' undeclared (first use in this function)
dsa.c:103: error: 'MP_RANGE' undeclared (first use in this function)
dsa.c:103: error: 'MP_BADARG' undeclared (first use in this function)
dsa.c: At top level:
dsa.c:161: error: expected ')' before 'err'
dsa.c: In function 'dsa_NewKey':
dsa.c:170: error: 'mp_int' undeclared (first use in this function)
dsa.c:170: error: expected ';' before 'p'
dsa.c:171: error: expected ';' before 'x'
dsa.c:172: error: 'mp_err' undeclared (first use in this function)
dsa.c:172: error: expected ';' before 'err'
dsa.c:194: error: 'p' undeclared (first use in this function)
dsa.c:194: error: lvalue required as left operand of assignment
dsa.c:195: error: 'g' undeclared (first use in this function)
dsa.c:195: error: lvalue required as left operand of assignment
dsa.c:196: error: 'x' undeclared (first use in this function)
dsa.c:196: error: lvalue required as left operand of assignment
dsa.c:197: error: 'y' undeclared (first use in this function)
dsa.c:197: error: lvalue required as left operand of assignment
dsa.c:198: error: 'MP_OKAY' undeclared (first use in this function)
dsa.c:198: error: 'err' undeclared (first use in this function)
dsa.c:216: warning: implicit declaration of function 'mp_exptmod'
dsa.c:218: warning: implicit declaration of function 'mp_unsigned_octet_size'
dsa.c:218: error: 'MP_MEM' undeclared (first use in this function)
dsa.c:218: warning: implicit declaration of function 'mp_to_unsigned_octets'
dsa.c:229: warning: implicit declaration of function 'translate_mpi_error'
dsa.c: In function 'dsa_SignDigest':
dsa.c:293: error: 'mp_int' undeclared (first use in this function)
dsa.c:293: error: expected ';' before 'p'
dsa.c:294: error: expected ';' before 'x'
dsa.c:295: error: expected ';' before 'r'
dsa.c:296: error: 'mp_err' undeclared (first use in this function)
dsa.c:296: error: expected ';' before 'err'
dsa.c:309: error: 'p' undeclared (first use in this function)
dsa.c:309: error: lvalue required as left operand of assignment
dsa.c:310: error: 'q' undeclared (first use in this function)
dsa.c:310: error: lvalue required as left operand of assignment
dsa.c:311: error: 'g' undeclared (first use in this function)
dsa.c:311: error: lvalue required as left operand of assignment
dsa.c:312: error: 'x' undeclared (first use in this function)
dsa.c:312: error: lvalue required as left operand of assignment
dsa.c:313: error: 'k' undeclared (first use in this function)
dsa.c:313: error: lvalue required as left operand of assignment
dsa.c:314: error: 'r' undeclared (first use in this function)
dsa.c:314: error: lvalue required as left operand of assignment
dsa.c:315: error: 's' undeclared (first use in this function)
dsa.c:315: error: lvalue required as left operand of assignment
dsa.c:316: error: 'MP_OKAY' undeclared (first use in this function)
dsa.c:316: error: 'err' undeclared (first use in this function)
dsa.c:344: warning: implicit declaration of function 'mp_invmod'
dsa.c:345: warning: implicit declaration of function 'mp_mulmod'
dsa.c:346: warning: implicit declaration of function 'mp_addmod'
dsa.c:352: warning: implicit declaration of function 'mp_cmp_z'
dsa.c: In function 'DSA_VerifyDigest':
dsa.c:445: error: 'mp_int' undeclared (first use in this function)
dsa.c:445: error: expected ';' before 'p'
dsa.c:446: error: expected ';' before 'r_'
dsa.c:447: error: expected ';' before 'u1'
dsa.c:448: error: expected ';' before 'y'
dsa.c:449: error: 'mp_err' undeclared (first use in this function)
dsa.c:449: error: expected ';' before 'err'
dsa.c:460: error: 'p' undeclared (first use in this function)
dsa.c:460: error: lvalue required as left operand of assignment
dsa.c:461: error: 'q' undeclared (first use in this function)
dsa.c:461: error: lvalue required as left operand of assignment
dsa.c:462: error: 'g' undeclared (first use in this function)
dsa.c:462: error: lvalue required as left operand of assignment
dsa.c:463: error: 'y' undeclared (first use in this function)
dsa.c:463: error: lvalue required as left operand of assignment
dsa.c:464: error: 'r_' undeclared (first use in this function)
dsa.c:464: error: lvalue required as left operand of assignment
dsa.c:465: error: 's_' undeclared (first use in this function)
dsa.c:465: error: lvalue required as left operand of assignment
dsa.c:466: error: 'u1' undeclared (first use in this function)
dsa.c:466: error: lvalue required as left operand of assignment
dsa.c:467: error: 'u2' undeclared (first use in this function)
dsa.c:467: error: lvalue required as left operand of assignment
dsa.c:468: error: 'v' undeclared (first use in this function)
dsa.c:468: error: lvalue required as left operand of assignment
dsa.c:469: error: 'w' undeclared (first use in this function)
dsa.c:469: error: lvalue required as left operand of assignment
dsa.c:470: error: 'MP_OKAY' undeclared (first use in this function)
dsa.c:470: error: 'err' undeclared (first use in this function)
dsa.c:496: warning: implicit declaration of function 'mp_cmp'
gmake[6]: *** [FreeBSD8.0_64_OPT.OBJ/FreeBSD_SINGLE_SHLIB/dsa.o] Error 1
gmake[6]: Leaving directory `/usr/ports/www/libxul/work/mozilla/security/nss/lib/freebl'
gmake[5]: *** [libs] Error 2
gmake[5]: Leaving directory `/usr/ports/www/libxul/work/mozilla/security/nss/lib/freebl'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/usr/ports/www/libxul/work/mozilla/security/nss/lib'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/usr/ports/www/libxul/work/mozilla/security/manager'
gmake[2]: *** [libs_tier_toolkit] Error 2
gmake[2]: Leaving directory `/usr/ports/www/libxul/work/mozilla'
gmake[1]: *** [tier_toolkit] Error 2
gmake[1]: Leaving directory `/usr/ports/www/libxul/work/mozilla'
gmake: *** [default] Error 2
*** Error code 1

Stop in /usr/ports/www/libxul.
*** Error code 1

Stop in /usr/ports/www/libxul.

How-To-Repeat: Try installing www/libxul on FreeBSD 8.0/amd64
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-12-03 09:40:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gecko

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2009-12-03 09:51:36 UTC
State Changed
From-To: open->feedback

have you any special flags in your /etc/make.conf? I can't reproduce 
this on the FreeBSD cluster or local.
Comment 3 Marc Lagrange 2009-12-23 19:38:26 UTC
Same problem here, my CFLAGS in make.conf are :
CFLAGS= -O2 -pipe
Comment 4 Beat Gaetzi freebsd_committer freebsd_triage 2009-12-23 20:44:29 UTC
Hi,

Marc Lagrange wrote:
>  Same problem here, my CFLAGS in make.conf are :
>  CFLAGS= -O2 -pipe

Could you please check if xulrunner is still installed on your system?
If yes,  please deinstall xulrunner and try to rebuild libxul once again.

Thanks,
Beat
Comment 5 Beat Gaetzi freebsd_committer freebsd_triage 2009-12-24 14:52:54 UTC
Hi,

Could you please check if net/mpich2 is installed on your system?

Thanks,
Beat
Comment 6 Beat Gaetzi freebsd_committer freebsd_triage 2009-12-25 17:42:37 UTC
Responsible Changed
From-To: gecko->beat

I'll take it.
Comment 7 Beat Gaetzi freebsd_committer freebsd_triage 2009-12-25 17:46:55 UTC
Hi,

Please try this patch:
http://people.freebsd.org/~beat/pr/141131/libxul-mpich2.patch

Beat
Comment 8 dfilter service freebsd_committer freebsd_triage 2009-12-28 11:22:42 UTC
beat        2009-12-28 11:22:33 UTC

  FreeBSD ports repository

  Modified files:
    www/libxul/files     patch-security_coreconf_FreeBSD.mk 
  Log:
  - Fix build if net/mpich2 is installed
  
  PR:             ports/141131
  Reported by:    "O. Hartmann" <ohartman AT zedat.fu-berlin.de>,
                  Marc Lagrange <rhaamo AT gruik.at>,
                  Rainer Hurling <rhurlin AT gwdg.de> (thanks!)
  
  Revision  Changes    Path
  1.3       +6 -0      ports/www/libxul/files/patch-security_coreconf_FreeBSD.mk
_______________________________________________
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 Beat Gaetzi freebsd_committer freebsd_triage 2009-12-28 11:23:02 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!