Issue Details (XML | Word | Printable)

Key: CORE-2249
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Gorshenkov Sergey
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
Firebird Core

Error build Firebird 2.1 in FreeBSD 7.0

Created: 19/Dec/08 10:07 AM   Updated: 08/Feb/16 05:24 AM
Component/s: Build Issues / Porting
Affects Version/s: 2.1.1
Fix Version/s: 2.1.3

Environment: FreeBSD i386, Firebird-

QA Status: Cannot be tested

 Description  « Hide
Error build Firebird.

vi.c:919:74: error: macro "__weak_reference" requires 2 arguments, but only 1 given
Header cdefs.h in FreeBSD:
#define __weak_reference(sym,alias) \
        __asm__(".weak " #alias); \
        __asm__(".equ " #alias ", " #sym)

Header cdefs_elf.h in NetBSD:
/* Do not use __weak_extern, use __weak_reference instead */
#define __weak_extern(sym) \
    __asm(".weak " _C_LABEL_STRING(#sym));

I'm try fix in FreeBSD:
extern char *get_alias_text(const char *) __weak_extern(get_alias_text);
gen/Makefile.refDatabases line 114:
String: make -f Makefile.static.gfix

This syntax for GNU make and not correctly work for native FreeBSD.
I'm try fix it: replace 'make' -> '$(MAKE)'

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 19/Dec/08 12:34 PM
Lowered security level - no need closing such issues

Alexander Peshkov added a comment - 19/Dec/08 12:37 PM
Fixed makefile.
What about editline problems - I'm pretty sure freebsd contains it's own, please link with it using '--with-system-editline' switch.
BTW, you need not running starting with FB 2.1 if you are using src tarball for builds - more traditional configure is now present in it.