Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP unibilium recipe #835

Merged
merged 5 commits into from Jun 17, 2017
Merged

WIP unibilium recipe #835

merged 5 commits into from Jun 17, 2017

Conversation

@extrowerk
Copy link
Member

extrowerk commented Oct 24, 2016

Work in Progress.
Now i get : undefined reference to__stack_chk_fail_local'`

Help required.

@extrowerk extrowerk force-pushed the extrowerk:unibilium branch from 192ce13 to 48bad51 Oct 24, 2016
@extrowerk
Copy link
Member Author

extrowerk commented Oct 24, 2016

Have anybody idea, what am i doing wrong? It compiles without a hitch outside of chroot...

@fbrosson
Copy link
Member

fbrosson commented Oct 24, 2016

Maybe the recipe is missing a dependency.
Does «haikuporter --nochroot unibilium» work ?
BTW, «--nochroot» has a one-letter equivalent, «-C», so you can use that instead of «--nochroot».

cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:sed
pkgconfig$secondaryArchSuffix

This comment has been minimized.

Copy link
@fbrosson

fbrosson Oct 24, 2016

Member

Should be:

    cmd:pkg_config$secondaryArchSuffix

This comment has been minimized.

Copy link
@extrowerk

extrowerk Oct 27, 2016

Author Member

Fixed, thanks.

@fbrosson
Copy link
Member

fbrosson commented Oct 25, 2016

Oops, «haikuporter --nochroot ...» is not working for me. Maybe I need to upgrade something on my system.
Anyway, here's how you might identify a missing dependency:

  • Re-build unibilium without haikuporter (or skip this step if you still have your build directory around), since you said it compiles without a hitch when you build without haikuporter.
  • Then use «objdump -x /path/to/libunibilium.so | grep NEEDED» to see which shared libraries it needs.
  • Use «pkgman search lib:libNAME» for every libNAME.so.X that you get with the previous command.
  • Add one «lib:libNAME» for each library that is being provided by a package.

BTW, I havent tried this myself, so I'm not sure it works. Good luck!

@extrowerk
Copy link
Member Author

extrowerk commented Oct 27, 2016

fbrosson, the only objdump output is:
NEEDED libroot.so

Now, what?

WIP unibilium recipe

WIP unibilium recipe

WIP unibilium recipe

WIP Recipe for unibilium

Hash fix

Fixed whitespaces

Fixed pkgconf
@extrowerk extrowerk force-pushed the extrowerk:unibilium branch from 48bad51 to 63182f1 Oct 27, 2016
@fbrosson
Copy link
Member

fbrosson commented Oct 27, 2016

This means libunibilium.so does not depend on any lib provided by other recipes. So the runttime dependencies seem OK.
Maybe you could compare the output of the configure script in the chrooted environment versus the non-chrooted environment.

"

export LDFLAGS="-lnetwork -lbsd -lroot"
export CFLAGS="-D_BSD_SOURCE"

This comment has been minimized.

Copy link
@waddlesplash

waddlesplash Dec 25, 2016

Member

These should be in BUILD, no?

@waddlesplash
Copy link
Member

waddlesplash commented Dec 26, 2016

@miqlas Travis build failed; please check.

@extrowerk extrowerk force-pushed the extrowerk:unibilium branch from c3d566e to 3b74bb4 Jan 27, 2017
extrowerk added 2 commits Jan 27, 2017
@extrowerk
Copy link
Member Author

extrowerk commented Mar 3, 2017

Strange, but it builds just fine outside of Haikuporter, but inside it cannot find -lubsan and -lasan
Grepped the whole tree, nothing.
Must be a bug in the matrix or something.

@extrowerk
Copy link
Member Author

extrowerk commented Jun 16, 2017

Ok, it actually works now.

@extrowerk
Copy link
Member Author

extrowerk commented Jun 17, 2017

Merge?

@waddlesplash waddlesplash merged commit 386cee1 into haikuports:master Jun 17, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.