You are not logged in.

#1 2024-06-12 20:32:08

jzhu
Member
Registered: 2012-06-17
Posts: 24

firebird 4.0.4 compile error with --with-system-editline

To whom it may be concerned:

when makepkg with firebird 4.0.4, it fails at the step:

checking for cc_r... gcc
./configure: line 6087: syntax error near unexpected token `;;'
./configure: line 6087: `printf "%s\n" "$as_me: WARNING: --with-system-editline specified, not found. Using bundled editline" >&2;} ;;'

this seems a known issue now; see the discussion here: https://github.com/FirebirdSQL/firebird/issues/7394

and, likely a timing issue since the AUR version was done in Nov, 2023 and the fix was done in 2024, according to the link.

hopefully, this can be fixed in AUR soon.

Best,

Offline

#2 2024-06-13 07:07:07

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,777

Re: firebird 4.0.4 compile error with --with-system-editline

The extra libfbclient pacakge in repos removes firebird provided libraries in prepare .

prepare() {
  # Ensure system libs are used
  rm -r Firebird-$pkgver-0/extern/{editline,libtommath,libtomcrypt,zlib}
}

Does adding that to the aur PKGBUILD help ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#3 2024-06-13 13:09:35

jzhu
Member
Registered: 2012-06-17
Posts: 24

Re: firebird 4.0.4 compile error with --with-system-editline

Hi, thanks.
In my PKGBUILD, I don't find

prepare()

.
In particular, the following firebird files are removed during makepkg, via PKGBUILD:

  # Remove unused files and dirs
  rm "${pkgdir}/etc/firebird/IPLicense.txt"
  rm "${pkgdir}/etc/firebird/IDPLicense.txt"
  rm "${pkgdir}/etc/firebird/README.md"
  rm "${pkgdir}/etc/firebird/CHANGELOG.md"
  rm -rf "${pkgdir}/var/log"
  rm -rf "${pkgdir}/run"

when I get time, I may get into the package itself to change the typo over there to see if it works. Any idea of how to suppress makepkg to download the package again?

Last edited by jzhu (2024-06-13 14:59:05)

Offline

#4 2024-06-13 13:26:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,777

Re: firebird 4.0.4 compile error with --with-system-editline

you need to add the lines I posted somewhere in the PKGBUILD, just before build() function is most logical place.

makepkg provides several optional functions that can be used inside PKGBUILDs , see https://man.archlinux.org/man/PKGBUILD. … _FUNCTIONS for details .

Any idea of how to suppress makepkg to download the package again?

If you mean the items in source= array , there is .
Check SRCDEST in man makepkg.conf .

PS.
BB Code uses square brackets [ and ] , not < >


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#5 2024-06-13 14:55:58

jzhu
Member
Registered: 2012-06-17
Posts: 24

Re: firebird 4.0.4 compile error with --with-system-editline

Ok. here are some I did so far:

1. with added prepare() in PKGBUILD, the same configure error message.
2. following the reported bug fix (7394 in link above).
a. open in unpacked src/Firebird-4.0.4.3010-0, edit configure line 6087 as following:

printf "%s\n" "$as_me: WARNING: --with-system-editline specified, not found. Using bundled editline" >&2;} fi;;

the last "fi" was missed
b. comment out fi on line 6098

now rerun configure, it works. so the issue present with 4.0.2  still exists in 4.0.4. guess this may be from the upstream in github.

Last edited by jzhu (2024-06-13 14:58:01)

Offline

#6 2024-06-13 22:26:42

jzhu
Member
Registered: 2012-06-17
Posts: 24

Re: firebird 4.0.4 compile error with --with-system-editline

further note:

1. apparently, the root cause is in the configure.ac of source code, on line 664-665, where the end fi is misplaced,
original:

         if test "$EDITLINE_FLG" = "Y"; then
           AC_MSG_WARN([[[--with-system-editline specified, not found. Using bundled editline]]])])))
		 fi

it should be:

         if test "$EDITLINE_FLG" = "Y"; then
           AC_MSG_WARN([[[--with-system-editline specified, not found. Using bundled editline]]])
		 fi])))

2. when run 'makepkg -e', configure will succeed.
3. even with this fix, the build still fails at g++ to compile gds.cpp with error related to a template declaration; not sure if this results from the conflict with g++ (14.1.1). but apparently this is unrelated issue.
4. also, the aur had firebird initial version for 4.0.1. also tried that version, same configure error and same gcc/g++ error (after fixing mismatching in configure.ac)

On the other hand, Firebird 5.0 is out, any chance to include that in the aur?

Last edited by jzhu (2024-06-13 22:43:56)

Offline

#7 2024-06-14 21:15:26

jzhu
Member
Registered: 2012-06-17
Posts: 24

Re: firebird 4.0.4 compile error with --with-system-editline

OK. As of this writing, I was able to make Firebird verion 3.0.11 work on my box.The same configure error (throughout its linux tarballs) -- use my fixing approach in reply #6. below is a summary to build firebird 3.0.11-33703 using AUR way with some twists. Note it is packed in tar.bz2 so check/modify your PKGBUILD.

1. git clone to firebird to get a PKGBUILD; and makepkg to download necessary files for 4.0.4 (as of this writing).
2. adjust values with above info (version, etc). -- check git site to make certain.
3. One also needs to comment out the following lines in package() since these two are not applicable to 3.0.11

#  rm "${pkgdir}/etc/firebird/README.md"
#  rm "${pkgdir}/etc/firebird/CHANGELOG.md"

4. run makepkg again and it will fail again but it will download the tarball.
5. verify md5 with the git site. to update the correct md5sum using the following

makepkg -g >>PKGBUILD

6. now run

 makepkg -e 

again. it will unpack but with error.
7. go into src/ then follow the steps in reply #6 to fix configure.ac
8. now run

 makepkg -e 

again. This time you will see zst files. Warning: it takes time to generate the zst files; in my case about 30 minutes.
9. with admin right, run pacman -U ***.zst with your choice of debug version or no debug.

furthermore, as of this writing, git has firebird 5.0.0 but it doesn't seem to be ready as "production" yet.

Last edited by jzhu (2024-06-14 21:22:31)

Offline

Board footer

Powered by FluxBB