So trying to build pike 8.0 from git, and got an error about Msql:
=== configuring in Msql (/home/riffraff/src/pike/8.0/pike/build/linux-4.16.6-302.fc28.x86_64-x86_64/modules/Msql) configure: running /bin/bash -norc /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=/home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: cannot find sources (msqlmod.cmod) in /home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure failed for Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/configure failed for modules
ll Msql/ total 52 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:22 acconfig.h -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:22 configure.in -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:22 Makefile.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:22 msqlmod.c -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:22 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:22 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:22 version.h
Before build attempt:
$ pwd /home/riffraff/src/pike/8.0/pike/src/modules/Msql ? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19] 20:26 $ grep cmod *
After (make distclean && make):
ll total 220 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:26 acconfig.h -rwxrwxr-x. 1 riffraff riffraff 160015 May 10 20:27 configure -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:26 configure.in -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:27 dependencies -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:26 Makefile.in -rw-rw-r--. 1 riffraff riffraff 2236 May 10 20:27 msql_config.h.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:26 msqlmod.c -rw-rw-r--. 1 riffraff riffraff 4 May 10 20:27 stamp-h.in -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:26 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:26 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:26 version.h ? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19] 20:28 $ grep cmod * configure: PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/.cmod/.c/g" | sed -e "s|$srcdir/|\$(SRCDIR)/|g"`
So something in the build is creating configure so that it looks for *.cmod, and fails.
However, I just now encountered that after I removed Msql, I had the same problem with Mysql
Hmm, maybe it is me? Is there something I'm doing wrong? I've done this before in the past and haven't had this problem before.
Hmm, has to be something with me. I checked out a whole new copy of the repo, and make is working.....maybe some artifacts left over? But make distclean isn't cleaning it out. What should I use?
On Thursday, May 10, 2018, 8:31:53 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
So trying to build pike 8.0 from git, and got an error about Msql:
=== configuring in Msql (/home/riffraff/src/pike/8.0/pike/build/linux-4.16.6-302.fc28.x86_64-x86_64/modules/Msql) configure: running /bin/bash -norc /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=/home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: cannot find sources (msqlmod.cmod) in /home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure failed for Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/configure failed for modules
ll Msql/ total 52 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:22 acconfig.h -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:22 configure.in -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:22 Makefile.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:22 msqlmod.c -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:22 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:22 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:22 version.h
Before build attempt:
$ pwd /home/riffraff/src/pike/8.0/pike/src/modules/Msql ? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19] 20:26 $ grep cmod *
After (make distclean && make):
ll total 220 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:26 acconfig.h -rwxrwxr-x. 1 riffraff riffraff 160015 May 10 20:27 configure -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:26 configure.in -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:27 dependencies -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:26 Makefile.in -rw-rw-r--. 1 riffraff riffraff 2236 May 10 20:27 msql_config.h.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:26 msqlmod.c -rw-rw-r--. 1 riffraff riffraff 4 May 10 20:27 stamp-h.in -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:26 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:26 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:26 version.h ? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19] 20:28 $ grep cmod * configure: PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/.cmod/.c/g" | sed -e "s|$srcdir/|\$(SRCDIR)/|g"`
So something in the build is creating configure so that it looks for *.cmod, and fails.
However, I just now encountered that after I removed Msql, I had the same problem with Mysql
Hmm, maybe it is me? Is there something I'm doing wrong? I've done this before in the past and haven't had this problem before.
Also, trying to build pike from git, but keep getting:
precompile: /home/riffraff/src/pike-git/src/build/pike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m/home/riffraff/src/pike-git/src/build/master.pike /home/riffraff/src/pike-git/bin/make_interpret_functions.pike /home/riffraff/src/pike-git/src/interpret_functions.h (method=Q) ./precompile.sh: line 135: /home/riffraff/src/pike-git/src/build/pike: No such file or directory
What is the proper way? Following pikelang/Pike isn't working.
| | | | | |
|
| | | | pikelang/Pike
Pike is a dynamic programming language with a syntax similar to Java and C. It is simple to learn, does not requ... |
|
|
On Thursday, May 10, 2018, 8:44:02 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
Hmm, has to be something with me. I checked out a whole new copy of the repo, and make is working.....maybe some artifacts left over? But make distclean isn't cleaning it out. What should I use?
On Thursday, May 10, 2018, 8:31:53 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
So trying to build pike 8.0 from git, and got an error about Msql:
=== configuring in Msql (/home/riffraff/src/pike/8.0/pike/build/linux-4.16.6-302.fc28.x86_64-x86_64/modules/Msql) configure: running /bin/bash -norc /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=/home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: cannot find sources (msqlmod.cmod) in /home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure failed for Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/configure failed for modules
ll Msql/ total 52 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:22 acconfig.h -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:22 configure.in -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:22 Makefile.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:22 msqlmod.c -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:22 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:22 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:22 version.h
Before build attempt:
$ pwd /home/riffraff/src/pike/8.0/pike/src/modules/Msql ? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19] 20:26 $ grep cmod *
After (make distclean && make):
ll total 220 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:26 acconfig.h -rwxrwxr-x. 1 riffraff riffraff 160015 May 10 20:27 configure -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:26 configure.in -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:27 dependencies -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:26 Makefile.in -rw-rw-r--. 1 riffraff riffraff 2236 May 10 20:27 msql_config.h.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:26 msqlmod.c -rw-rw-r--. 1 riffraff riffraff 4 May 10 20:27 stamp-h.in -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:26 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:26 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:26 version.h ? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19] 20:28 $ grep cmod * configure: PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/.cmod/.c/g" | sed -e "s|$srcdir/|\$(SRCDIR)/|g"`
So something in the build is creating configure so that it looks for *.cmod, and fails.
However, I just now encountered that after I removed Msql, I had the same problem with Mysql
Hmm, maybe it is me? Is there something I'm doing wrong? I've done this before in the past and haven't had this problem before.
Hmm, also getting the following error now, building with release PIke-4.0.498:
Linking Fuse /usr/lib64/libc_nonshared.a(atexit.oS): In function `atexit': (.text+0x3): undefined reference to `__dso_handle' /usr/bin/ld: /usr/lib64/libc_nonshared.a(atexit.oS): relocation R_X86_64_PC32 against undefined hidden symbol `__dso_handle' can not be used when making a shared object /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status Linking failed:
Looking for fix for this myself, wondering if anyone has encountered this before.
I am on Fedora 28, wondering if something is up with that release.
On Thursday, May 10, 2018, 8:56:45 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
Also, trying to build pike from git, but keep getting:
precompile: /home/riffraff/src/pike-git/src/build/pike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m/home/riffraff/src/pike-git/src/build/master.pike /home/riffraff/src/pike-git/bin/make_interpret_functions.pike /home/riffraff/src/pike-git/src/interpret_functions.h (method=Q) ./precompile.sh: line 135: /home/riffraff/src/pike-git/src/build/pike: No such file or directory
What is the proper way? Following pikelang/Pike isn't working.
| | | | | |
|
| | | | pikelang/Pike
Pike is a dynamic programming language with a syntax similar to Java and C. It is simple to learn, does not requ... |
|
|
On Thursday, May 10, 2018, 8:44:02 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
Hmm, has to be something with me. I checked out a whole new copy of the repo, and make is working.....maybe some artifacts left over? But make distclean isn't cleaning it out. What should I use?
On Thursday, May 10, 2018, 8:31:53 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
So trying to build pike 8.0 from git, and got an error about Msql:
=== configuring in Msql (/home/riffraff/src/pike/8.0/pike/build/linux-4.16.6-302.fc28.x86_64-x86_64/modules/Msql) configure: running /bin/bash -norc /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=/home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: cannot find sources (msqlmod.cmod) in /home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure failed for Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/configure failed for modules
ll Msql/ total 52 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:22 acconfig.h -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:22 configure.in -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:22 Makefile.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:22 msqlmod.c -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:22 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:22 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:22 version.h
Before build attempt:
$ pwd /home/riffraff/src/pike/8.0/pike/src/modules/Msql ? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19] 20:26 $ grep cmod *
After (make distclean && make):
ll total 220 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:26 acconfig.h -rwxrwxr-x. 1 riffraff riffraff 160015 May 10 20:27 configure -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:26 configure.in -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:27 dependencies -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:26 Makefile.in -rw-rw-r--. 1 riffraff riffraff 2236 May 10 20:27 msql_config.h.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:26 msqlmod.c -rw-rw-r--. 1 riffraff riffraff 4 May 10 20:27 stamp-h.in -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:26 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:26 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:26 version.h ? ~/src/pike/8.0/pike/src/modules/Msql [8.0|?19] 20:28 $ grep cmod * configure: PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/.cmod/.c/g" | sed -e "s|$srcdir/|\$(SRCDIR)/|g"`
So something in the build is creating configure so that it looks for *.cmod, and fails.
However, I just now encountered that after I removed Msql, I had the same problem with Mysql
Hmm, maybe it is me? Is there something I'm doing wrong? I've done this before in the past and haven't had this problem before.
Lance Dillon wrote:
Hmm, also getting the following error now, building with release PIke-4.0.498:
/usr/lib64/libc_nonshared.a(atexit.oS): In function `atexit': (.text+0x3): undefined reference to `__dso_handle'
Had this too. Tried to get rid of it in more than one way (I'm using Debian testing/unstable), and was not succesful. In the end I added "--without-fuse and --without-sass" to get rid of this and some other issues.
So trying to build pike 8.0 from git, and got an error about Msql:
=== configuring in Msql (/home/riffraff/src/pike/8.0/pike/build/linux-4.16.6-302.fc28.x86_64-x86_64/modules/Msql) configure: running /bin/bash -norc /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=/home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: cannot find sources (msqlmod.cmod) in /home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure failed for Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/configure failed for modules
ll Msql/ total 52 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:22 acconfig.h -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:22 configure.in -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:22 Makefile.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:22 msqlmod.c -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:22 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:22 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:22 version.h
Looks like you have a configure that was generated of the Pike 8.1 branch. Try rerunning run_autoconfig.
/grubba
Hmm, having this problem now:
#### Making dynamic: post_modules/GL Compiling post_modules/GL/top.c /home/riffraff/src/Pike-v8.0.498/build/linux-4.16.6-302.fc28.x86_64-x86_64/pike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m/home/riffraff/src/Pike-v8.0.498/build/linux-4.16.6-302.fc28.x86_64-x86_64/master.pike /home/riffraff/src/Pike-v8.0.498/src/post_modules/GL/gen.pike /home/riffraff/src/Pike-v8.0.498/src/post_modules/GL/auto.c.in > auto.c.tmp /bin/sh: line 1: 29381 Segmentation fault (core dumped) /home/riffraff/src/Pike-v8.0.498/build/linux-4.16.6-302.fc28.x86_64-x86_64/pike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m/home/riffraff/src/Pike-v8.0.498/build/linux-4.16.6-302.fc28.x86_64-x86_64/master.pike /home/riffraff/src/Pike-v8.0.498/src/post_modules/GL/gen.pike /home/riffraff/src/Pike-v8.0.498/src/post_modules/GL/auto.c.in > auto.c.tmp make[6]: *** [Makefile:489: auto.c] Error 139
Any suggestions? What are some good options to try? And do I pass them as CONFIGUREARGS?
Thanks
On Friday, May 11, 2018, 5:23:07 AM EDT, Henrik Grubbström (Lysator) @ Pike (-) developers forum 10353@lyskom.lysator.liu.se wrote:
So trying to build pike 8.0 from git, and got an error about Msql:
=== configuring in Msql (/home/riffraff/src/pike/8.0/pike/build/linux-4.16.6-302.fc28.x86_64-x86_64/modules/Msql) configure: running /bin/bash -norc /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=/home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: cannot find sources (msqlmod.cmod) in /home/riffraff/src/pike/8.0/pike/src/modules/Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/Msql/configure failed for Msql configure: error: /home/riffraff/src/pike/8.0/pike/src/modules/configure failed for modules
ll Msql/ total 52 -rw-rw-r--. 1 riffraff riffraff 403 May 10 20:22 acconfig.h -rw-rw-r--. 1 riffraff riffraff 2948 May 10 20:22 configure.in -rw-rw-r--. 1 riffraff riffraff 187 May 10 20:22 Makefile.in -rw-rw-r--. 1 riffraff riffraff 29556 May 10 20:22 msqlmod.c -rwxrwxr-x. 1 riffraff riffraff 824 May 10 20:22 test_msqlmod.pike -rw-rw-r--. 1 riffraff riffraff 0 May 10 20:22 testsuite.in -rw-rw-r--. 1 riffraff riffraff 334 May 10 20:22 version.h
Looks like you have a configure that was generated of the Pike 8.1 branch. Try rerunning run_autoconfig.
/grubba
It means that the pike you just build (and which will be used to generate post-modules from that point on) does not work. Try running it in gdb?
On Sat, May 12, 2018 at 2:31 AM, Lance Dillon riffraff169@yahoo.com wrote:
Any suggestions? What are some good options to try? And do I pass them as CONFIGUREARGS?
Before all else, I would try again from a clean checkout, i.e.
make distclean git clean -xf
It looks like it is a Fedora 28 issue. I had a fedora 25 workstation vm that I built pike 8.0.498, and it worked fine. Then I upgrade to fedora 26 and built, then fedora 27 and built. Everything worked until fedora 28. So not a pike issue, but something with fedora 28, perhaps gcc or glibc or something.
I'm going to try to debug further.
Thanks...
On Saturday, May 12, 2018, 6:12:45 AM EDT, Tobias S. Josefowitz t.josefowitz@gmail.com wrote:
On Sat, May 12, 2018 at 2:31 AM, Lance Dillon riffraff169@yahoo.com wrote:
Any suggestions? What are some good options to try? And do I pass them as CONFIGUREARGS?
Before all else, I would try again from a clean checkout, i.e.
make distclean git clean -xf
In debugging this, I'm finding some changes, I may create a PR for it.
On Fedora 28, mysql doesn't have MYSQL_SERVER_VERSION unless mysql_version.h is included. This is on line 1954 of src/modules/Mysql/mysql.c. mariadb_version.h is included, which contains MARIADB_CLIENT_VERSION_STR and MARIADB_BASE_VERSION. Two possibilities is to check if it is mariadb instead, and include mariadb_version.h and use MARIADB_CLIENT_VERSION_STR, or check if mariadb and if so include mysql/server/mysql_version.h.
I also found that -nostartfiles causes that relocation error. Removing it fixes that problem, so I'm doing some further testing... I think it is a gcc 8 issue.
On Saturday, May 12, 2018, 4:35:45 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
It looks like it is a Fedora 28 issue. I had a fedora 25 workstation vm that I built pike 8.0.498, and it worked fine. Then I upgrade to fedora 26 and built, then fedora 27 and built. Everything worked until fedora 28. So not a pike issue, but something with fedora 28, perhaps gcc or glibc or something.
I'm going to try to debug further.
Thanks...
On Saturday, May 12, 2018, 6:12:45 AM EDT, Tobias S. Josefowitz t.josefowitz@gmail.com wrote:
On Sat, May 12, 2018 at 2:31 AM, Lance Dillon riffraff169@yahoo.com wrote:
Any suggestions? What are some good options to try? And do I pass them as CONFIGUREARGS?
Before all else, I would try again from a clean checkout, i.e.
make distclean git clean -xf
And through this all, it is looking like PIE may be the problem. I found several good links, here is one of them:
gcc's enable "–enable-default-pie" option make you stuck at "relocation R_X86_64_32S against …" error | Nan Xiao's Blog
I'm currently doing a test. I changed src/configure, and for the linux section added -fno-pie -no-pie in with LDSHARED="$REALCC -shared".
Seeing what happens, if this works it might be an option that is necessary.
| | | | | |
|
| | | | gcc's enable "–enable-default-pie" option make you stuck at "relocation ...
Recently, after I upgrade gcc on my Arch Linux, I find it has enabled "--enable-default-pie" option by default: ... |
|
|
On Saturday, May 12, 2018, 8:04:08 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
In debugging this, I'm finding some changes, I may create a PR for it.
On Fedora 28, mysql doesn't have MYSQL_SERVER_VERSION unless mysql_version.h is included. This is on line 1954 of src/modules/Mysql/mysql.c. mariadb_version.h is included, which contains MARIADB_CLIENT_VERSION_STR and MARIADB_BASE_VERSION. Two possibilities is to check if it is mariadb instead, and include mariadb_version.h and use MARIADB_CLIENT_VERSION_STR, or check if mariadb and if so include mysql/server/mysql_version.h.
I also found that -nostartfiles causes that relocation error. Removing it fixes that problem, so I'm doing some further testing... I think it is a gcc 8 issue.
On Saturday, May 12, 2018, 4:35:45 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
It looks like it is a Fedora 28 issue. I had a fedora 25 workstation vm that I built pike 8.0.498, and it worked fine. Then I upgrade to fedora 26 and built, then fedora 27 and built. Everything worked until fedora 28. So not a pike issue, but something with fedora 28, perhaps gcc or glibc or something.
I'm going to try to debug further.
Thanks...
On Saturday, May 12, 2018, 6:12:45 AM EDT, Tobias S. Josefowitz t.josefowitz@gmail.com wrote:
On Sat, May 12, 2018 at 2:31 AM, Lance Dillon riffraff169@yahoo.com wrote:
Any suggestions? What are some good options to try? And do I pass them as CONFIGUREARGS?
Before all else, I would try again from a clean checkout, i.e.
make distclean git clean -xf
I'm finding that build works with: make CONFIGUREARGS='--with-cflags=-O'... also -O2, but -O3 fails, so I'm going to start adding options between O2 and O3 to see which one causes it to fail..
On Saturday, May 12, 2018, 11:00:02 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
And through this all, it is looking like PIE may be the problem. I found several good links, here is one of them:
gcc's enable "–enable-default-pie" option make you stuck at "relocation R_X86_64_32S against …" error | Nan Xiao's Blog
I'm currently doing a test. I changed src/configure, and for the linux section added -fno-pie -no-pie in with LDSHARED="$REALCC -shared".
Seeing what happens, if this works it might be an option that is necessary.
| | | | | |
|
| | | | gcc's enable "–enable-default-pie" option make you stuck at "relocation ...
Recently, after I upgrade gcc on my Arch Linux, I find it has enabled "--enable-default-pie" option by default: ... |
|
|
On Saturday, May 12, 2018, 8:04:08 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
In debugging this, I'm finding some changes, I may create a PR for it.
On Fedora 28, mysql doesn't have MYSQL_SERVER_VERSION unless mysql_version.h is included. This is on line 1954 of src/modules/Mysql/mysql.c. mariadb_version.h is included, which contains MARIADB_CLIENT_VERSION_STR and MARIADB_BASE_VERSION. Two possibilities is to check if it is mariadb instead, and include mariadb_version.h and use MARIADB_CLIENT_VERSION_STR, or check if mariadb and if so include mysql/server/mysql_version.h.
I also found that -nostartfiles causes that relocation error. Removing it fixes that problem, so I'm doing some further testing... I think it is a gcc 8 issue.
On Saturday, May 12, 2018, 4:35:45 PM EDT, Lance Dillon riffraff169@yahoo.com wrote:
It looks like it is a Fedora 28 issue. I had a fedora 25 workstation vm that I built pike 8.0.498, and it worked fine. Then I upgrade to fedora 26 and built, then fedora 27 and built. Everything worked until fedora 28. So not a pike issue, but something with fedora 28, perhaps gcc or glibc or something.
I'm going to try to debug further.
Thanks...
On Saturday, May 12, 2018, 6:12:45 AM EDT, Tobias S. Josefowitz t.josefowitz@gmail.com wrote:
On Sat, May 12, 2018 at 2:31 AM, Lance Dillon riffraff169@yahoo.com wrote:
Any suggestions? What are some good options to try? And do I pass them as CONFIGUREARGS?
Before all else, I would try again from a clean checkout, i.e.
make distclean git clean -xf
pike-devel@lists.lysator.liu.se