Project

General

Profile

Actions

Bug #3881

closed

Issue building pfPort "voucher"

Added by Thiago Basilio about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
09/22/2014
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

Using pfsense-tools with latest commit ID 3e127740d9f11962433b5f52c23ad99de55e252, when build.sh is trying to build "voucher" pfPort, it generate errors:

Script started on Mon Sep 22 11:43:40 2014
command: env -u TARGET -u TARGET_ARCH PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin make __MAKE_CONF=/tmp/pfPorts_make.conf BATCH=yes FORCE_PACKAGE=yes FORCE_PKG_REGISTER=yes -C /usr/ports/sysutils/voucher rmconfig clean build deinstall install clean
===> No user-specified options configured for voucher-0.1
===>  Cleaning for voucher-0.1
===>   voucher-0.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by voucher-0.1 for building
===>  Extracting for voucher-0.1
/bin/mkdir -p /usr/ports/sysutils/voucher/work/voucher-0.1
===>  Patching for voucher-0.1
===>  Configuring for voucher-0.1
===>  Building for voucher-0.1
cc -O2 -pipe  -fno-strict-aliasing -o /usr/ports/sysutils/voucher/work/voucher-0.1/voucher -l ssl /usr/ports/sysutils/voucher/files/voucher.c
/usr/ports/sysutils/voucher/files/voucher.c:420:59: warning: format specifies type 'unsigned long long *' but the argument has type 'u_int64_t *' (aka 'unsigned long *')
      [-Wformat]
                &roll_bits, &ticket_bits, &checksum_bits, &magic, charset))
                                                          ^~~~~~
/usr/ports/sysutils/voucher/files/voucher.c:581:63: warning: format specifies type 'unsigned long long' but the argument has type 'u_int64_t' (aka 'unsigned long') [-Wformat]
        printf("# magic initializer   %llu (%d Bits used)\n", magic, magic_bits);
                                      ~~~~                    ^~~~~
                                      %lu
2 warnings generated.
/usr/bin/ld: : invalid DSO for symbol `RSA_private_encrypt' definition
//lib/libcrypto.so.7: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/voucher

Script done on Mon Sep 22 11:43:43 2014

If you compile voucher.c with -l crypto, it works. So, patching voucher's Makefile with:

do-build:
        ${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} -l crypto ${FILESDIR}/${PORTNAME}.c

Do the trick, voucher is compiled OK.

I don't know if this is really a problem on voucher's Makefile OR if its my problem, e.g. a dirty builder environment.

..
FreeBSD 10.1-PRERELEASE amd64 commit id 30e366f556dde8950782845d6a3bdbc2c5a84b6f
pfSense Git repo
commit 4ce44163b5a7459c16df6b0ab9f14d305ad1c4b0
pfSense-tools repo @ commit 3e127740d9f11962433b5f52c23ad99de55e252
..

Actions

Also available in: Atom PDF