Author Topic: Problems while porting  (Read 1116 times)

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Problems while porting
« Reply #15 on: August 27, 2012, 07:53:26 am »
I'm sorry, your right, it's zlib. 

Pharanoia

  • Noob
  • *
  • Posts: 15
  • Reputation: 1
Re: Problems while porting
« Reply #16 on: August 27, 2012, 10:01:03 pm »
Then what should I do? any tutorial or something may be helpful

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Problems while porting
« Reply #17 on: August 27, 2012, 11:35:21 pm »
Download the deb, apt-get install zlib.  It will download to /var/cache/apt/archives (I think) either way
Code: [Select]
find / -name *.deb
will find it.  I would then force the install with
Code: [Select]
dpkg --force-all -i zlib.deb

Pharanoia

  • Noob
  • *
  • Posts: 15
  • Reputation: 1
Re: Problems while porting
« Reply #18 on: August 27, 2012, 11:44:14 pm »
Well, I searched for the documents installed via repo of zlib, but I don't see a libz.1.dylib file (which is needed), anyway I'll try to follow your steps


EDIT:
I'm having this message error on terminal



Did I just f**ked up the /bin folder? Should I restore the iPod and start from the beginning? --help
« Last Edit: August 29, 2012, 12:00:35 am by Pharanoia »

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Problems while porting
« Reply #19 on: August 29, 2012, 08:11:35 am »
Well, I searched for the documents installed via repo of zlib, but I don't see a libz.1.dylib file (which is needed), anyway I'll try to follow your steps


EDIT:
I'm having this message error on terminal

Did I just f**ked up the /bin folder? Should I restore the iPod and start from the beginning? --help

Ugh.  I would say apt-get is ****ed.  You might be able to repair it through
Code: [Select]
dpkg --force-all -r apt7
and then downloading apt7 in cydia...that could fix it, other wise you're probably best off to restore. 

Don't like seeing ads? Click here to register!

Pharanoia

  • Noob
  • *
  • Posts: 15
  • Reputation: 1
Re: Problems while porting
« Reply #20 on: August 29, 2012, 12:29:27 pm »
Fixed apt-get command, zlib downloaded and installed from terminal,but there's no libz.1.dylib on /usr/lib, should I rename some of the installed files? I tried before but without solution (probably because i'm still being a big noob)

my /usr/lib folder:


EDIT:
it keep showing the same problem about that file
« Last Edit: August 29, 2012, 09:19:50 pm by Pharanoia »

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Problems while porting
« Reply #21 on: August 29, 2012, 11:52:57 pm »
Fixed apt-get command, zlib downloaded and installed from terminal,but there's no libz.1.dylib on /usr/lib, should I rename some of the installed files? I tried before but without solution (probably because i'm still being a big noob)

my /usr/lib folder:

EDIT:
it keep showing the same problem about that file

Ah! I think I see the problem, libz is compiled as a static library (.a) rather than a dynamic one (.dylib)...you could port libz and provide both static and dynamic (preferred way) or just compile statically.....either way read up on the configure flags as they tend to differ a little bit, but your probably looking for something like --enable-static --enable-shared to build both static and shared (dynamic) libs

Pharanoia

  • Noob
  • *
  • Posts: 15
  • Reputation: 1
Re: Problems while porting
« Reply #22 on: August 30, 2012, 10:04:06 am »
i tried to compile it as static and dynamic (following first your flags gave error, and then the zlib --help ones worked), but there still any signal of the libz.1.dylib

EDIT:
viewing the errors it seems is missing another library, here the error log

« Last Edit: August 30, 2012, 10:24:37 am by Pharanoia »

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Problems while porting
« Reply #23 on: August 30, 2012, 10:33:32 am »
Libc is the standard C library on most linux systems.  Darwin does not use a libc, but instead has all the C stuff in libSystem. I would search the Makefile and remove all references to "-lc"